diff options
author | jhb <jhb@FreeBSD.org> | 2003-08-28 21:22:25 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-08-28 21:22:25 +0000 |
commit | 51be1787c3f88a0d7f0e7acc9c80f8efe14d4107 (patch) | |
tree | a1e7aeb2faa12e05e2679df87b9fa88f7bfd5295 /sys/dev/pci/pcireg.h | |
parent | fed4d10a43fd7e42c8ab0e04aad88fa09632b414 (diff) | |
download | FreeBSD-src-51be1787c3f88a0d7f0e7acc9c80f8efe14d4107.zip FreeBSD-src-51be1787c3f88a0d7f0e7acc9c80f8efe14d4107.tar.gz |
- Rename PCIx_HEADERTYPE* to PCIx_HDRTYPE* so the constants aren't so long.
- Add a new PCIM_HDRTYPE constant for the field in PCIR_HDRTYPE that holds
the header type.
- Replace several magic numbers with appropriate constants for the header
type register and a couple of PCI_FUNCMAX.
- Merge to amd64 the fix to the i386 bridge code to skip devices with
unknown header types.
Requested by: imp (1, 2)
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r-- | sys/dev/pci/pcireg.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index 75a276d..e851a8a 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -80,10 +80,11 @@ #define PCIR_CLASS 0x0b #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 PCIR_HDRTYPE 0x0e +#define PCIM_HDRTYPE 0x7f +#define PCIM_HDRTYPE_NORMAL 0x00 +#define PCIM_HDRTYPE_BRIDGE 0x01 +#define PCIM_HDRTYPE_CARDBUS 0x02 #define PCIM_MFDEV 0x80 #define PCIR_BIST 0x0f |