diff options
author | jhb <jhb@FreeBSD.org> | 2003-08-28 20:59:31 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-08-28 20:59:31 +0000 |
commit | fed4d10a43fd7e42c8ab0e04aad88fa09632b414 (patch) | |
tree | 289739396a236bb942dfc550871f12318bc50e0a /sys/dev/pci/pcireg.h | |
parent | c2c77abf9b9a49a167b72e690613037007a361eb (diff) | |
download | FreeBSD-src-fed4d10a43fd7e42c8ab0e04aad88fa09632b414.zip FreeBSD-src-fed4d10a43fd7e42c8ab0e04aad88fa09632b414.tar.gz |
Add constants for capability IDs and header types.
Submitted by: Samy Al Bahra <samy@kerneled.com>
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r-- | sys/dev/pci/pcireg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index 6e5e1d9..75a276d 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -35,6 +35,7 @@ * PCIP_xxx: device programming interface * PCIV_xxx: PCI vendor ID (only required to fixup ancient devices) * PCID_xxx: device ID + * PCIY_xxx: capability identification number */ /* some PCI bus constants */ @@ -80,9 +81,22 @@ #define PCIR_CACHELNSZ 0x0c #define PCIR_LATTIMER 0x0d #define PCIR_HEADERTYPE 0x0e +#define PCIM_HEADERTYPE_NORMAL 0x00 +#define PCIM_HEADERTYPE_BRIDGE 0x01 +#define PCIM_HEADERTYPE_CARDBUS 0x02 #define PCIM_MFDEV 0x80 #define PCIR_BIST 0x0f +/* Capability Identification Numbers */ + +#define PCIY_PMG 0x01 +#define PCIY_AGP 0x02 +#define PCIY_VPD 0x03 +#define PCIY_SLOTID 0x04 +#define PCIY_MSI 0x05 +#define PCIY_CHSWP 0x06 +#define PCIY_PCIX 0x07 + /* config registers for header type 0 devices */ #define PCIR_MAPS 0x10 |