summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1998-08-25 07:45:29 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1998-08-25 07:45:29 +0000
commit7f9b538a0481c376d670f95ef9592a082f23a306 (patch)
tree3e57eb24b9c6986b8b45be79a114e8f5683543e3 /sys
parentaee5a074caaebb90fb09cafd78cd2b08ab848426 (diff)
Use symbolic names
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/include/pio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc/include/pio.h b/sys/arch/powerpc/include/pio.h
index 64259e455e2..4d411f3bef6 100644
--- a/sys/arch/powerpc/include/pio.h
+++ b/sys/arch/powerpc/include/pio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pio.h,v 1.2 1998/08/06 15:03:57 pefo Exp $ */
+/* $OpenBSD: pio.h,v 1.3 1998/08/25 07:45:28 pefo Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA.
@@ -169,7 +169,7 @@ __inlrb(a)
#define inlrb(a) (__inlrb((volatile u_int32_t *)(a)))
#define in32rb(a) inlrb(a)
-#ifdef DEBUG
+#ifdef DEBUG_SPEC
static __inline void
__flash_led(bits, count)
int bits;
@@ -181,13 +181,13 @@ __flash_led(bits, count)
}
bits &= 3;
count += count;
- v |= (*(volatile u_int8_t *)0x800001f4) & ~3;
+ v |= (*(volatile u_int8_t *)(MPC106_V_ISA_IO_SPACE + 0x01f4)) & ~3;
while(count--) {
v ^= bits;
for(i = 100000; i > 0; i--)
- *(volatile u_int8_t *)0x800001f4 = v;
+ *(volatile u_int8_t *)(MPC106_V_ISA_IO_SPACE + 0x01f4) = v;
}
- *(u_int8_t *)0x800001f4 &= ~3;
+ *(u_int8_t *)(MPC106_V_ISA_IO_SPACE + 0x01f4) &= ~3;
}
#endif /* DEBUG */