summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcireg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-02-02 19:48:25 +0000
committerjhb <jhb@FreeBSD.org>2007-02-02 19:48:25 +0000
commitc09539e88fbd32b3dfebc905f46f882ed2e793d8 (patch)
tree3d48654d55a2f7bd19351d4ce1d49bf485c04f88 /sys/dev/pci/pcireg.h
parente9ca37568e53aa11d50a3ad06c564a60657e8696 (diff)
downloadFreeBSD-src-c09539e88fbd32b3dfebc905f46f882ed2e793d8.zip
FreeBSD-src-c09539e88fbd32b3dfebc905f46f882ed2e793d8.tar.gz
Add constants for the PCIY_VENDOR (vendor-specific), PCIY_DEBUG (EHCI
debug port), and PCIY_EXPRESS (PCI-express) capabilities.
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r--sys/dev/pci/pcireg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 12115f9..f30b39f 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -506,9 +506,31 @@
#define PCIR_HTMSI_ADDRESS_LO 0x4
#define PCIR_HTMSI_ADDRESS_HI 0x8
+/* PCI Vendor capability definitions */
+#define PCIR_VENDOR_LENGTH 0x2
+#define PCIR_VENDOR_DATA 0x3
+
+/* PCI EHCI Debug Port definitions */
+#define PCIR_DEBUG_PORT 0x2
+#define PCIM_DEBUG_PORT_OFFSET 0x1FFF
+#define PCIM_DEBUG_PORT_BAR 0xe000
+
/* PCI-PCI Bridge Subvendor definitions */
#define PCIR_SUBVENDCAP_ID 0x4
+/* PCI Express definitions */
+#define PCIR_EXPRESS_FLAGS 0x2
+#define PCIM_EXP_FLAGS_VERSION 0x000F
+#define PCIM_EXP_FLAGS_TYPE 0x00F0
+#define PCIM_EXP_TYPE_ENDPOINT 0x0000
+#define PCIM_EXP_TYPE_LEGACY_ENDPOINT 0x0010
+#define PCIM_EXP_TYPE_ROOT_PORT 0x0040
+#define PCIM_EXP_TYPE_UPSTREAM_PORT 0x0050
+#define PCIM_EXP_TYPE_DOWNSTREAM_PORT 0x0060
+#define PCIM_EXP_TYPE_PCI_BRIDGE 0x0070
+#define PCIM_EXP_FLAGS_SLOT 0x0100
+#define PCIM_EXP_FLAGS_IRQ 0x3e00
+
/* MSI-X definitions */
#define PCIR_MSIX_CTRL 0x2
#define PCIM_MSIXCTRL_MSIX_ENABLE 0x8000
OpenPOWER on IntegriCloud