blob: b0270e3814c8570e22bd06fb23fc4c16a0ae161f [file] [log] [blame]
Rene Hermana5117ba72006-06-06 23:54:02 +02001/*
2 * ISA bus.
3 */
4
5#ifndef __LINUX_ISA_H
6#define __LINUX_ISA_H
7
8#include <linux/device.h>
9#include <linux/kernel.h>
10
11struct isa_driver {
12 int (*match)(struct device *, unsigned int);
13 int (*probe)(struct device *, unsigned int);
14 int (*remove)(struct device *, unsigned int);
15 void (*shutdown)(struct device *, unsigned int);
16 int (*suspend)(struct device *, unsigned int, pm_message_t);
17 int (*resume)(struct device *, unsigned int);
18
19 struct device_driver driver;
20 struct device *devices;
21};
22
23#define to_isa_driver(x) container_of((x), struct isa_driver, driver)
24
Matthew Wilcoxfa890d52007-09-16 17:01:26 -060025#ifdef CONFIG_ISA
Rene Hermana5117ba72006-06-06 23:54:02 +020026int isa_register_driver(struct isa_driver *, unsigned int);
27void isa_unregister_driver(struct isa_driver *);
Matthew Wilcoxfa890d52007-09-16 17:01:26 -060028#else
29static inline int isa_register_driver(struct isa_driver *d, unsigned int i)
30{
31 return 0;
32}
33
34static inline void isa_unregister_driver(struct isa_driver *d)
35{
36}
37#endif
Rene Hermana5117ba72006-06-06 23:54:02 +020038
39#endif /* __LINUX_ISA_H */