radeon_ucode.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * Copyright 2012 Advanced Micro Devices, Inc.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. * OTHER DEALINGS IN THE SOFTWARE.
  21. *
  22. */
  23. #ifndef __RADEON_UCODE_H__
  24. #define __RADEON_UCODE_H__
  25. /* CP */
  26. #define R600_PFP_UCODE_SIZE 576
  27. #define R600_PM4_UCODE_SIZE 1792
  28. #define R700_PFP_UCODE_SIZE 848
  29. #define R700_PM4_UCODE_SIZE 1360
  30. #define EVERGREEN_PFP_UCODE_SIZE 1120
  31. #define EVERGREEN_PM4_UCODE_SIZE 1376
  32. #define CAYMAN_PFP_UCODE_SIZE 2176
  33. #define CAYMAN_PM4_UCODE_SIZE 2176
  34. #define SI_PFP_UCODE_SIZE 2144
  35. #define SI_PM4_UCODE_SIZE 2144
  36. #define SI_CE_UCODE_SIZE 2144
  37. /* RLC */
  38. #define R600_RLC_UCODE_SIZE 768
  39. #define R700_RLC_UCODE_SIZE 1024
  40. #define EVERGREEN_RLC_UCODE_SIZE 768
  41. #define CAYMAN_RLC_UCODE_SIZE 1024
  42. #define ARUBA_RLC_UCODE_SIZE 1536
  43. #define SI_RLC_UCODE_SIZE 2048
  44. /* MC */
  45. #define BTC_MC_UCODE_SIZE 6024
  46. #define CAYMAN_MC_UCODE_SIZE 6037
  47. #define SI_MC_UCODE_SIZE 7769
  48. #define OLAND_MC_UCODE_SIZE 7863
  49. /* SMC */
  50. #define RV770_SMC_UCODE_START 0x0100
  51. #define RV770_SMC_UCODE_SIZE 0x410d
  52. #define RV770_SMC_INT_VECTOR_START 0xffc0
  53. #define RV770_SMC_INT_VECTOR_SIZE 0x0040
  54. #define RV730_SMC_UCODE_START 0x0100
  55. #define RV730_SMC_UCODE_SIZE 0x412c
  56. #define RV730_SMC_INT_VECTOR_START 0xffc0
  57. #define RV730_SMC_INT_VECTOR_SIZE 0x0040
  58. #define RV710_SMC_UCODE_START 0x0100
  59. #define RV710_SMC_UCODE_SIZE 0x3f1f
  60. #define RV710_SMC_INT_VECTOR_START 0xffc0
  61. #define RV710_SMC_INT_VECTOR_SIZE 0x0040
  62. #define RV740_SMC_UCODE_START 0x0100
  63. #define RV740_SMC_UCODE_SIZE 0x41c5
  64. #define RV740_SMC_INT_VECTOR_START 0xffc0
  65. #define RV740_SMC_INT_VECTOR_SIZE 0x0040
  66. #define CEDAR_SMC_UCODE_START 0x0100
  67. #define CEDAR_SMC_UCODE_SIZE 0x5d50
  68. #define CEDAR_SMC_INT_VECTOR_START 0xffc0
  69. #define CEDAR_SMC_INT_VECTOR_SIZE 0x0040
  70. #define REDWOOD_SMC_UCODE_START 0x0100
  71. #define REDWOOD_SMC_UCODE_SIZE 0x5f0a
  72. #define REDWOOD_SMC_INT_VECTOR_START 0xffc0
  73. #define REDWOOD_SMC_INT_VECTOR_SIZE 0x0040
  74. #define JUNIPER_SMC_UCODE_START 0x0100
  75. #define JUNIPER_SMC_UCODE_SIZE 0x5f1f
  76. #define JUNIPER_SMC_INT_VECTOR_START 0xffc0
  77. #define JUNIPER_SMC_INT_VECTOR_SIZE 0x0040
  78. #define CYPRESS_SMC_UCODE_START 0x0100
  79. #define CYPRESS_SMC_UCODE_SIZE 0x61f7
  80. #define CYPRESS_SMC_INT_VECTOR_START 0xffc0
  81. #define CYPRESS_SMC_INT_VECTOR_SIZE 0x0040
  82. #define BARTS_SMC_UCODE_START 0x0100
  83. #define BARTS_SMC_UCODE_SIZE 0x6107
  84. #define BARTS_SMC_INT_VECTOR_START 0xffc0
  85. #define BARTS_SMC_INT_VECTOR_SIZE 0x0040
  86. #define TURKS_SMC_UCODE_START 0x0100
  87. #define TURKS_SMC_UCODE_SIZE 0x605b
  88. #define TURKS_SMC_INT_VECTOR_START 0xffc0
  89. #define TURKS_SMC_INT_VECTOR_SIZE 0x0040
  90. #define CAICOS_SMC_UCODE_START 0x0100
  91. #define CAICOS_SMC_UCODE_SIZE 0x5fbd
  92. #define CAICOS_SMC_INT_VECTOR_START 0xffc0
  93. #define CAICOS_SMC_INT_VECTOR_SIZE 0x0040
  94. #define CAYMAN_SMC_UCODE_START 0x0100
  95. #define CAYMAN_SMC_UCODE_SIZE 0x79ec
  96. #define CAYMAN_SMC_INT_VECTOR_START 0xffc0
  97. #define CAYMAN_SMC_INT_VECTOR_SIZE 0x0040
  98. #define TAHITI_SMC_UCODE_START 0x10000
  99. #define TAHITI_SMC_UCODE_SIZE 0xf458
  100. #define PITCAIRN_SMC_UCODE_START 0x10000
  101. #define PITCAIRN_SMC_UCODE_SIZE 0xe9f4
  102. #define VERDE_SMC_UCODE_START 0x10000
  103. #define VERDE_SMC_UCODE_SIZE 0xebe4
  104. #define OLAND_SMC_UCODE_START 0x10000
  105. #define OLAND_SMC_UCODE_SIZE 0xe7b4
  106. #define HAINAN_SMC_UCODE_START 0x10000
  107. #define HAINAN_SMC_UCODE_SIZE 0xe67C
  108. #endif