summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-12-16 15:08:51 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-12-16 15:08:51 +0000
commit7dee09e8d4855a2485b607217d7616cb968ccbd9 (patch)
tree6dcb8d5646e950474acb72b318bcee3643ed8d7a /sys
parent3d3d87b11f00478a7a0a08b902139fdd2cd0d106 (diff)
Don't need linear mappings here either
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/beeper.c6
-rw-r--r--sys/arch/sparc64/dev/pckbc_ebus.c4
-rw-r--r--sys/arch/sparc64/dev/sab.c6
-rw-r--r--sys/arch/sparc64/dev/stp_sbus.c6
4 files changed, 11 insertions, 11 deletions
diff --git a/sys/arch/sparc64/dev/beeper.c b/sys/arch/sparc64/dev/beeper.c
index ad842d22806..ac7ecbbb3ea 100644
--- a/sys/arch/sparc64/dev/beeper.c
+++ b/sys/arch/sparc64/dev/beeper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: beeper.c,v 1.8 2003/06/02 20:02:49 jason Exp $ */
+/* $OpenBSD: beeper.c,v 1.9 2003/12/16 15:08:50 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -113,8 +113,8 @@ beeper_attach(parent, self, aux)
return;
}
} else if (ebus_bus_map(sc->sc_iot, 0,
- EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size,
- BUS_SPACE_MAP_LINEAR, 0, &sc->sc_ioh) != 0) {
+ EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, 0, 0,
+ &sc->sc_ioh) != 0) {
printf(": can't map register space\n");
return;
}
diff --git a/sys/arch/sparc64/dev/pckbc_ebus.c b/sys/arch/sparc64/dev/pckbc_ebus.c
index ccfcffdc1e5..e9d3dd7c679 100644
--- a/sys/arch/sparc64/dev/pckbc_ebus.c
+++ b/sys/arch/sparc64/dev/pckbc_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc_ebus.c,v 1.5 2003/06/24 21:54:39 henric Exp $ */
+/* $OpenBSD: pckbc_ebus.c,v 1.6 2003/12/16 15:08:50 jason Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -120,7 +120,7 @@ pckbc_ebus_attach(parent, self, aux)
&sc->sc_ioh);
else if (ebus_bus_map(sc->sc_iot, 0,
EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size,
- BUS_SPACE_MAP_LINEAR, 0, &sc->sc_ioh) != 0) {
+ 0, 0, &sc->sc_ioh) != 0) {
printf(": can't map register space\n");
return;
}
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index a0475fd0cda..0415c2a1fbc 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.15 2003/10/03 16:44:50 miod Exp $ */
+/* $OpenBSD: sab.c,v 1.16 2003/12/16 15:08:50 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -243,8 +243,8 @@ sab_attach(parent, self, aux)
return;
}
} else if (ebus_bus_map(sc->sc_bt, 0,
- EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size,
- BUS_SPACE_MAP_LINEAR, 0, &sc->sc_bh) != 0) {
+ EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, 0, 0,
+ &sc->sc_bh) != 0) {
printf(": can't map register space\n");
return;
}
diff --git a/sys/arch/sparc64/dev/stp_sbus.c b/sys/arch/sparc64/dev/stp_sbus.c
index 858412eba96..07e97b29ef6 100644
--- a/sys/arch/sparc64/dev/stp_sbus.c
+++ b/sys/arch/sparc64/dev/stp_sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stp_sbus.c,v 1.4 2003/06/25 17:36:51 miod Exp $ */
+/* $OpenBSD: stp_sbus.c,v 1.5 2003/12/16 15:08:50 jason Exp $ */
/* $NetBSD: stp4020.c,v 1.23 2002/06/01 23:51:03 lukem Exp $ */
/*-
@@ -137,8 +137,8 @@ stpattach(parent, self, aux)
continue;
if (sbus_bus_map(sa->sa_bustag, sa->sa_reg[i].sbr_slot,
- sa->sa_reg[i].sbr_offset, sa->sa_reg[i].sbr_size,
- BUS_SPACE_MAP_LINEAR, 0, &bh) != 0) {
+ sa->sa_reg[i].sbr_offset, sa->sa_reg[i].sbr_size, 0, 0,
+ &bh) != 0) {
printf(": attach: cannot map registers\n");
return;
}