7 #ifndef __MW_DMA_MEM_H__ 8 #define __MW_DMA_MEM_H__ 22 static inline int mw_valid_dma_direction(
int direction)
29 #define MW_DMA_MEMORY_MAX_CLIENT (16) 31 #define MWCAP_VIDEO_MEMORY_TYPE_USER (3) 32 #define MWCAP_VIDEO_MEMORY_TYPE_PHYSICAL (4) 33 #define MWCAP_VIDEO_MEMORY_TYPE_NVRDMA (5) 34 #define MWCAP_VIDEO_MEMORY_TYPE_PRIV_BASE (6) 51 unsigned long addr,
size_t size,
int(* create_dma_desc)(struct mw_dma_desc **dma_desc, unsigned long addr, size_t size, int direction, void *private_data)
int mw_register_dma_memory_client(struct mw_dma_memory_client *client)
int(* sync_for_cpu)(struct mw_dma_desc *dma_desc)
int(* sync_for_device)(struct mw_dma_desc *dma_desc)
int mw_unregister_dma_memory_client(struct mw_dma_memory_client *client)
void(* destroy_dma_desc)(struct mw_dma_desc *dma_desc)
mw_scatterlist_t * mwsg_list
struct mw_dma_memory_client * client