cvmx-rnm-defs.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2012 Cavium Networks
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_RNM_DEFS_H__
  28. #define __CVMX_RNM_DEFS_H__
  29. #define CVMX_RNM_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001180040000008ull))
  30. #define CVMX_RNM_CTL_STATUS (CVMX_ADD_IO_SEG(0x0001180040000000ull))
  31. #define CVMX_RNM_EER_DBG (CVMX_ADD_IO_SEG(0x0001180040000018ull))
  32. #define CVMX_RNM_EER_KEY (CVMX_ADD_IO_SEG(0x0001180040000010ull))
  33. #define CVMX_RNM_SERIAL_NUM (CVMX_ADD_IO_SEG(0x0001180040000020ull))
  34. union cvmx_rnm_bist_status {
  35. uint64_t u64;
  36. struct cvmx_rnm_bist_status_s {
  37. #ifdef __BIG_ENDIAN_BITFIELD
  38. uint64_t reserved_2_63:62;
  39. uint64_t rrc:1;
  40. uint64_t mem:1;
  41. #else
  42. uint64_t mem:1;
  43. uint64_t rrc:1;
  44. uint64_t reserved_2_63:62;
  45. #endif
  46. } s;
  47. struct cvmx_rnm_bist_status_s cn30xx;
  48. struct cvmx_rnm_bist_status_s cn31xx;
  49. struct cvmx_rnm_bist_status_s cn38xx;
  50. struct cvmx_rnm_bist_status_s cn38xxp2;
  51. struct cvmx_rnm_bist_status_s cn50xx;
  52. struct cvmx_rnm_bist_status_s cn52xx;
  53. struct cvmx_rnm_bist_status_s cn52xxp1;
  54. struct cvmx_rnm_bist_status_s cn56xx;
  55. struct cvmx_rnm_bist_status_s cn56xxp1;
  56. struct cvmx_rnm_bist_status_s cn58xx;
  57. struct cvmx_rnm_bist_status_s cn58xxp1;
  58. struct cvmx_rnm_bist_status_s cn61xx;
  59. struct cvmx_rnm_bist_status_s cn63xx;
  60. struct cvmx_rnm_bist_status_s cn63xxp1;
  61. struct cvmx_rnm_bist_status_s cn66xx;
  62. struct cvmx_rnm_bist_status_s cn68xx;
  63. struct cvmx_rnm_bist_status_s cn68xxp1;
  64. struct cvmx_rnm_bist_status_s cnf71xx;
  65. };
  66. union cvmx_rnm_ctl_status {
  67. uint64_t u64;
  68. struct cvmx_rnm_ctl_status_s {
  69. #ifdef __BIG_ENDIAN_BITFIELD
  70. uint64_t reserved_12_63:52;
  71. uint64_t dis_mak:1;
  72. uint64_t eer_lck:1;
  73. uint64_t eer_val:1;
  74. uint64_t ent_sel:4;
  75. uint64_t exp_ent:1;
  76. uint64_t rng_rst:1;
  77. uint64_t rnm_rst:1;
  78. uint64_t rng_en:1;
  79. uint64_t ent_en:1;
  80. #else
  81. uint64_t ent_en:1;
  82. uint64_t rng_en:1;
  83. uint64_t rnm_rst:1;
  84. uint64_t rng_rst:1;
  85. uint64_t exp_ent:1;
  86. uint64_t ent_sel:4;
  87. uint64_t eer_val:1;
  88. uint64_t eer_lck:1;
  89. uint64_t dis_mak:1;
  90. uint64_t reserved_12_63:52;
  91. #endif
  92. } s;
  93. struct cvmx_rnm_ctl_status_cn30xx {
  94. #ifdef __BIG_ENDIAN_BITFIELD
  95. uint64_t reserved_4_63:60;
  96. uint64_t rng_rst:1;
  97. uint64_t rnm_rst:1;
  98. uint64_t rng_en:1;
  99. uint64_t ent_en:1;
  100. #else
  101. uint64_t ent_en:1;
  102. uint64_t rng_en:1;
  103. uint64_t rnm_rst:1;
  104. uint64_t rng_rst:1;
  105. uint64_t reserved_4_63:60;
  106. #endif
  107. } cn30xx;
  108. struct cvmx_rnm_ctl_status_cn30xx cn31xx;
  109. struct cvmx_rnm_ctl_status_cn30xx cn38xx;
  110. struct cvmx_rnm_ctl_status_cn30xx cn38xxp2;
  111. struct cvmx_rnm_ctl_status_cn50xx {
  112. #ifdef __BIG_ENDIAN_BITFIELD
  113. uint64_t reserved_9_63:55;
  114. uint64_t ent_sel:4;
  115. uint64_t exp_ent:1;
  116. uint64_t rng_rst:1;
  117. uint64_t rnm_rst:1;
  118. uint64_t rng_en:1;
  119. uint64_t ent_en:1;
  120. #else
  121. uint64_t ent_en:1;
  122. uint64_t rng_en:1;
  123. uint64_t rnm_rst:1;
  124. uint64_t rng_rst:1;
  125. uint64_t exp_ent:1;
  126. uint64_t ent_sel:4;
  127. uint64_t reserved_9_63:55;
  128. #endif
  129. } cn50xx;
  130. struct cvmx_rnm_ctl_status_cn50xx cn52xx;
  131. struct cvmx_rnm_ctl_status_cn50xx cn52xxp1;
  132. struct cvmx_rnm_ctl_status_cn50xx cn56xx;
  133. struct cvmx_rnm_ctl_status_cn50xx cn56xxp1;
  134. struct cvmx_rnm_ctl_status_cn50xx cn58xx;
  135. struct cvmx_rnm_ctl_status_cn50xx cn58xxp1;
  136. struct cvmx_rnm_ctl_status_s cn61xx;
  137. struct cvmx_rnm_ctl_status_cn63xx {
  138. #ifdef __BIG_ENDIAN_BITFIELD
  139. uint64_t reserved_11_63:53;
  140. uint64_t eer_lck:1;
  141. uint64_t eer_val:1;
  142. uint64_t ent_sel:4;
  143. uint64_t exp_ent:1;
  144. uint64_t rng_rst:1;
  145. uint64_t rnm_rst:1;
  146. uint64_t rng_en:1;
  147. uint64_t ent_en:1;
  148. #else
  149. uint64_t ent_en:1;
  150. uint64_t rng_en:1;
  151. uint64_t rnm_rst:1;
  152. uint64_t rng_rst:1;
  153. uint64_t exp_ent:1;
  154. uint64_t ent_sel:4;
  155. uint64_t eer_val:1;
  156. uint64_t eer_lck:1;
  157. uint64_t reserved_11_63:53;
  158. #endif
  159. } cn63xx;
  160. struct cvmx_rnm_ctl_status_cn63xx cn63xxp1;
  161. struct cvmx_rnm_ctl_status_s cn66xx;
  162. struct cvmx_rnm_ctl_status_cn63xx cn68xx;
  163. struct cvmx_rnm_ctl_status_cn63xx cn68xxp1;
  164. struct cvmx_rnm_ctl_status_s cnf71xx;
  165. };
  166. union cvmx_rnm_eer_dbg {
  167. uint64_t u64;
  168. struct cvmx_rnm_eer_dbg_s {
  169. #ifdef __BIG_ENDIAN_BITFIELD
  170. uint64_t dat:64;
  171. #else
  172. uint64_t dat:64;
  173. #endif
  174. } s;
  175. struct cvmx_rnm_eer_dbg_s cn61xx;
  176. struct cvmx_rnm_eer_dbg_s cn63xx;
  177. struct cvmx_rnm_eer_dbg_s cn63xxp1;
  178. struct cvmx_rnm_eer_dbg_s cn66xx;
  179. struct cvmx_rnm_eer_dbg_s cn68xx;
  180. struct cvmx_rnm_eer_dbg_s cn68xxp1;
  181. struct cvmx_rnm_eer_dbg_s cnf71xx;
  182. };
  183. union cvmx_rnm_eer_key {
  184. uint64_t u64;
  185. struct cvmx_rnm_eer_key_s {
  186. #ifdef __BIG_ENDIAN_BITFIELD
  187. uint64_t key:64;
  188. #else
  189. uint64_t key:64;
  190. #endif
  191. } s;
  192. struct cvmx_rnm_eer_key_s cn61xx;
  193. struct cvmx_rnm_eer_key_s cn63xx;
  194. struct cvmx_rnm_eer_key_s cn63xxp1;
  195. struct cvmx_rnm_eer_key_s cn66xx;
  196. struct cvmx_rnm_eer_key_s cn68xx;
  197. struct cvmx_rnm_eer_key_s cn68xxp1;
  198. struct cvmx_rnm_eer_key_s cnf71xx;
  199. };
  200. union cvmx_rnm_serial_num {
  201. uint64_t u64;
  202. struct cvmx_rnm_serial_num_s {
  203. #ifdef __BIG_ENDIAN_BITFIELD
  204. uint64_t dat:64;
  205. #else
  206. uint64_t dat:64;
  207. #endif
  208. } s;
  209. struct cvmx_rnm_serial_num_s cn61xx;
  210. struct cvmx_rnm_serial_num_s cn63xx;
  211. struct cvmx_rnm_serial_num_s cn66xx;
  212. struct cvmx_rnm_serial_num_s cn68xx;
  213. struct cvmx_rnm_serial_num_s cn68xxp1;
  214. struct cvmx_rnm_serial_num_s cnf71xx;
  215. };
  216. #endif