Page MenuHomeFreeBSD

Add a pcib_attach_child() method to manage adding the child "pci" device.
ClosedPublic

Authored by jhb on Apr 20 2016, 2:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 2 2024, 6:03 AM
Unknown Object (File)
Sep 17 2024, 12:10 PM
Unknown Object (File)
Sep 8 2024, 9:36 PM
Unknown Object (File)
Sep 8 2024, 8:12 AM
Unknown Object (File)
Sep 7 2024, 12:03 PM
Unknown Object (File)
Sep 7 2024, 9:24 AM
Unknown Object (File)
Sep 2 2024, 8:33 AM
Unknown Object (File)
Sep 1 2024, 4:40 AM
Subscribers

Details

Summary

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.

Test Plan
  • This has been tested as part of the hotplug patches. Keeping a reference to the child "pci" device allows the pcib driver to attach/detach the device on hotplug events.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Add a pcib_attach_child() method to manage adding the child "pci" device..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: imp.
This revision was automatically updated to reflect the committed changes.