Use symbolic name rather thanhard coding the cap pointer offset for
type two devices.
This commit is contained in:
parent
a52364d522
commit
87623e8dd6
@ -430,7 +430,7 @@ pci_read_extcap(device_t pcib, pcicfgregs *cfg)
|
||||
ptrptr = PCIR_CAP_PTR;
|
||||
break;
|
||||
case 2:
|
||||
ptrptr = 0x14;
|
||||
ptrptr = PCIR_CAP_PTR_2;
|
||||
break;
|
||||
default:
|
||||
return; /* no extended capabilities support */
|
||||
|
@ -166,6 +166,7 @@
|
||||
|
||||
/* config registers for header type 2 (CardBus) devices */
|
||||
|
||||
#define PCIR_CAP_PTR_2 0x14
|
||||
#define PCIR_SECSTAT_2 0x16
|
||||
|
||||
#define PCIR_PRIBUS_2 0x18
|
||||
|
Loading…
Reference in New Issue
Block a user