mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
- If the PCIe "SLOT" flag is set, include this in the capability output
- Fix printing of PCIe interrupt number, the shift was incorrect. MFC after: 1 week
This commit is contained in:
parent
c4e357e8d3
commit
c4edfee458
1 changed files with 3 additions and 1 deletions
|
|
@ -403,8 +403,10 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
|
|||
printf("type %d", (flags & PCIM_EXP_FLAGS_TYPE) >> 4);
|
||||
break;
|
||||
}
|
||||
if (flags & PCIM_EXP_FLAGS_SLOT)
|
||||
printf(" slot");
|
||||
if (flags & PCIM_EXP_FLAGS_IRQ)
|
||||
printf(" IRQ %d", (flags & PCIM_EXP_FLAGS_IRQ) >> 8);
|
||||
printf(" IRQ %d", (flags & PCIM_EXP_FLAGS_IRQ) >> 9);
|
||||
val = read_config(fd, &p->pc_sel, ptr + PCIR_EXPRESS_DEVICE_CAP, 4);
|
||||
flags = read_config(fd, &p->pc_sel, ptr + PCIR_EXPRESS_DEVICE_CTL, 2);
|
||||
printf(" max data %d(%d)",
|
||||
|
|
|
|||
Loading…
Reference in a new issue