summaryrefslogtreecommitdiffstats
path: root/sys/amd64/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/amd64/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/amd64/include')
-rw-r--r--sys/amd64/include/bus_dma.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/bus_dma.h b/sys/amd64/include/bus_dma.h
index 67609d9..a74a942 100644
--- a/sys/amd64/include/bus_dma.h
+++ b/sys/amd64/include/bus_dma.h
@@ -91,6 +91,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
@@ -224,7 +225,7 @@ int bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map,
/*
* Perform a syncronization operation on the given map.
*/
-void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, int);
+void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, bus_dmasync_op_t);
#define bus_dmamap_sync(dmat, dmamap, op) \
if ((dmamap) != NULL) \
_bus_dmamap_sync(dmat, dmamap, op)
OpenPOWER on IntegriCloud