diff options
author | John Baldwin <jhb@FreeBSD.org> | 2005-11-07 21:53:58 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2005-11-07 21:53:58 +0000 |
commit | 76cb6aaa5c46cc151575b23caaa515ee1203107e (patch) | |
tree | 348b6af15dc6e5d34b7d53036cba4a15b711934d /sys/dev/si | |
parent | 3a6497c102b4e0a4a7ad596c327dfe08191ca06c (diff) | |
download | src-76cb6aaa5c46cc151575b23caaa515ee1203107e.tar.gz src-76cb6aaa5c46cc151575b23caaa515ee1203107e.zip |
Use PCIR_xxx constants for PCI config space header registers rather than
magic numbers.
Notes
Notes:
svn path=/head/; revision=152172
Diffstat (limited to 'sys/dev/si')
-rw-r--r-- | sys/dev/si/sireg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/si/sireg.h b/sys/dev/si/sireg.h index 4b4ef6ad6063..b6c7adf14cb3 100644 --- a/sys/dev/si/sireg.h +++ b/sys/dev/si/sireg.h @@ -62,14 +62,14 @@ #define SIEISAIOSIZE 0x100 /* XXX How many ports */ /* SI old PCI */ -#define SIPCIBADR 0x10 /* Which BADR to map in RAM */ +#define SIPCIBADR PCIR_BAR(0) /* Which BADR to map in RAM */ #define SIPCI_MEMSIZE 0x100000 /* Mapping size */ #define SIPCIRESET 0xc0001 /* 0 = Reset */ #define SIPCIINTCL 0x40001 /* 0 = clear int */ /* SI Jet PCI */ -#define SIJETSSIDREG 0x2c /* Is it an SX or RIO? */ -#define SIJETBADR 0x18 /* Which BADR to map in RAM */ +#define SIJETSSIDREG PCIR_SUBVEND_0 /* Is it an SX or RIO? */ +#define SIJETBADR PCIR_BAR(2) /* Which BADR to map in RAM */ /* SI Jet PCI & ISA */ #define SIJETIDBASE 0x7c00 /* ID ROM base */ #define SISPLXID 0x984d /* Specialix ID */ |