msm_vidc_memory.h 702 B

1234567891011121314151617181920212223
  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. struct dma_buf *msm_vidc_memory_get_dmabuf(int fd);
  18. void msm_vidc_memory_put_dmabuf(void *dmabuf);
  19. #endif // _MSM_VIDC_MEMORY_H_