- Factor out pci_fixup_nextptr().
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Nov 2007 06:47:37 +0000 (06:47 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Nov 2007 06:47:37 +0000 (06:47 +0000)
commit1361c4cd820bc24cd87234a44882c9b975b54988
treec088fa922246e235c4f26ac7da5db47fd18950c6
parent2396befc2319a1c753721edd95d39e7f8c8a22b7
- Factor out pci_fixup_nextptr().
- The checking about whether 'data' register of power management capability
  exists or not is incorrect, according to PCI local bus spec:
    1) Next capability is not necessarily at a higher location than the
       current capability.
    2) Two capabilities are not necessarily consecutive.
  Set it to 0 for now (it is not used at all) and add comment about a possible
  way to test the existence of this register in power management capability.
- Clean up pci_read_extcap() a little bit.
sys/bus/pci/pci.c