From f26aca7b718b2d8b17889ad8eb0c65281493cc06 Mon Sep 17 00:00:00 2001 From: scottl Date: Tue, 27 May 2003 04:59:59 +0000 Subject: 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) --- sys/sys/bus_dma.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/sys/bus_dma.h') diff --git a/sys/sys/bus_dma.h b/sys/sys/bus_dma.h index f706677..2a10d06 100644 --- a/sys/sys/bus_dma.h +++ b/sys/sys/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) -- cgit v1.1