summaryrefslogtreecommitdiffstats
path: root/sys/isa/isa_common.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-10-15 00:02:51 +0000
committerjhb <jhb@FreeBSD.org>2002-10-15 00:02:51 +0000
commitf8f30374ddd0a6d37b7438b44638f61a76fd8471 (patch)
tree501a5ccb737c9cbda1d36d491252f55d9c4556bf /sys/isa/isa_common.c
parent460da4d5cb9e3572a444185e03ef07b4e6b2bd00 (diff)
downloadFreeBSD-src-f8f30374ddd0a6d37b7438b44638f61a76fd8471.zip
FreeBSD-src-f8f30374ddd0a6d37b7438b44638f61a76fd8471.tar.gz
- Use __BUS_ACCESSOR() to define the ISA ivar accessor functions instead of
homerolling our own version. - Rename the enum for memsize from ISA_IVAR_MSIZE to ISA_IVAR_MEMSIZE since using 'MSIZE' in the macro invocation of ISA_ACCESSOR() conflicts with the 'MSIZE' kernel option. The accessor function is still isa_get_msize().
Diffstat (limited to 'sys/isa/isa_common.c')
-rw-r--r--sys/isa/isa_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 8b8034b..debf0fb 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -744,7 +744,7 @@ isa_read_ivar(device_t bus, device_t dev, int index, uintptr_t * result)
*result = -1;
break;
- case ISA_IVAR_MSIZE_0:
+ case ISA_IVAR_MEMSIZE_0:
rle = resource_list_find(rl, SYS_RES_MEMORY, 0);
if (rle)
*result = rle->count;
@@ -752,7 +752,7 @@ isa_read_ivar(device_t bus, device_t dev, int index, uintptr_t * result)
*result = 0;
break;
- case ISA_IVAR_MSIZE_1:
+ case ISA_IVAR_MEMSIZE_1:
rle = resource_list_find(rl, SYS_RES_MEMORY, 1);
if (rle)
*result = rle->count;
@@ -832,8 +832,8 @@ isa_write_ivar(device_t bus, device_t dev,
case ISA_IVAR_PORTSIZE_1:
case ISA_IVAR_MADDR_0:
case ISA_IVAR_MADDR_1:
- case ISA_IVAR_MSIZE_0:
- case ISA_IVAR_MSIZE_1:
+ case ISA_IVAR_MEMSIZE_0:
+ case ISA_IVAR_MEMSIZE_1:
case ISA_IVAR_IRQ_0:
case ISA_IVAR_IRQ_1:
case ISA_IVAR_DRQ_0:
OpenPOWER on IntegriCloud