summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf/pciconf.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-06-01 18:33:40 +0000
committerjhb <jhb@FreeBSD.org>2012-06-01 18:33:40 +0000
commitc0cab825682418f613230f9c3a3f8014b1dc7875 (patch)
treec0461e2c60e653987a01643188e64387b133c23d /usr.sbin/pciconf/pciconf.h
parent2c2eaadd0737c825f3ac8cbdf9ce735f3aebb359 (diff)
downloadFreeBSD-src-c0cab825682418f613230f9c3a3f8014b1dc7875.zip
FreeBSD-src-c0cab825682418f613230f9c3a3f8014b1dc7875.tar.gz
Add a new -e flag to pciconf(8)'s list mode to display PCI error details.
Currently this dumps the status of any error bits in the PCI status register and PCI-express device status register. It also lists any errors indicated by version 1 of PCI-express Advanced Error Reporting (AER). MFC after: 1 week
Diffstat (limited to 'usr.sbin/pciconf/pciconf.h')
-rw-r--r--usr.sbin/pciconf/pciconf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pciconf/pciconf.h b/usr.sbin/pciconf/pciconf.h
index 2e87c63..042c4a1 100644
--- a/usr.sbin/pciconf/pciconf.h
+++ b/usr.sbin/pciconf/pciconf.h
@@ -34,6 +34,9 @@
#define __PCICONF_H__
void list_caps(int fd, struct pci_conf *p);
+void list_errors(int fd, struct pci_conf *p);
+uint8_t pci_find_cap(int fd, struct pci_conf *p, uint8_t id);
+uint16_t pcie_find_cap(int fd, struct pci_conf *p, uint16_t id);
uint32_t read_config(int fd, struct pcisel *sel, long reg, int width);
#endif
OpenPOWER on IntegriCloud