msm_ion_ids.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _MSM_ION_IDS_H
  6. #define _MSM_ION_IDS_H
  7. #define ION_BIT(nr) (1U << (nr))
  8. /**
  9. * These are the only ids that should be used for Ion heap ids.
  10. * The ids listed are the order in which allocation will be attempted
  11. * if specified. Don't swap the order of heap ids unless you know what
  12. * you are doing!
  13. * Id's are spaced by purpose to allow new Id's to be inserted in-between (for
  14. * possible fallbacks)
  15. */
  16. /* ION_BIT(0) is reserved for the generic system heap. */
  17. #define ION_QSECOM_TA_HEAP_ID ION_BIT(1)
  18. #define ION_CAMERA_HEAP_ID ION_BIT(2)
  19. #define ION_DISPLAY_HEAP_ID ION_BIT(3)
  20. #define ION_ADSP_HEAP_ID ION_BIT(4)
  21. #define ION_AUDIO_ML_HEAP_ID ION_BIT(5)
  22. #define ION_USER_CONTIG_HEAP_ID ION_BIT(6)
  23. #define ION_QSECOM_HEAP_ID ION_BIT(7)
  24. #define ION_AUDIO_HEAP_ID ION_BIT(8)
  25. #define ION_CP_MM_HEAP_ID ION_BIT(9)
  26. #define ION_SECURE_HEAP_ID ION_BIT(10)
  27. #define ION_SECURE_DISPLAY_HEAP_ID ION_BIT(11)
  28. #define ION_SPSS_HEAP_ID ION_BIT(14)
  29. #define ION_SECURE_CARVEOUT_HEAP_ID ION_BIT(15)
  30. #define ION_TUI_CARVEOUT_HEAP_ID ION_BIT(16)
  31. #define ION_SYSTEM_HEAP_ID ION_BIT(25)
  32. #define ION_HEAP_ID_RESERVED ION_BIT(31)
  33. #endif /* _MSM_ION_IDS_H */