Associate device_t objects with ACPI handles via PCI_CHILD_ADDED().Previously, the ACPI PCI bus driver did a single pass over the devices inthe namespace that were a child of a given PCI bus to as
Associate device_t objects with ACPI handles via PCI_CHILD_ADDED().Previously, the ACPI PCI bus driver did a single pass over the devices inthe namespace that were a child of a given PCI bus to associate thePCI bus-enumerated device_t devices with the corresponding ACPI handles.However, this meant that handles were only established at runtime for devicesfound during the initial PCI bus scan.PCI_IOV adds devices that show up after the initial PCI bus scan, and comingchanges to add a bus rescan can also add devices after the initial scan.This change adds a pci_child_added() callback to the ACPI PCI bus that walksthe namespace to find the ACPI handle for each device that is added. Usinga callback means that the handle is correctly set for any device no matterhow it is added (initial scan, IOV, or a bus rescan).
show more ...
Remove duplicate pci_driver class declaration.
xen: create a new PCI bus overrideWhen running as a Xen PVH Dom0 we need to add custom buses that overridesome of the functionality present in the ACPI PCI Bus and the PCI Bus. Wecurrently overri
xen: create a new PCI bus overrideWhen running as a Xen PVH Dom0 we need to add custom buses that overridesome of the functionality present in the ACPI PCI Bus and the PCI Bus. Wecurrently override the ACPI PCI Bus, but not the PCI Bus, so add a newoverride for the PCI Bus and share the generic functions between them.Reported by: David P. Discher <[email protected]>Sponsored by: Citrix Systems R&Dconf/files.amd64: - Add the new files.x86/xen/xen_pci_bus.c: - Generic file that contains the PCI overrides so they can be used by the several PCI specific buses.xen/xen_pci.h: - Prototypes for the generic overried functions.dev/xen/pci/xen_pci.c: - Xen specific override for the PCI bus.dev/xen/pci/xen_acpi_pci.c: - Xen specific override for the ACPI PCI bus.