diff --git a/sys/arch/news68k/dev/kbc.c b/sys/arch/news68k/dev/kbc.c index 31b44bd5aa94..8775910e9a53 100644 --- a/sys/arch/news68k/dev/kbc.c +++ b/sys/arch/news68k/dev/kbc.c @@ -1,4 +1,4 @@ -/* $NetBSD: kbc.c,v 1.12 2008/05/14 13:29:28 tsutsui Exp $ */ +/* $NetBSD: kbc.c,v 1.13 2011/11/22 14:31:02 tsutsui Exp $ */ /*- * Copyright (C) 2001 Izumi Tsutsui. All rights reserved. @@ -25,7 +25,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kbc.c,v 1.12 2008/05/14 13:29:28 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kbc.c,v 1.13 2011/11/22 14:31:02 tsutsui Exp $"); #include #include @@ -65,7 +65,7 @@ static int kbc_match(device_t parent, cfdata_t cf, void *aux) if (ha->ha_address == (u_int)-1) return 0; - addr = IIOV(ha->ha_address); /* XXX */ + addr = ha->ha_address; /* XXX */ if (badaddr((void *)addr, 1)) return 0; diff --git a/sys/arch/news68k/dev/ms_hb.c b/sys/arch/news68k/dev/ms_hb.c index bfd1cd4ce4b6..adbd964911e8 100644 --- a/sys/arch/news68k/dev/ms_hb.c +++ b/sys/arch/news68k/dev/ms_hb.c @@ -1,4 +1,4 @@ -/* $NetBSD: ms_hb.c,v 1.13 2008/05/14 13:29:28 tsutsui Exp $ */ +/* $NetBSD: ms_hb.c,v 1.14 2011/11/22 14:31:02 tsutsui Exp $ */ /*- * Copyright (c) 2001 Izumi Tsutsui. All rights reserved. @@ -51,7 +51,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ms_hb.c,v 1.13 2008/05/14 13:29:28 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ms_hb.c,v 1.14 2011/11/22 14:31:02 tsutsui Exp $"); #include #include @@ -103,7 +103,7 @@ ms_hb_match(device_t parent, cfdata_t cf, void *aux) if (ha->ha_address == (u_int)-1) return 0; - addr = IIOV(ha->ha_address); /* XXX */ + addr = ha->ha_address; /* XXX */ if (badaddr((void *)addr, 1)) return 0; diff --git a/sys/arch/news68k/dev/timer_hb.c b/sys/arch/news68k/dev/timer_hb.c index 4f945e625c84..5f300531aca7 100644 --- a/sys/arch/news68k/dev/timer_hb.c +++ b/sys/arch/news68k/dev/timer_hb.c @@ -1,4 +1,4 @@ -/* $NetBSD: timer_hb.c,v 1.18 2010/12/20 00:25:40 matt Exp $ */ +/* $NetBSD: timer_hb.c,v 1.19 2011/11/22 14:31:02 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: timer_hb.c,v 1.18 2010/12/20 00:25:40 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: timer_hb.c,v 1.19 2011/11/22 14:31:02 tsutsui Exp $"); #include #include @@ -106,7 +106,7 @@ timer_hb_attach(device_t parent, device_t self, void *aux) if (ha->ha_ipl != TIMER_LEVEL) panic("clock_hb_attach: wrong interrupt level"); - ctrl_timer = (uint8_t *)IIOV(ha->ha_address); /* XXX needs bus_space */ + ctrl_timer = (uint8_t *)(ha->ha_address); /* XXX needs bus_space */ printf("\n"); diff --git a/sys/arch/news68k/news68k/bus_space.c b/sys/arch/news68k/news68k/bus_space.c index b271cdcfc209..04996b621ec5 100644 --- a/sys/arch/news68k/news68k/bus_space.c +++ b/sys/arch/news68k/news68k/bus_space.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus_space.c,v 1.10 2008/04/28 20:23:30 martin Exp $ */ +/* $NetBSD: bus_space.c,v 1.11 2011/11/22 14:31:02 tsutsui Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.10 2008/04/28 20:23:30 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.11 2011/11/22 14:31:02 tsutsui Exp $"); #include #include @@ -57,7 +57,7 @@ bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, * Intio space is direct-mapped in pmap_bootstrap(); just * do the translation. */ - *bshp = (bus_space_handle_t)IIOV(bpa); + *bshp = (bus_space_handle_t)bpa; return 0; } diff --git a/sys/arch/news68k/news68k/machdep.c b/sys/arch/news68k/news68k/machdep.c index 95e213e71dbc..5b5414c279aa 100644 --- a/sys/arch/news68k/news68k/machdep.c +++ b/sys/arch/news68k/news68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.96 2011/11/20 15:38:00 tsutsui Exp $ */ +/* $NetBSD: machdep.c,v 1.97 2011/11/22 14:31:02 tsutsui Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.96 2011/11/20 15:38:00 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.97 2011/11/22 14:31:02 tsutsui Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -888,15 +888,15 @@ news1200_init(void) uint8_t *q; int i; - dip_switch = (uint8_t *)IIOV(0xe1680000); - int_status = (uint8_t *)IIOV(0xe1200000); + dip_switch = (uint8_t *)0xe1680000; + int_status = (uint8_t *)0xe1200000; - idrom_addr = (uint8_t *)IIOV(0xe1400000); - ctrl_ast = (uint8_t *)IIOV(0xe1100000); - ctrl_int2 = (uint8_t *)IIOV(0xe10c0000); - ctrl_led = (uint8_t *)IIOV(ctrl_led_phys); + idrom_addr = (uint8_t *)0xe1400000; + ctrl_ast = (uint8_t *)0xe1100000; + ctrl_int2 = (uint8_t *)0xe10c0000; + ctrl_led = (uint8_t *)ctrl_led_phys; - sccport0a = IIOV(0xe1780002); + sccport0a = 0xe1780002; lance_mem_phys = 0xe1a00000; p = idrom_addr;