summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcireg.h
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2012-03-08 21:09:34 +0000
committerkan <kan@FreeBSD.org>2012-03-08 21:09:34 +0000
commit4ea9702d06a659239fe1a83246e0c7242c6f6e43 (patch)
tree885e9ee60687adc02e1889bc12e7d14565a3476c /sys/dev/pci/pcireg.h
parentf8fecfb833f40bb660b5205908a6a91a075e7bd6 (diff)
downloadFreeBSD-src-4ea9702d06a659239fe1a83246e0c7242c6f6e43.zip
FreeBSD-src-4ea9702d06a659239fe1a83246e0c7242c6f6e43.tar.gz
Save more of config space for PCI Express and PCI-X devices.
Expand pci_save_state and pci_restore_state to save more of the config state for PCI Express and PCI-X devices. Various writable control registers are present in PCI Express that can potentially be lost over suspend/resume cycle. This change is modeled after similar functionality in Linux. Reviewed by: wlosh,jhb MFC after: 1 month
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r--sys/dev/pci/pcireg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index fd23da4..5ac5212 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -667,6 +667,16 @@
#define PCIR_EXPRESS_SLOT_STA 0x1a
#define PCIR_EXPRESS_ROOT_CTL 0x1c
#define PCIR_EXPRESS_ROOT_STA 0x20
+#define PCIR_EXPRESS_DEVICE_CTL2 40
+#define PCIM_EXPRESS_DEVICE_CTL2_ARI 0x20
+#define PCIM_EXPRESS_ID_ORDERED_REQ_EN 0x100
+#define PCIM_EXPRESS_ID_ORDERED_CMP_EN 0x200
+#define PCIM_EXPRESS_LTR_ENABLE 0x400
+#define PCIM_EXPRESS_OBFF_MSGA_ENABLE 0x2000
+#define PCIM_EXPRESS_OBFF_MSGB_ENABLE 0x4000
+#define PCIM_EXPRESS_OBFF_WAKE_ENABLE 0x6000
+#define PCIR_EXPRESS_LINK_CTL2 48
+#define PCIR_EXPRESS_SLOT_CTL2 56
/* MSI-X definitions */
#define PCIR_MSIX_CTRL 0x2
OpenPOWER on IntegriCloud