diff options
| author | Yajun Li <yajunl@codeaurora.org> | 2018-01-15 10:36:45 +0800 |
|---|---|---|
| committer | Yajun Li <yajunl@codeaurora.org> | 2018-04-26 18:36:09 +0800 |
| commit | 0866bef74dada464abb3f8b0ab845aa64f6dd9db (patch) | |
| tree | 1c9bab4e031bc8cda63f8333d70e341e4da56d06 /include/linux | |
| parent | 502257f3e6a9fbc83bdf42d98aef495c8dcecf11 (diff) | |
hab: import/export between remote buffer and dmafd
currently hab only supports importing remote buffer
to cpu address, which can't be shared to other process.
Therefore we add dma_buf import/export function in hab
Change-Id: I156c925d7c0cefef5bf146ad8cff38de9c4b3bee
Signed-off-by: Yajun Li <yajunl@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/habmm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/habmm.h b/include/linux/habmm.h index 966c5ee91be4..842cd27fd372 100644 --- a/include/linux/habmm.h +++ b/include/linux/habmm.h @@ -214,6 +214,11 @@ int32_t habmm_socket_recvfrom(int32_t handle, void *dst_buff, */ #define HABMM_EXP_MEM_TYPE_DMA 0x00000001 +/* + * this flag is used for export from dma_buf fd or import to dma_buf fd + */ +#define HABMM_EXPIMP_FLAGS_FD 0x00010000 + #define HAB_MAX_EXPORT_SIZE 0x8000000 /* |
