macio_dev
static inline void macio_set_drvdata(struct macio_dev *dev, void *data)
static inline void* macio_get_drvdata(struct macio_dev *dev)
static inline struct device_node *macio_get_of_node(struct macio_dev *mdev)
static inline struct pci_dev *macio_get_pci_dev(struct macio_dev *mdev)
int (*probe)(struct macio_dev* dev, const struct of_device_id *match);
void (*remove)(struct macio_dev *dev);
int (*suspend)(struct macio_dev* dev, pm_message_t state);
int (*resume)(struct macio_dev* dev);
int (*shutdown)(struct macio_dev* dev);
void (*mediabay_event)(struct macio_dev* dev, int mb_state);
struct macio_dev *media_bay; /* Device is part of a media bay */
#define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev)
#define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev)
extern struct macio_dev *macio_dev_get(struct macio_dev *dev);
extern void macio_dev_put(struct macio_dev *dev);
static inline int macio_resource_count(struct macio_dev *dev)
static inline unsigned long macio_resource_start(struct macio_dev *dev, int resource_no)
static inline unsigned long macio_resource_end(struct macio_dev *dev, int resource_no)
static inline unsigned long macio_resource_len(struct macio_dev *dev, int resource_no)
extern int macio_enable_devres(struct macio_dev *dev);
extern int macio_request_resource(struct macio_dev *dev, int resource_no, const char *name);
extern void macio_release_resource(struct macio_dev *dev, int resource_no);
extern int macio_request_resources(struct macio_dev *dev, const char *name);
extern void macio_release_resources(struct macio_dev *dev);
static inline int macio_irq_count(struct macio_dev *dev)
static inline int macio_irq(struct macio_dev *dev, int irq_no)
struct macio_dev;
extern int check_media_bay(struct macio_dev *bay);
extern void lock_media_bay(struct macio_dev *bay);
extern void unlock_media_bay(struct macio_dev *bay);
static inline int check_media_bay(struct macio_dev *bay)
static inline void lock_media_bay(struct macio_dev *bay) { }
static inline void unlock_media_bay(struct macio_dev *bay) { }
static int pata_macio_attach(struct macio_dev *mdev,
static void pata_macio_detach(struct macio_dev *mdev)
static int pata_macio_suspend(struct macio_dev *mdev, pm_message_t mesg)
static int pata_macio_resume(struct macio_dev *mdev)
static void pata_macio_mb_event(struct macio_dev* mdev, int mb_state)
struct macio_dev *mdev;
static void swim3_mb_event(struct macio_dev* mdev, int mb_state)
static int swim3_add_device(struct macio_dev *mdev, int index)
static int swim3_attach(struct macio_dev *mdev,
struct macio_dev *mdev;
macio_dev_put(macio_dev);
struct macio_dev * macio_dev = to_macio_device(dev);
drv->shutdown(macio_dev);
struct macio_dev * macio_dev = to_macio_device(dev);
return drv->suspend(macio_dev, state);
struct macio_dev * macio_dev = to_macio_device(dev);
return drv->resume(macio_dev);
struct macio_dev *mdev;
static void macio_create_fixup_irq(struct macio_dev *dev, int index,
static void macio_add_missing_resources(struct macio_dev *dev)
static void macio_setup_interrupts(struct macio_dev *dev)
static void macio_setup_resources(struct macio_dev *dev,
static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
struct macio_dev *in_bay,
struct macio_dev *dev;
struct macio_dev *rdev, *mdev, *mbdev = NULL, *sdev = NULL;
struct macio_dev *macio_dev_get(struct macio_dev *dev)
struct macio_dev *dev = to_macio_device(gendev);
int macio_enable_devres(struct macio_dev *dev)
static struct macio_devres * find_macio_dr(struct macio_dev *dev)
int macio_request_resource(struct macio_dev *dev, int resource_no,
void macio_dev_put(struct macio_dev *dev)
void macio_release_resource(struct macio_dev *dev, int resource_no)
int macio_request_resources(struct macio_dev *dev, const char *name)
void macio_release_resources(struct macio_dev *dev)
struct macio_dev *macio_dev;
macio_dev = to_macio_device(dev);
macio_dev_get(macio_dev);
error = drv->probe(macio_dev, match);
macio_dev_put(macio_dev);
struct macio_dev * macio_dev = to_macio_device(dev);
drv->remove(macio_dev);
int check_media_bay(struct macio_dev *baydev)
void lock_media_bay(struct macio_dev *baydev)
void unlock_media_bay(struct macio_dev *baydev)
struct macio_dev *mdev;
static int media_bay_attach(struct macio_dev *mdev,
struct macio_dev *mdev;
static int media_bay_suspend(struct macio_dev *mdev, pm_message_t state)
static int media_bay_resume(struct macio_dev *mdev)
static int rackmeter_probe(struct macio_dev* mdev,
static void rackmeter_remove(struct macio_dev *mdev)
static int rackmeter_shutdown(struct macio_dev* mdev)
struct macio_dev *mdev;
static int bmac_probe(struct macio_dev *mdev, const struct of_device_id *match)
static void bmac_remove(struct macio_dev *mdev)
static int bmac_suspend(struct macio_dev *mdev, pm_message_t state)
static int bmac_resume(struct macio_dev *mdev)
struct macio_dev *mdev;
static int mace_probe(struct macio_dev *mdev, const struct of_device_id *match)
static void mace_remove(struct macio_dev *mdev)
struct macio_dev *mdev;
static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *match)
static void mac53c94_remove(struct macio_dev *mdev)
struct macio_dev *mdev;
struct macio_dev *mdev;
static int mesh_suspend(struct macio_dev *mdev, pm_message_t mesg)
static int mesh_resume(struct macio_dev *mdev)
static int mesh_shutdown(struct macio_dev *mdev)
static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
static void mesh_remove(struct macio_dev *mdev)
static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match)
static void pmz_detach(struct macio_dev *mdev)
static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
static int pmz_resume(struct macio_dev *mdev)
struct macio_dev *dev;
int i2sbus_control_init(struct macio_dev* dev, struct i2sbus_control **c)
static int i2sbus_add_dev(struct macio_dev *macio,
static int i2sbus_probe(struct macio_dev* dev, const struct of_device_id *match)
static void i2sbus_remove(struct macio_dev *dev)
static int i2sbus_suspend(struct macio_dev* dev, pm_message_t state)
static int i2sbus_resume(struct macio_dev* dev)
static int i2sbus_shutdown(struct macio_dev* dev)
extern int i2sbus_control_init(struct macio_dev* dev,
struct macio_dev *macio;