1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Look for capabilities in PCI-PCI bridges using the same CAP PTR register

as for type 0 devices.

Submitted by:	grehan
MFC after:	1 week
This commit is contained in:
John Baldwin 2006-11-16 17:31:33 +00:00
parent 7b1752fbac
commit 3bea4efeb1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164338

View File

@ -447,6 +447,7 @@ pci_read_extcap(device_t pcib, pcicfgregs *cfg)
switch (cfg->hdrtype & PCIM_HDRTYPE) {
case 0:
case 1:
ptrptr = PCIR_CAP_PTR;
break;
case 2:
@ -869,6 +870,7 @@ pci_find_extcap_method(device_t dev, device_t child, int capability,
*/
switch (cfg->hdrtype & PCIM_HDRTYPE) {
case 0:
case 1:
ptr = PCIR_CAP_PTR;
break;
case 2: