Use PCIR_xxx constants for PCI config space header registers rather than

magic numbers.
This commit is contained in:
John Baldwin 2005-11-07 21:53:58 +00:00
parent 3a6497c102
commit 76cb6aaa5c

View File

@ -62,14 +62,14 @@
#define SIEISAIOSIZE 0x100 /* XXX How many ports */ #define SIEISAIOSIZE 0x100 /* XXX How many ports */
/* SI old PCI */ /* 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 SIPCI_MEMSIZE 0x100000 /* Mapping size */
#define SIPCIRESET 0xc0001 /* 0 = Reset */ #define SIPCIRESET 0xc0001 /* 0 = Reset */
#define SIPCIINTCL 0x40001 /* 0 = clear int */ #define SIPCIINTCL 0x40001 /* 0 = clear int */
/* SI Jet PCI */ /* SI Jet PCI */
#define SIJETSSIDREG 0x2c /* Is it an SX or RIO? */ #define SIJETSSIDREG PCIR_SUBVEND_0 /* Is it an SX or RIO? */
#define SIJETBADR 0x18 /* Which BADR to map in RAM */ #define SIJETBADR PCIR_BAR(2) /* Which BADR to map in RAM */
/* SI Jet PCI & ISA */ /* SI Jet PCI & ISA */
#define SIJETIDBASE 0x7c00 /* ID ROM base */ #define SIJETIDBASE 0x7c00 /* ID ROM base */
#define SISPLXID 0x984d /* Specialix ID */ #define SISPLXID 0x984d /* Specialix ID */