Remove more now unnecessary IIOV() conversion.
XXX: we should have proper PA to VA macro for TT mappings for readability
This commit is contained in:
parent
4c9561fdf9
commit
439935782f
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -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;
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -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");
|
||||
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
Loading…
Reference in New Issue
Block a user