diff options
author | jhb <jhb@FreeBSD.org> | 2003-09-02 17:11:27 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-09-02 17:11:27 +0000 |
commit | 480ed8b5934d938866a31bd84aa636de31845487 (patch) | |
tree | 604be0f8399bfe2001b557c0859a06a9e5a1a1c1 /sys/dev/pci/pcireg.h | |
parent | d639820bc8a62eefd0bd6061a2526934f91a5567 (diff) | |
download | FreeBSD-src-480ed8b5934d938866a31bd84aa636de31845487.zip FreeBSD-src-480ed8b5934d938866a31bd84aa636de31845487.tar.gz |
- Deprecate PCIR_MAPS under BURN_BRIDGES (meaning it will be gone in 6.0)
and replace it with the more intuitive name PCIR_BARS.
- Add a PCIR_BAR(x) macro that returns the config space register offset of
the 32-bit BAR x.
MFC after: 3 days
Diffstat (limited to 'sys/dev/pci/pcireg.h')
-rw-r--r-- | sys/dev/pci/pcireg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index e851a8a..e073024 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -100,7 +100,11 @@ /* config registers for header type 0 devices */ -#define PCIR_MAPS 0x10 +#define PCIR_BARS 0x10 +#define PCIR_BAR(x) (PCIR_BARS + (x) * 4) +#ifndef BURN_BRIDGES +#define PCIR_MAPS PCIR_BARS +#endif #define PCIR_CARDBUSCIS 0x28 #define PCIR_SUBVEND_0 0x2c #define PCIR_SUBDEV_0 0x2e |