diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-03-16 22:05:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-03-16 22:05:47 +0000 |
commit | 3252c560587e11ada3fac69f4f550beb56bbfd57 (patch) | |
tree | 72f25576a4432971786b9776212f75e77e01d356 /sys/dev/pci | |
parent | ca25d08645729bc2922115d6893f39a4c8396aef (diff) |
Print PCIe Extended Capabilities, from Simon Mages
ok kettenis mlarkin
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/pcireg.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index 2284fd16a74..3cc1775d396 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcireg.h,v 1.50 2016/06/02 21:01:51 kettenis Exp $ */ +/* $OpenBSD: pcireg.h,v 1.51 2017/03/16 22:05:44 deraadt Exp $ */ /* $NetBSD: pcireg.h,v 1.26 2000/05/10 16:58:42 thorpej Exp $ */ /* @@ -594,6 +594,15 @@ typedef u_int8_t pci_revision_t; #define PCI_PCIE_LCAP2 0x2c /* + * PCI Express; enhanced capabilities + */ +#define PCI_PCIE_ECAP 0x100 +#define PCI_PCIE_ECAP_ID(x) (((x) & 0x0000ffff)) +#define PCI_PCIE_ECAP_VER(x) (((x) >> 16) & 0x0f) +#define PCI_PCIE_ECAP_NEXT(x) ((x) >> 20) +#define PCI_PCIE_ECAP_LAST 0x0 + +/* * Extended Message Signaled Interrups; access via capability pointer. */ #define PCI_MSIX_MC_MSIXE 0x80000000 |