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)
Wed, Sep 17, 12:31 AM
Unknown Object (File)
Sat, Sep 13, 2:57 AM
Unknown Object (File)
Sep 7 2025, 9:26 PM
Unknown Object (File)
Aug 2 2025, 10:31 AM
Unknown Object (File)
Jul 22 2025, 11:24 PM
Unknown Object (File)
Jul 21 2025, 8:56 AM
Unknown Object (File)
Jul 21 2025, 8:08 AM
Unknown Object (File)
Jul 16 2025, 8:05 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 3343
Build 3378: arc lint + arc unit

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.