diff options
author | 2017-03-16 22:05:44 +0000 | |
---|---|---|
committer | 2017-03-16 22:05:44 +0000 | |
commit | f9804a945df4145cb26cc09c0995deec2899f6b4 (patch) | |
tree | 7f3ad72ba8c55d102fd37f0c17a02dc2b6951b83 /sys | |
parent | vioscsi: Negotiate features during attach (diff) | |
download | wireguard-openbsd-f9804a945df4145cb26cc09c0995deec2899f6b4.tar.xz wireguard-openbsd-f9804a945df4145cb26cc09c0995deec2899f6b4.zip |
Print PCIe Extended Capabilities, from Simon Mages
ok kettenis mlarkin
Diffstat (limited to 'sys')
-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 |