/* *themacio_busstructureisusedtodescribea"virtual"bus *withinaMacIOASIC.It'stypicallyprovidedbyamacio_pci_asic *PCIdevice,butcouldbeprovideddifferentlyaswell(nubus *machinesusingafakeOFtree). * *ThepdevfieldcanbeNULLonnon-PCImachines
*/ 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
};
/* *themacio_devstructureisusedtodescribeadevice *withinanAppleMacIOASIC.
*/ 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)
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.