info_page_defs.h 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*************************************************************************/ /*!
  2. @File
  3. @Title Kernel/User mode general purpose shared memory.
  4. @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
  5. @Description General purpose shared memory (i.e. information page) mapped by
  6. kernel space driver and user space clients. All information page
  7. entries are sizeof(IMG_UINT32) on both 32/64-bit environments.
  8. @License Dual MIT/GPLv2
  9. The contents of this file are subject to the MIT license as set out below.
  10. Permission is hereby granted, free of charge, to any person obtaining a copy
  11. of this software and associated documentation files (the "Software"), to deal
  12. in the Software without restriction, including without limitation the rights
  13. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  14. copies of the Software, and to permit persons to whom the Software is
  15. furnished to do so, subject to the following conditions:
  16. The above copyright notice and this permission notice shall be included in
  17. all copies or substantial portions of the Software.
  18. Alternatively, the contents of this file may be used under the terms of
  19. the GNU General Public License Version 2 ("GPL") in which case the provisions
  20. of GPL are applicable instead of those above.
  21. If you wish to allow use of your version of this file only under the terms of
  22. GPL, and not to allow others to use your version of this file under the terms
  23. of the MIT license, indicate your decision by deleting the provisions above
  24. and replace them with the notice and other provisions required by GPL as set
  25. out in the file called "GPL-COPYING" included in this distribution. If you do
  26. not delete the provisions above, a recipient may use your version of this file
  27. under the terms of either the MIT license or GPL.
  28. This License is also included in this distribution in the file called
  29. "MIT-COPYING".
  30. EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
  31. PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
  32. BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  33. PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
  34. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  35. IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  36. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  37. */ /**************************************************************************/
  38. #ifndef INFO_PAGE_DEFS_H
  39. #define INFO_PAGE_DEFS_H
  40. /* CacheOp information page entries */
  41. #define CACHEOP_INFO_IDX_START 0x00
  42. #define CACHEOP_INFO_UMKMTHRESHLD (CACHEOP_INFO_IDX_START + 1) /*!< UM=>KM routing threshold in bytes */
  43. #define CACHEOP_INFO_KMDFTHRESHLD (CACHEOP_INFO_IDX_START + 2) /*!< KM/DF threshold in bytes */
  44. #define CACHEOP_INFO_LINESIZE (CACHEOP_INFO_IDX_START + 3) /*!< CPU data cache line size */
  45. #define CACHEOP_INFO_PGSIZE (CACHEOP_INFO_IDX_START + 4) /*!< CPU MMU page size */
  46. #define CACHEOP_INFO_IDX_END (CACHEOP_INFO_IDX_START + 5)
  47. /* HWPerf information page entries */
  48. #define HWPERF_INFO_IDX_START (CACHEOP_INFO_IDX_END)
  49. #define HWPERF_FILTER_SERVICES_IDX (HWPERF_INFO_IDX_START + 0)
  50. #define HWPERF_FILTER_EGL_IDX (HWPERF_INFO_IDX_START + 1)
  51. #define HWPERF_FILTER_OPENGLES_IDX (HWPERF_INFO_IDX_START + 2)
  52. #define HWPERF_FILTER_OPENCL_IDX (HWPERF_INFO_IDX_START + 3)
  53. #define HWPERF_FILTER_VULKAN_IDX (HWPERF_INFO_IDX_START + 4)
  54. #define HWPERF_FILTER_OPENGL_IDX (HWPERF_INFO_IDX_START + 5)
  55. #define HWPERF_INFO_IDX_END (HWPERF_INFO_IDX_START + 6)
  56. /* timeout values */
  57. #define TIMEOUT_INFO_IDX_START (HWPERF_INFO_IDX_END)
  58. #define TIMEOUT_INFO_VALUE_RETRIES (TIMEOUT_INFO_IDX_START + 0)
  59. #define TIMEOUT_INFO_VALUE_TIMEOUT_MS (TIMEOUT_INFO_IDX_START + 1)
  60. #define TIMEOUT_INFO_CONDITION_RETRIES (TIMEOUT_INFO_IDX_START + 2)
  61. #define TIMEOUT_INFO_CONDITION_TIMEOUT_MS (TIMEOUT_INFO_IDX_START + 3)
  62. #define TIMEOUT_INFO_TASK_QUEUE_RETRIES (TIMEOUT_INFO_IDX_START + 4)
  63. #define TIMEOUT_INFO_TASK_QUEUE_FLUSH_TIMEOUT_MS (TIMEOUT_INFO_IDX_START + 5)
  64. #define TIMEOUT_INFO_IDX_END (TIMEOUT_INFO_IDX_START + 6)
  65. /* Bridge Info */
  66. #define BRIDGE_INFO_IDX_START (TIMEOUT_INFO_IDX_END)
  67. #define BRIDGE_INFO_RGX_BRIDGES (BRIDGE_INFO_IDX_START + 0)
  68. #define BRIDGE_INFO_PVR_BRIDGES (BRIDGE_INFO_IDX_START + 1)
  69. #define BRIDGE_INFO_IDX_END (BRIDGE_INFO_IDX_START + 2)
  70. /* Debug features */
  71. #define DEBUG_FEATURE_FLAGS (BRIDGE_INFO_IDX_END)
  72. #define DEBUG_FEATURE_FULL_SYNC_TRACKING_ENABLED 0x1
  73. #define DEBUG_FEATURE_PAGE_FAULT_DEBUG_ENABLED 0x2
  74. #define DEBUG_FEATURE_FLAGS_IDX_END (DEBUG_FEATURE_FLAGS + 1)
  75. #endif /* INFO_PAGE_DEFS_H */