qti-smmu-proxy-callbacks.h 737 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __SMMU_PROXY_CALLBACKS_H_
  6. #define __SMMU_PROXY_CALLBACKS_H_
  7. typedef int (*smmu_proxy_map_sgtable)(struct device *client_dev, struct sg_table *table,
  8. struct dma_buf *dmabuf);
  9. typedef void (*smmu_proxy_unmap_sgtable)(struct device *client_dev, struct sg_table *table,
  10. struct dma_buf *dmabuf);
  11. struct smmu_proxy_callbacks {
  12. smmu_proxy_map_sgtable map_sgtable;
  13. smmu_proxy_unmap_sgtable unmap_sgtable;
  14. };
  15. int qti_smmu_proxy_register_callbacks(smmu_proxy_map_sgtable map_sgtable_fn_ptr,
  16. smmu_proxy_unmap_sgtable unmap_sgtable_fn_ptr);
  17. #endif /* __SMMU_PROXY_CALLBACKS_H_ */