summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfivar.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2012-08-13 05:20:31 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2012-08-13 05:20:31 +0000
commit78a534ce1e6cc073916e8405f1faac974b666252 (patch)
tree8a616a4e36c5beaea8265cec2a0d2046ca33fbe1 /sys/dev/ic/mfivar.h
parente37a9a6cef30ec5786dc3a68cb5ec8ee5e23f44f (diff)
do appropriate bus_dmamapy_syncs around the pcq/completion ring.
tested on a perc5 (xscale)
Diffstat (limited to 'sys/dev/ic/mfivar.h')
-rw-r--r--sys/dev/ic/mfivar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/mfivar.h b/sys/dev/ic/mfivar.h
index ac4ceec60c3..84987fcbac1 100644
--- a/sys/dev/ic/mfivar.h
+++ b/sys/dev/ic/mfivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfivar.h,v 1.42 2012/01/12 06:12:30 dlg Exp $ */
+/* $OpenBSD: mfivar.h,v 1.43 2012/08/13 05:20:30 dlg Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -43,6 +43,7 @@ struct mfi_mem {
};
#define MFIMEM_MAP(_am) ((_am)->am_map)
+#define MFIMEM_LEN(_am) ((_am)->am_map->dm_mapsize)
#define MFIMEM_DVA(_am) ((_am)->am_map->dm_segs[0].ds_addr)
#define MFIMEM_KVA(_am) ((void *)(_am)->am_kva)