dwl_defs.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /****************************************************************************
  2. *
  3. * The MIT License (MIT)
  4. *
  5. * Copyright (c) 2014 - 2021 VERISILICON
  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 - 2021 VERISILICON
  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 SOFTWARE_LINUX_DWL_DWL_DEFS_H_
  55. #define SOFTWARE_LINUX_DWL_DWL_DEFS_H_
  56. #define DWL_MPEG2_E 31 /* 1 bit */
  57. #define DWL_VC1_E 29 /* 2 bits */
  58. #define DWL_JPEG_E 28 /* 1 bit */
  59. #define DWL_HJPEG_E 17 /* 1 bit */
  60. #define DWL_AV1_E 16 /* 1 bit */
  61. #define DWL_MPEG4_E 26 /* 2 bits */
  62. #define DWL_H264_E 24 /* 2 bits */
  63. #define DWL_H264HIGH10_E 20 /* 1 bits */
  64. #define DWL_AVS2_E 18 /* 2 bits */
  65. #define DWL_VP6_E 23 /* 1 bit */
  66. #define DWL_RV_E 26 /* 2 bits */
  67. #define DWL_VP8_E 23 /* 1 bit */
  68. #define DWL_VP7_E 24 /* 1 bit */
  69. #define DWL_WEBP_E 19 /* 1 bit */
  70. #define DWL_AVS_E 22 /* 1 bit */
  71. #define DWL_G1_PP_E 16 /* 1 bit */
  72. #define DWL_G2_PP_E 31 /* 1 bit */
  73. #define DWL_PP_E 31 /* 1 bit */
  74. #define DWL_HEVC_E 26 /* 3 bits */
  75. #define DWL_VP9_E 29 /* 3 bits */
  76. #define DWL_H264_PIPELINE_E 31 /* 1 bit */
  77. #define DWL_JPEG_PIPELINE_E 30 /* 1 bit */
  78. #define DWL_G2_HEVC_E 0 /* 1 bits */
  79. #define DWL_G2_VP9_E 1 /* 1 bits */
  80. #define DWL_G2_RFC_E 2 /* 1 bits */
  81. #define DWL_RFC_E 17 /* 2 bits */
  82. #define DWL_G2_DS_E 3 /* 1 bits */
  83. #define DWL_DS_E 28 /* 3 bits */
  84. #define DWL_HEVC_VER 8 /* 4 bits */
  85. #define DWL_VP9_PROFILE 12 /* 3 bits */
  86. #define DWL_RING_E 16 /* 1 bits */
  87. #define HANTRODEC_IRQ_STAT_DEC 1
  88. #define HANTRODEC_IRQ_STAT_DEC_OFF (HANTRODEC_IRQ_STAT_DEC * 4)
  89. #define BIGOCEAN_IRQ_STAT_DEC 2
  90. #define BIGOCEAN_IRQ_STAT_DEC_OFF (HANTRODEC_IRQ_STAT_DEC * 4)
  91. #define HANTRODECPP_SYNTH_CFG 60
  92. #define HANTRODECPP_SYNTH_CFG_OFF (HANTRODECPP_SYNTH_CFG * 4)
  93. #define HANTRODEC_SYNTH_CFG 50
  94. #define HANTRODEC_SYNTH_CFG_OFF (HANTRODEC_SYNTH_CFG * 4)
  95. #define HANTRODEC_SYNTH_CFG_2 54
  96. #define HANTRODEC_SYNTH_CFG_2_OFF (HANTRODEC_SYNTH_CFG_2 * 4)
  97. #define HANTRODEC_SYNTH_CFG_3 56
  98. #define HANTRODEC_SYNTH_CFG_3_OFF (HANTRODEC_SYNTH_CFG_3 * 4)
  99. #define HANTRODEC_CFG_STAT 23
  100. #define HANTRODEC_CFG_STAT_OFF (HANTRODEC_CFG_STAT * 4)
  101. #define HANTRODECPP_CFG_STAT 260
  102. #define HANTRODECPP_CFG_STAT_OFF (HANTRODECPP_CFG_STAT * 4)
  103. #define HANTRODEC_DEC_E 0x01
  104. #define HANTRODEC_PP_E 0x01
  105. #define HANTRODEC_DEC_ABORT 0x20
  106. #define HANTRODEC_DEC_IRQ_DISABLE 0x10
  107. #define HANTRODEC_DEC_IRQ 0x100
  108. /* Legacy from G1 */
  109. #define HANTRO_IRQ_STAT_DEC 1
  110. #define HANTRO_IRQ_STAT_DEC_OFF (HANTRO_IRQ_STAT_DEC * 4)
  111. #define HANTRO_IRQ_STAT_PP 60
  112. #define HANTRO_IRQ_STAT_PP_OFF (HANTRO_IRQ_STAT_PP * 4)
  113. #define HANTROPP_SYNTH_CFG 100
  114. #define HANTROPP_SYNTH_CFG_OFF (HANTROPP_SYNTH_CFG * 4)
  115. #define HANTRODEC_SYNTH_CFG 50
  116. #define HANTRODEC_SYNTH_CFG_OFF (HANTRODEC_SYNTH_CFG * 4)
  117. #define HANTRODEC_SYNTH_CFG_2 54
  118. #define HANTRODEC_SYNTH_CFG_2_OFF (HANTRODEC_SYNTH_CFG_2 * 4)
  119. /* VC8000D HW build id */
  120. #define HANTRODEC_HW_BUILD_ID 309
  121. #define HANTRODEC_HW_BUILD_ID_OFF (HANTRODEC_HW_BUILD_ID * 4)
  122. #define HANTRO_DEC_E 0x01
  123. #define HANTRO_PP_E 0x01
  124. #define HANTRO_DEC_ABORT 0x20
  125. #define HANTRO_DEC_IRQ_DISABLE 0x10
  126. #define HANTRO_PP_IRQ_DISABLE 0x10
  127. #define HANTRO_DEC_IRQ 0x100
  128. #define HANTRO_PP_IRQ 0x100
  129. #endif /* SOFTWARE_LINUX_DWL_DWL_DEFS_H_ */