xref: /netbsd-src/sys/arch/evbmips/malta/pci/pci_machdep.c (revision de4fa6c51a9708fc05f88b618fa6fad87c9508ec)
1 /*	$NetBSD: pci_machdep.c,v 1.4 2005/12/11 12:17:11 christos Exp $	*/
2 
3 #include <sys/cdefs.h>
4 __KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.4 2005/12/11 12:17:11 christos Exp $");
5 
6 #include <sys/param.h>
7 #include <sys/device.h>
8 
9 #define _MIPS_BUS_DMA_PRIVATE
10 #include <machine/bus.h>
11 
12 /*
13  * PCI doesn't have any special needs; just use
14  * the generic versions of these functions.
15  */
16 struct mips_bus_dma_tag pci_bus_dma_tag = {
17 	NULL,	/* cookie */
18 	0,	/* _wbase */
19 	0,	/* _physbase */
20 	0,	/* _wsize */
21 	_bus_dmamap_create,
22 	_bus_dmamap_destroy,
23 	_bus_dmamap_load,
24 	_bus_dmamap_load_mbuf,
25 	_bus_dmamap_load_uio,
26 	_bus_dmamap_load_raw,
27 	_bus_dmamap_unload,
28 	_bus_dmamap_sync,
29 	_bus_dmamem_alloc,
30 	_bus_dmamem_free,
31 	_bus_dmamem_map,
32 	_bus_dmamem_unmap,
33 	_bus_dmamem_mmap,
34 };
35