summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/isa/isa_machdep.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-05 02:39:58 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-05 02:39:58 +0000
commit66b6f056afa073b7f8c10d4803073cb4588a1931 (patch)
treeb02d3e0db6cad7425c7a361537eba0cc066e8d6e /sys/arch/alpha/isa/isa_machdep.h
parentfb23a89e7b35b7d7276f349dbbf4833733501e09 (diff)
Code for isadma bouncing.
From NetBSD.
Diffstat (limited to 'sys/arch/alpha/isa/isa_machdep.h')
-rw-r--r--sys/arch/alpha/isa/isa_machdep.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/arch/alpha/isa/isa_machdep.h b/sys/arch/alpha/isa/isa_machdep.h
index cba9d560f33..0fdf551a634 100644
--- a/sys/arch/alpha/isa/isa_machdep.h
+++ b/sys/arch/alpha/isa/isa_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.h,v 1.8 2001/10/26 01:28:06 nate Exp $ */
+/* $OpenBSD: isa_machdep.h,v 1.9 2001/11/05 02:39:57 art Exp $ */
/* $NetBSD: isa_machdep.h,v 1.3 1996/11/19 04:53:07 cgd Exp $ */
/*
@@ -63,3 +63,22 @@ struct alpha_isa_chipset {
* NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
*/
int isa_display_console __P((bus_space_tag_t, bus_space_tag_t));
+
+#ifdef _ALPHA_BUS_DMA_PRIVATE
+int isadma_bounce_dmamap_create(bus_dma_tag_t, bus_size_t, int,
+ bus_size_t, bus_size_t, int, bus_dmamap_t *);
+void isadma_bounce_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t);
+int isadma_bounce_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *,
+ bus_size_t, struct proc *, int);
+int isadma_bounce_dmamap_load_mbuf(bus_dma_tag_t, bus_dmamap_t,
+ struct mbuf *, int);
+int isadma_bounce_dmamap_load_uio(bus_dma_tag_t, bus_dmamap_t,
+ struct uio *, int);
+int isadma_bounce_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t,
+ bus_dma_segment_t *, int, bus_size_t, int);
+void isadma_bounce_dmamap_unload(bus_dma_tag_t, bus_dmamap_t);
+void isadma_bounce_dmamap_sync(bus_dma_tag_t, bus_dmamap_t,
+ bus_dmasync_op_t);
+int isadma_bounce_dmamem_alloc(bus_dma_tag_t, bus_size_t, bus_size_t,
+ bus_size_t, bus_dma_segment_t *, int, int *, int);
+#endif /* _ALPHA_BUS_DMA_PRIVATE */