summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-05-27 04:59:59 +0000
committerscottl <scottl@FreeBSD.org>2003-05-27 04:59:59 +0000
commitf26aca7b718b2d8b17889ad8eb0c65281493cc06 (patch)
treeaaea1de6e07eae55f5e31e6ae4f5d42cc5ae59a1 /sys/ia64/include
parent5fd5bdfb84667ef474531ecc19cceafdf2ef5e36 (diff)
downloadFreeBSD-src-f26aca7b718b2d8b17889ad8eb0c65281493cc06.zip
FreeBSD-src-f26aca7b718b2d8b17889ad8eb0c65281493cc06.tar.gz
Bring back bus_dmasync_op_t. It is now a typedef to an int, though the
BUS_DMASYNC_ definitions remain as before. The does not change the ABI, and reverts the API to be a bit more compatible and flexible. This has survived a full 'make universe'. Approved by: re (bmah)
Diffstat (limited to 'sys/ia64/include')
-rw-r--r--sys/ia64/include/bus.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ia64/include/bus.h b/sys/ia64/include/bus.h
index 5b24029..c060a4b 100644
--- a/sys/ia64/include/bus.h
+++ b/sys/ia64/include/bus.h
@@ -864,6 +864,7 @@ struct uio;
/*
* Operations performed by bus_dmamap_sync().
*/
+typedef int bus_dmasync_op_t;
#define BUS_DMASYNC_PREREAD 1
#define BUS_DMASYNC_POSTREAD 2
#define BUS_DMASYNC_PREWRITE 4
@@ -998,7 +999,7 @@ int bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, struct uio *ui,
*/
void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, int);
static __inline void
-bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t dmamap, int op)
+bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t dmamap, bus_dmasync_op_t op)
{
if ((dmamap) != NULL)
_bus_dmamap_sync(dmat, dmamap, op);
OpenPOWER on IntegriCloud