]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the subvendor ID for PCI-PCI bridges.
authorjhb <jhb@FreeBSD.org>
Tue, 16 Jan 2007 17:04:42 +0000 (17:04 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 16 Jan 2007 17:04:42 +0000 (17:04 +0000)
commit0de926dfd1d79b809a414cb250d0aa4f54590c15
tree504649b73a5fe137d3a70f03305fc5afbb42491f
parent067aec5afddd21ace5e0a6e9e54d840b30e14225
Fix the subvendor ID for PCI-PCI bridges.
- Retire the PCI_SUB*_1 constants and don't try to read a subvendor ID out
  of them.  There isn't a standard subvendor ID field for PCI-PCI bridges.
  Instead, the dword at offset 0x34 is actually mostly reserved except for
  the LSB which is the capabilities pointer.
- Add support for the PCI-PCI bridge subvendor ID capability (13) and use
  it to set the subvendor ID for PCI-PCI bridges.

MFC after:  1 month
sys/dev/pci/pci.c
sys/dev/pci/pcireg.h