kernel-brax3-ubuntu-touch/drivers/misc/mediatek/jpeg/jpeg_dma_buf.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

26 lines
911 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 MediaTek Inc.
*/
#ifndef __JPEG_DMA_BUF_H__
#define __JPEG_DMA_BUF_H__
#include <linux/dma-buf.h>
#include <linux/dma-heap.h>
#include <uapi/linux/dma-heap.h>
#include <linux/dma-direction.h>
#include <linux/scatterlist.h>
int jpg_dmabuf_get_iova(struct dma_buf *dbuf, u64 *iova,
struct device *dev, struct dma_buf_attachment **attach, struct sg_table **sgt);
void jpg_dmabuf_free_iova(struct dma_buf *dbuf,
struct dma_buf_attachment *attach, struct sg_table *sgt);
int jpg_dmabuf_fd(struct dma_buf *dbuf);
struct dma_buf *jpg_dmabuf_get(int fd);
void jpg_dmabuf_put(struct dma_buf *dbuf);
int jpg_dmabuf_vmap(struct dma_buf *dbuf, struct dma_buf_map *map);
void jpg_dmabuf_vunmap(struct dma_buf *dbuf, struct dma_buf_map *map);
struct dma_buf *jpg_dmabuf_alloc(size_t size, size_t align, unsigned int flags);
#endif /*__JPEG_DMA_BUF_H__*/