qcom_glink_cma.h 602 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __QCOM_GLINK_CMA_H__
  6. #define __QCOM_GLINK_CMA_H__
  7. #define GLINK_FEATURE_INTENT_REUSE BIT(0)
  8. /**
  9. * glink_cma_config - GLINK CMA config structure
  10. * @base: base of the shared CMA.
  11. * @size: size of the shared CMA.
  12. */
  13. struct glink_cma_config {
  14. void *base;
  15. size_t size;
  16. };
  17. struct qcom_glink *qcom_glink_cma_register(struct device *parent, struct device_node *node,
  18. struct glink_cma_config *config);
  19. void qcom_glink_cma_unregister(struct qcom_glink *glink);
  20. #endif