msm_gsi.h 791 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef MSM_GSI_H
  6. #define MSM_GSI_H
  7. #include <linux/types.h>
  8. #include <linux/interrupt.h>
  9. enum gsi_chan_dir {
  10. GSI_CHAN_DIR_FROM_GSI = 0x0,
  11. GSI_CHAN_DIR_TO_GSI = 0x1
  12. };
  13. /**
  14. * @GSI_USE_PREFETCH_BUFS: Channel will use normal prefetch buffers if possible
  15. * @GSI_ESCAPE_BUF_ONLY: Channel will always use escape buffers only
  16. * @GSI_SMART_PRE_FETCH: Channel will work in smart prefetch mode.
  17. * relevant starting GSI 2.5
  18. * @GSI_FREE_PRE_FETCH: Channel will work in free prefetch mode.
  19. * relevant starting GSI 2.5
  20. */
  21. enum gsi_prefetch_mode {
  22. GSI_USE_PREFETCH_BUFS = 0x0,
  23. GSI_ESCAPE_BUF_ONLY = 0x1,
  24. GSI_SMART_PRE_FETCH = 0x2,
  25. GSI_FREE_PRE_FETCH = 0x3,
  26. };
  27. #endif