macio.h (b42f5b0f0fd8c1c442c1b29a3fbcb338e8bd7732) | macio.h (c2cdf6aba0dfcfb54be646ab630c1bccd180e890) |
---|---|
1#ifndef __MACIO_ASIC_H__ 2#define __MACIO_ASIC_H__ 3#ifdef __KERNEL__ 4 5#include <linux/of_device.h> 6 7extern struct bus_type macio_bus_type; 8 --- 109 unchanged lines hidden (view full) --- 118} 119#endif 120 121/* 122 * A driver for a mac-io chip based device 123 */ 124struct macio_driver 125{ | 1#ifndef __MACIO_ASIC_H__ 2#define __MACIO_ASIC_H__ 3#ifdef __KERNEL__ 4 5#include <linux/of_device.h> 6 7extern struct bus_type macio_bus_type; 8 --- 109 unchanged lines hidden (view full) --- 118} 119#endif 120 121/* 122 * A driver for a mac-io chip based device 123 */ 124struct macio_driver 125{ |
126 char *name; 127 struct of_device_id *match_table; 128 struct module *owner; 129 | |
130 int (*probe)(struct macio_dev* dev, const struct of_device_id *match); 131 int (*remove)(struct macio_dev* dev); 132 133 int (*suspend)(struct macio_dev* dev, pm_message_t state); 134 int (*resume)(struct macio_dev* dev); 135 int (*shutdown)(struct macio_dev* dev); 136 137#ifdef CONFIG_PMAC_MEDIABAY 138 void (*mediabay_event)(struct macio_dev* dev, int mb_state); 139#endif 140 struct device_driver driver; 141}; 142#define to_macio_driver(drv) container_of(drv,struct macio_driver, driver) 143 144extern int macio_register_driver(struct macio_driver *); 145extern void macio_unregister_driver(struct macio_driver *); 146 147#endif /* __KERNEL__ */ 148#endif /* __MACIO_ASIC_H__ */ | 126 int (*probe)(struct macio_dev* dev, const struct of_device_id *match); 127 int (*remove)(struct macio_dev* dev); 128 129 int (*suspend)(struct macio_dev* dev, pm_message_t state); 130 int (*resume)(struct macio_dev* dev); 131 int (*shutdown)(struct macio_dev* dev); 132 133#ifdef CONFIG_PMAC_MEDIABAY 134 void (*mediabay_event)(struct macio_dev* dev, int mb_state); 135#endif 136 struct device_driver driver; 137}; 138#define to_macio_driver(drv) container_of(drv,struct macio_driver, driver) 139 140extern int macio_register_driver(struct macio_driver *); 141extern void macio_unregister_driver(struct macio_driver *); 142 143#endif /* __KERNEL__ */ 144#endif /* __MACIO_ASIC_H__ */ |