summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-10-01 13:39:24 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-10-01 13:39:24 +0000
commitd4d9863bea0597d4a984f4dee7b06d8911ae6f5c (patch)
tree54e8029026c4f32130ed63d3097054cb57fe2ae7 /sys/arch
parent56a4c15bc8c1318d384805608330438eb915fb4a (diff)
simplifiy esp_dafb_have_dreq()
from NetBSD
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mac68k/dev/esp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/mac68k/dev/esp.c b/sys/arch/mac68k/dev/esp.c
index cb4f9c9ce4e..7439c46c397 100644
--- a/sys/arch/mac68k/dev/esp.c
+++ b/sys/arch/mac68k/dev/esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esp.c,v 1.22 2005/08/09 09:15:53 martin Exp $ */
+/* $OpenBSD: esp.c,v 1.23 2005/10/01 13:39:23 martin Exp $ */
/* $NetBSD: esp.c,v 1.17 1998/09/05 15:15:35 pk Exp $ */
/*
@@ -589,10 +589,7 @@ static __inline__ int
esp_dafb_have_dreq(esc)
struct esp_softc *esc;
{
- u_int32_t r;
-
- r = bus_space_read_4(esc->sc_tag, esc->sc_bsh, 0);
- return (r & 0x200);
+ return (*(volatile u_int32_t *)(esc->sc_bsh.base) & 0x200);
}
static __inline__ int