isa.h 894 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * ISA bus.
  3. */
  4. #ifndef __LINUX_ISA_H
  5. #define __LINUX_ISA_H
  6. #include <linux/device.h>
  7. #include <linux/kernel.h>
  8. struct isa_driver {
  9. int (*match)(struct device *, unsigned int);
  10. int (*probe)(struct device *, unsigned int);
  11. int (*remove)(struct device *, unsigned int);
  12. void (*shutdown)(struct device *, unsigned int);
  13. int (*suspend)(struct device *, unsigned int, pm_message_t);
  14. int (*resume)(struct device *, unsigned int);
  15. struct device_driver driver;
  16. struct device *devices;
  17. };
  18. #define to_isa_driver(x) container_of((x), struct isa_driver, driver)
  19. #ifdef CONFIG_ISA
  20. int isa_register_driver(struct isa_driver *, unsigned int);
  21. void isa_unregister_driver(struct isa_driver *);
  22. #else
  23. static inline int isa_register_driver(struct isa_driver *d, unsigned int i)
  24. {
  25. return 0;
  26. }
  27. static inline void isa_unregister_driver(struct isa_driver *d)
  28. {
  29. }
  30. #endif
  31. #endif /* __LINUX_ISA_H */