summaryrefslogtreecommitdiff
path: root/sys/dev/ic/adw.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-08-26 02:39:06 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-08-26 02:39:06 +0000
commit1a3ab74be6a248a9ce5e4f1a69e64bdf72ec1028 (patch)
tree2b4768bea9b83ebfe3ed4bd9825d4cf3874ddda8 /sys/dev/ic/adw.h
parent40fa393c45fd6ea6f962a70da026768f6ad9ffa1 (diff)
Prepare for transition to 5-parameter bus_dmamap_sync() by creating and
using *_bus_dmamap_sync() defines that are defined appropriately depending on __HAS_NEW_BUS_DMAMAP_SYNC. Most of the code changes are simple reversions to the original NetBSD code. Slip in a siop_script_sync() instead of a manually done code section.
Diffstat (limited to 'sys/dev/ic/adw.h')
-rw-r--r--sys/dev/ic/adw.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ic/adw.h b/sys/dev/ic/adw.h
index 2d965d725e1..00eccde2028 100644
--- a/sys/dev/ic/adw.h
+++ b/sys/dev/ic/adw.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: adw.h,v 1.6 2001/01/15 16:27:53 krw Exp $ */
+/* $OpenBSD: adw.h,v 1.7 2001/08/26 02:39:05 krw Exp $ */
/* $NetBSD: adw.h,v 1.9 2000/05/26 15:13:43 dante Exp $ */
/*
@@ -116,4 +116,13 @@ ADW_CCB *adw_ccb_phys_kv __P((ADW_SOFTC *, u_int32_t));
/******************************************************************************/
+#ifdef __HAS_NEW_BUS_DMAMAP_SYNC
+#define adw_bus_dmamap_sync(tag, map, off, len, op) \
+ bus_dmamap_sync((tag), (map), (off), (len), (op))
+#else
+#define adw_bus_dmamap_sync(tag, map, off, len, op) \
+ bus_dmamap_sync((tag), (map), (op))
+#endif
+
+
#endif /* _ADVANSYS_ADW_H_ */