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:
parent
6697dbcd9b
commit
3b565e6dd2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user