]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a pcib_attach_child() method to manage adding the child "pci" device.
authorjhb <jhb@FreeBSD.org>
Wed, 27 Apr 2016 16:39:05 +0000 (16:39 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 27 Apr 2016 16:39:05 +0000 (16:39 +0000)
commit4a26c9bbdf73e90e480ac36d601cd327f8cf76f0
treea142f6a2e1963024e2461948295502e9668253cd
parentaf967cc0f01234519d07002e8ad79826aafac3d1
Add a pcib_attach_child() method to manage adding the child "pci" device.

This allows the PCI-PCI bridge driver to save a reference to the child
device in its softc.

Note that this required moving the "pci" device creation out of
acpi_pcib_attach().  Instead, acpi_pcib_attach() is renamed to
acpi_pcib_fetch_prt() as it's sole action now is to fetch the PCI
interrupt routing table.

Differential Revision: https://reviews.freebsd.org/D6021
sys/dev/acpica/acpi_pcib.c
sys/dev/acpica/acpi_pcib_acpi.c
sys/dev/acpica/acpi_pcib_pci.c
sys/dev/acpica/acpi_pcibvar.h
sys/dev/pci/pci_pci.c
sys/dev/pci/pcib_private.h
sys/powerpc/ofw/ofw_pcib_pci.c
sys/sparc64/pci/ofw_pcib.c