Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / adf / adf_os_dma_pvt.h
1 #ifndef __ADF_NBUF_DMA_PVT_H
2 #define __ADF_NBUF_DMA_PVT_H
3
4 #include <adf_os_types.h>
5 #include <adf_os_util.h>
6
7 inline void*
8 __adf_os_dmamem_alloc(__adf_os_device_t osdev, adf_os_size_t size, 
9                       a_bool_t coherent, __adf_os_dma_map_t *dmap);
10
11 /* 
12  * Free a previously mapped DMA buffer 
13  * Direction doesnt matter, since this API is called at closing time.
14  */
15 static inline void
16 __adf_os_dmamem_free(adf_os_device_t    osdev, __adf_os_size_t size, a_bool_t coherent,
17                                          void *vaddr, __adf_os_dma_map_t dmap)
18
19
20 }
21
22
23 //#define __adf_os_dmamem_map2addr(_dmap)    ((_dmap)->seg[0].ds_addr)
24 #define __adf_os_dmamem_map2addr(_dmap) ((adf_os_dma_addr_t)(_dmap)->ds_addr)
25
26 static inline void 
27 __adf_os_dmamem_cache_sync(__adf_os_device_t osdev, __adf_os_dma_map_t dmap, adf_os_cache_sync_t sync)
28 {
29
30 }
31
32
33 static inline adf_os_size_t
34 __adf_os_cache_line_size(void)
35 {
36     /**
37      * Todo
38      */
39    return 0;
40 }
41
42 #endif