summaryrefslogtreecommitdiff
path: root/sys/dev/ic/adv.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-08-26 18:03:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-08-26 18:03:08 +0000
commita35ad9056d712093093efa6a92d4056bbc19fbed (patch)
tree1dbb468f76ec4e949cc856b2c8b2640f88c826c0 /sys/dev/ic/adv.h
parent9ed9e6a7815213420fd7277d5a1663bf67422bb2 (diff)
Prepare for transition to 5-parameter bus_dmamap_sync() by creating and
using adv_bus_dmamap_sync() defines that are defined appropriately depending on __HAS_NEW_BUS_DMAMAP_SYNC. The code changes are simple reversions to the original NetBSD code.
Diffstat (limited to 'sys/dev/ic/adv.h')
-rw-r--r--sys/dev/ic/adv.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/adv.h b/sys/dev/ic/adv.h
index fc1bec4320e..e3498fb2101 100644
--- a/sys/dev/ic/adv.h
+++ b/sys/dev/ic/adv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: adv.h,v 1.2 1998/09/28 01:56:57 downsj Exp $ */
+/* $OpenBSD: adv.h,v 1.3 2001/08/26 18:03:07 krw Exp $ */
/* $NetBSD: adv.h,v 1.3 1998/09/26 16:02:56 dante Exp $ */
/*
@@ -93,4 +93,12 @@ int adv_intr __P((void *arg));
/******************************************************************************/
+#ifdef __HAS_NEW_BUS_DMAMAP_SYNC
+#define adv_bus_dmamap_sync(tag, map, off, len, op) \
+ bus_dmamap_sync((tag), (map), (off), (len), (op))
+#else
+#define adv_bus_dmamap_sync(tag, map, off, len, op) \
+ bus_dmamap_sync((tag), (map), (op))
+#endif
+
#endif /* _ADVANSYS_NARROW_H_ */