summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/include/rbus_machdep.h
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-10-07 05:39:49 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-10-07 05:39:49 +0000
commit378671f9f69d0e1b7b2d9c443584f084bbae7804 (patch)
tree8ed88f12d4b5c09fabe5b6f8339f8a81d4aeda3c /sys/arch/macppc/include/rbus_machdep.h
parentc0af872518bb1ede0a1ebd3b2dbb9bfc6bb4948c (diff)
Improved workaround for cardbus support on macppc. This allows mappings to
be put in the cardbus register which really work instead of crashing the machine. if_dc @cardbus now works, xl@cardbus will configure, but does not work properly (endian?) wdc should work fine, but has not been tested recently.
Diffstat (limited to 'sys/arch/macppc/include/rbus_machdep.h')
-rw-r--r--sys/arch/macppc/include/rbus_machdep.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/macppc/include/rbus_machdep.h b/sys/arch/macppc/include/rbus_machdep.h
index 42bb0cc022b..723ef45dfdd 100644
--- a/sys/arch/macppc/include/rbus_machdep.h
+++ b/sys/arch/macppc/include/rbus_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rbus_machdep.h,v 1.1 2002/07/23 17:53:24 drahn Exp $ */
+/* $OpenBSD: rbus_machdep.h,v 1.2 2002/10/07 05:39:48 drahn Exp $ */
/* $NetBSD: rbus_machdep.h,v 1.2 1999/10/15 06:43:05 haya Exp $ */
/*
@@ -51,6 +51,9 @@ bus_addr_t bus_space_unmap_p(bus_space_tag_t t, bus_space_handle_t bsh,
#define md_space_unmap(bt, bsh, size, adrp) \
do { \
*adrp = bus_space_unmap_p((bt), (bsh), (size)); \
+ if (bt->bus_io) { \
+ *adrp = *adrp & 0xffff; \
+ } \
} while (0)
rbus_tag_t rbus_pccbb_parent_io(struct device *self,