summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-11-07 21:53:58 +0000
committerjhb <jhb@FreeBSD.org>2005-11-07 21:53:58 +0000
commit73a216f99c26437ddfc1c03bc4b5ea0be89325c9 (patch)
tree348b6af15dc6e5d34b7d53036cba4a15b711934d /sys/dev/si
parent1df29a80935256489d1b9406464cc4689130bef5 (diff)
downloadFreeBSD-src-73a216f99c26437ddfc1c03bc4b5ea0be89325c9.zip
FreeBSD-src-73a216f99c26437ddfc1c03bc4b5ea0be89325c9.tar.gz
Use PCIR_xxx constants for PCI config space header registers rather than
magic numbers.
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 4b4ef6a..b6c7adf 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 */
OpenPOWER on IntegriCloud