summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-11-01 06:32:16 +0000
committerkib <kib@FreeBSD.org>2013-11-01 06:32:16 +0000
commita9830491c8d02d2a4d288cdc5d819c8b4db3b64d (patch)
tree2ad9656a37625833a3787e590ff15bd0bafc164e /sys/dev/pci
parente31542bdb57e185d2629a8bcbb249018e3c863f6 (diff)
downloadFreeBSD-src-a9830491c8d02d2a4d288cdc5d819c8b4db3b64d.zip
FreeBSD-src-a9830491c8d02d2a4d288cdc5d819c8b4db3b64d.tar.gz
MFC r257071:
Add some definitions for the bits in root control and status PCIe cap registers. Approved by: re (glebius)
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pcireg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 8db21ba..afd140f 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -762,8 +762,17 @@
#define PCIEM_SLOT_STA_EIS 0x0080
#define PCIEM_SLOT_STA_DLLSC 0x0100
#define PCIER_ROOT_CTL 0x1c
+#define PCIEM_ROOT_CTL_SERR_CORR 0x0001
+#define PCIEM_ROOT_CTL_SERR_NONFATAL 0x0002
+#define PCIEM_ROOT_CTL_SERR_FATAL 0x0004
+#define PCIEM_ROOT_CTL_PME 0x0008
+#define PCIEM_ROOT_CTL_CRS_VIS 0x0010
#define PCIER_ROOT_CAP 0x1e
+#define PCIEM_ROOT_CAP_CRS_VIS 0x0001
#define PCIER_ROOT_STA 0x20
+#define PCIEM_ROOT_STA_PME_REQID_MASK 0x0000ffff
+#define PCIEM_ROOT_STA_PME_STATUS 0x00010000
+#define PCIEM_ROOT_STA_PME_PEND 0x00020000
#define PCIER_DEVICE_CAP2 0x24
#define PCIER_DEVICE_CTL2 0x28
#define PCIEM_CTL2_COMP_TIMEOUT_VAL 0x000f
OpenPOWER on IntegriCloud