aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/si
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-11-07 21:53:58 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-11-07 21:53:58 +0000
commit76cb6aaa5c46cc151575b23caaa515ee1203107e (patch)
tree348b6af15dc6e5d34b7d53036cba4a15b711934d /sys/dev/si
parent3a6497c102b4e0a4a7ad596c327dfe08191ca06c (diff)
downloadsrc-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.h6
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 */