/* * This is a simple framework for solving the issue of PCI devices that require * certain resources (regulators, GPIOs, clocks) to be enabled before the * device can actually be detected on the PCI bus. * * The idea is to reuse the platform bus to populate OF nodes describing the * PCI device and its resources, let these platform devices probe and enable * relevant resources and then trigger a rescan of the PCI bus allowing for the * same device (with a second associated struct device) to be registered with * the PCI subsystem. * * To preserve a correct hierarchy for PCI power management and device reset, * we create a device link between the power control platform device (parent) * and the supplied PCI device (child).
*/
/** * struct pci_pwrctrl - PCI device power control context. * @dev: Address of the power controlling device. * * An object of this type must be allocated by the PCI power control device and * passed to the pwrctrl subsystem to trigger a bus rescan and setup a device * link with the device once it's up.
*/ struct pci_pwrctrl { struct device *dev;
/* private: internal use only */ struct notifier_block nb; struct device_link *link; struct work_struct work;
};
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.