diff options
author | gavin <gavin@FreeBSD.org> | 2012-09-05 18:27:45 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2012-09-05 18:27:45 +0000 |
commit | 77e9cd7f1ee832971f6dadba11136bd6074202d4 (patch) | |
tree | 8b10dc833b334b71af3dd388b36a428fb448d6c1 /usr.sbin/pciconf | |
parent | 2b9b209471edea1d724cc6e6d55489bf13571b19 (diff) | |
download | FreeBSD-src-77e9cd7f1ee832971f6dadba11136bd6074202d4.zip FreeBSD-src-77e9cd7f1ee832971f6dadba11136bd6074202d4.tar.gz |
- 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
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r-- | usr.sbin/pciconf/cap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pciconf/cap.c b/usr.sbin/pciconf/cap.c index 4eed9ca..51e789e 100644 --- a/usr.sbin/pciconf/cap.c +++ b/usr.sbin/pciconf/cap.c @@ -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)", |