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:
Jianqun Xu
2022-03-26 08:44:51 +08:00
committed by Tao Huang
parent 752f86a47a
commit c63b9bb07c
2 changed files with 19 additions and 19 deletions

View File

@@ -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;

View File

@@ -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;