msm_vidc_memory.h 795 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _MSM_VIDC_MEMORY_H_
  6. #define _MSM_VIDC_MEMORY_H_
  7. #include "msm_vidc_internal.h"
  8. #include "msm_vidc_core.h"
  9. int msm_vidc_memory_alloc(struct msm_vidc_core *core,
  10. struct msm_vidc_alloc *alloc);
  11. int msm_vidc_memory_free(struct msm_vidc_core *core,
  12. struct msm_vidc_alloc *alloc);
  13. int msm_vidc_memory_map(struct msm_vidc_core *core,
  14. struct msm_vidc_map *map);
  15. int msm_vidc_memory_unmap(struct msm_vidc_core *core,
  16. struct msm_vidc_map *map);
  17. int msm_vidc_memory_unmap_completely(struct msm_vidc_core *core,
  18. struct msm_vidc_map *map);
  19. struct dma_buf *msm_vidc_memory_get_dmabuf(int fd);
  20. void msm_vidc_memory_put_dmabuf(void *dmabuf);
  21. #endif // _MSM_VIDC_MEMORY_H_