1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26#ifndef __DIVA_DMA_MAPPING_IFC_H__
27#define __DIVA_DMA_MAPPING_IFC_H__
28typedef struct _diva_dma_map_entry diva_dma_map_entry_t;
29struct _diva_dma_map_entry *diva_alloc_dma_map(void *os_context, int nentries);
30void diva_init_dma_map_entry(struct _diva_dma_map_entry *pmap,
31 int nr, void *virt, dword phys,
32 void *addr_handle);
33int diva_alloc_dma_map_entry(struct _diva_dma_map_entry *pmap);
34void diva_free_dma_map_entry(struct _diva_dma_map_entry *pmap, int entry);
35void diva_get_dma_map_entry(struct _diva_dma_map_entry *pmap, int nr,
36 void **pvirt, dword *pphys);
37void diva_free_dma_mapping(struct _diva_dma_map_entry *pmap);
38
39
40
41
42void diva_init_dma_map(void *hdev,
43 struct _diva_dma_map_entry **ppmap,
44 int nentries);
45void diva_free_dma_map(void *hdev,
46 struct _diva_dma_map_entry *pmap);
47void *diva_get_entry_handle(struct _diva_dma_map_entry *pmap, int nr);
48#endif
49