/* * the macio_bus structure is used to describe a "virtual" bus * within a MacIO ASIC. It's typically provided by a macio_pci_asic * PCI device, but could be provided differently as well (nubus * machines using a fake OF tree). * * The pdev field can be NULL on non-PCI machines
*/ struct macio_bus
{ struct macio_chip *chip; /* macio_chip (private use) */ int index; /* macio chip index in system */ #ifdef CONFIG_PCI struct pci_dev *pdev; /* PCI device hosting this bus */ #endif
};
/* * the macio_dev structure is used to describe a device * within an Apple MacIO ASIC.
*/ struct macio_dev
{ struct macio_bus *bus; /* macio bus this device is on */ struct macio_dev *media_bay; /* Device is part of a media bay */ struct platform_device ofdev; struct device_dma_parameters dma_parms; /* ide needs that */ int n_resources; struct resource resource[MACIO_DEV_COUNT_RESOURCES]; int n_interrupts; struct resource interrupt[MACIO_DEV_COUNT_IRQS];
}; #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)
/* * A driver for a mac-io chip based device
*/ struct macio_driver
{ int (*probe)(struct macio_dev* dev, conststruct 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);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.