6 #include <sys/device.h>
9 #include <machine/bus.h>
12 * bus dma "implementation" for rump. needs "a little" more work
16 bus_dmamap_create(bus_dma_tag_t tag
, bus_size_t sz
, int flag
, bus_size_t bsz
,
17 bus_size_t bsz2
, int i
, bus_dmamap_t
*ptr
)
24 bus_dmamap_destroy(bus_dma_tag_t tag
, bus_dmamap_t map
)
27 panic("unimplemented %s", __func__
);
31 bus_dmamap_load(bus_dma_tag_t t
, bus_dmamap_t a
, void *b
, bus_size_t c
,
32 struct proc
*d
, int e
)
39 bus_dmamap_unload(bus_dma_tag_t a
, bus_dmamap_t b
)
42 panic("unimplemented %s", __func__
);
46 bus_dmamap_sync(bus_dma_tag_t a
, bus_dmamap_t b
, bus_addr_t c
,
50 panic("unimplemented %s", __func__
);
54 bus_dmamem_alloc(bus_dma_tag_t tag
, bus_size_t size
, bus_size_t align
,
55 bus_size_t boundary
, bus_dma_segment_t
*segs
, int nsegs
,
56 int *rsegs
, int flags
)
64 bus_dmamem_free(bus_dma_tag_t a
, bus_dma_segment_t
*b
, int c
)
67 panic("unimplemented %s", __func__
);
71 bus_dmamem_map(bus_dma_tag_t tag
, bus_dma_segment_t
*segs
, int nsegs
,
72 size_t size
, void **kvap
, int flags
)
76 *kvap
= kmem_alloc(size
, KM_SLEEP
);
81 bus_dmamem_unmap(bus_dma_tag_t a
, void *kva
, size_t b
)
84 panic("unimplemented %s", __func__
);