qcom_cma_heap.h 416 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _QCOM_CMA_HEAP_H
  6. #define _QCOM_CMA_HEAP_H
  7. #include "qcom_dt_parser.h"
  8. #ifdef CONFIG_QCOM_DMABUF_HEAPS_CMA
  9. int qcom_add_cma_heap(struct platform_heap *heap_data);
  10. #else
  11. static int qcom_add_cma_heap(struct platform_heap *heap_data)
  12. {
  13. return 1;
  14. }
  15. #endif
  16. #endif /* _QCOM_CMA_HEAP_H */