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
F137170686: D6021.id15364.diff
Fri, Nov 21, 8:52 AM
F137169062: D6021.id15668.diff
Fri, Nov 21, 8:44 AM
F137168909: D6021.id.diff
Fri, Nov 21, 8:43 AM
F137168623: D6021.diff
Fri, Nov 21, 8:42 AM
F137128864: D6021.diff
Fri, Nov 21, 5:16 AM
F136996212: D6021.id.diff
Thu, Nov 20, 10:56 PM
Unknown Object (File)
Wed, Nov 19, 5:11 PM
Unknown Object (File)
Wed, Nov 19, 6:47 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.