diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-02 19:48:25 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-02 19:48:25 +0000 |
commit | c09539e88fbd32b3dfebc905f46f882ed2e793d8 (patch) | |
tree | 3d48654d55a2f7bd19351d4ce1d49bf485c04f88 /sys/dev | |
parent | e9ca37568e53aa11d50a3ad06c564a60657e8696 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/pci/pcireg.h | 22 |
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 |