mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
dma-buf: rk_heaps: move cma heap structs into cma-heap driver
The rk_cma_heap and rk_cma_heap_buffer are only used by rk cma heap driver, move them into driver. Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com> Change-Id: I98867254dff5d4092008aa70244bbf9e10c394ac
This commit is contained in:
@@ -28,6 +28,25 @@
|
||||
|
||||
#include "rk-dma-heap.h"
|
||||
|
||||
struct rk_cma_heap {
|
||||
struct rk_dma_heap *heap;
|
||||
struct cma *cma;
|
||||
};
|
||||
|
||||
struct rk_cma_heap_buffer {
|
||||
struct rk_cma_heap *heap;
|
||||
struct list_head attachments;
|
||||
struct mutex lock;
|
||||
unsigned long len;
|
||||
struct page *cma_pages;
|
||||
struct page **pages;
|
||||
pgoff_t pagecount;
|
||||
int vmap_cnt;
|
||||
void *vaddr;
|
||||
phys_addr_t phys;
|
||||
bool attached;
|
||||
};
|
||||
|
||||
struct rk_cma_heap_attachment {
|
||||
struct device *dev;
|
||||
struct sg_table table;
|
||||
|
||||
@@ -26,25 +26,6 @@
|
||||
|
||||
#define RK_DMA_HEAP_NAME_LEN 16
|
||||
|
||||
struct rk_cma_heap {
|
||||
struct rk_dma_heap *heap;
|
||||
struct cma *cma;
|
||||
};
|
||||
|
||||
struct rk_cma_heap_buffer {
|
||||
struct rk_cma_heap *heap;
|
||||
struct list_head attachments;
|
||||
struct mutex lock;
|
||||
unsigned long len;
|
||||
struct page *cma_pages;
|
||||
struct page **pages;
|
||||
pgoff_t pagecount;
|
||||
int vmap_cnt;
|
||||
void *vaddr;
|
||||
phys_addr_t phys;
|
||||
bool attached;
|
||||
};
|
||||
|
||||
struct rk_vmap_pfn_data {
|
||||
unsigned long pfn; /* first pfn of contiguous */
|
||||
pgprot_t prot;
|
||||
|
||||
Reference in New Issue
Block a user