vg_lite_option.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /****************************************************************************
  2. *
  3. * The MIT License (MIT)
  4. *
  5. * Copyright (c) 2014 - 2022 Vivante Corporation
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the "Software"),
  9. * to deal in the Software without restriction, including without limitation
  10. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. * and/or sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in
  15. * all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. * DEALINGS IN THE SOFTWARE.
  24. *
  25. *****************************************************************************
  26. *
  27. * The GPL License (GPL)
  28. *
  29. * Copyright (C) 2014 - 2022 Vivante Corporation
  30. *
  31. * This program is free software; you can redistribute it and/or
  32. * modify it under the terms of the GNU General Public License
  33. * as published by the Free Software Foundation; either version 2
  34. * of the License, or (at your option) any later version.
  35. *
  36. * This program is distributed in the hope that it will be useful,
  37. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. * GNU General Public License for more details.
  40. *
  41. * You should have received a copy of the GNU General Public License
  42. * along with this program; if not, write to the Free Software Foundation,
  43. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  44. *
  45. *****************************************************************************
  46. *
  47. * Note: This software is released under dual MIT and GPL licenses. A
  48. * recipient may use this file under the terms of either the MIT license or
  49. * GPL License. If you wish to use only one license not the other, you can
  50. * indicate your decision by deleting one of the above license notices in your
  51. * version of this file.
  52. *
  53. *****************************************************************************/
  54. #ifndef _vg_lite_option_h_
  55. #define _vg_lite_option_h_
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59. /*
  60. * Set gcdVG_ENABLE_WRITEBUFFER to 1 for Linux Write Combined memory access
  61. * Set gcdVG_ENABLE_WRITEBUFFER to 0 for Linux Uncacheable memory access
  62. */
  63. #ifndef gcdVG_ENABLE_WRITEBUFFER
  64. #define gcdVG_ENABLE_WRITEBUFFER 1
  65. #endif
  66. /*
  67. * Backup state command, only support Linux and RTOS
  68. */
  69. #ifndef gcdVG_ENABLE_BACKUP_COMMAND
  70. #define gcdVG_ENABLE_BACKUP_COMMAND 1
  71. #endif
  72. /*
  73. * Power management, only support Linux and RTOS
  74. */
  75. #ifndef gcdVG_ENABLE_POWER_MANAGEMENT
  76. #define gcdVG_ENABLE_POWER_MANAGEMENT 0
  77. #endif
  78. /*
  79. * when set to 1, vg_lite_hal_trace can use to print message
  80. */
  81. #ifndef gcdVG_ENABLE_DEBUG
  82. #define gcdVG_ENABLE_DEBUG 0
  83. #endif
  84. /*
  85. * when set to 1, dump last submit command from kernel
  86. */
  87. #ifndef gcdVG_ENABLE_DUMP_COMMAND
  88. #define gcdVG_ENABLE_DUMP_COMMAND 0
  89. #endif
  90. /*
  91. * when gpu hang, set 1 to open gpu reset function
  92. */
  93. #ifndef gcdVG_ENABLE_GPU_RESET
  94. #define gcdVG_ENABLE_GPU_RESET 0
  95. #endif
  96. /*
  97. * Set 1 to open gpu auto clock gating feature
  98. */
  99. #ifndef gcdVG_ENABLE_AUTO_CLOCK_GATING
  100. #define gcdVG_ENABLE_AUTO_CLOCK_GATING 1
  101. #endif
  102. /*
  103. * Set 1 to open dump debug register
  104. */
  105. #ifndef gcdVG_DUMP_DEBUG_REGISTER
  106. #define gcdVG_DUMP_DEBUG_REGISTER 0
  107. #endif
  108. /*
  109. * For zephyr system
  110. * Set gcdVG_ENABLE_DELAY_RESUME to 1 to open delay resume feature.
  111. */
  112. #ifndef gcdVG_ENABLE_DELAY_RESUME
  113. #define gcdVG_ENABLE_DELAY_RESUME 1
  114. #endif
  115. /*
  116. * Set 1 to record GPU hardware running time.
  117. */
  118. #ifndef gcdVG_RECORD_HARDWARE_RUNNING_TIME
  119. #define gcdVG_RECORD_HARDWARE_RUNNING_TIME 0
  120. #endif
  121. #ifdef __cplusplus
  122. }
  123. #endif
  124. #endif