cvmx-rnm-defs.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: [email protected]
  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. };
  48. union cvmx_rnm_ctl_status {
  49. uint64_t u64;
  50. struct cvmx_rnm_ctl_status_s {
  51. #ifdef __BIG_ENDIAN_BITFIELD
  52. uint64_t reserved_12_63:52;
  53. uint64_t dis_mak:1;
  54. uint64_t eer_lck:1;
  55. uint64_t eer_val:1;
  56. uint64_t ent_sel:4;
  57. uint64_t exp_ent:1;
  58. uint64_t rng_rst:1;
  59. uint64_t rnm_rst:1;
  60. uint64_t rng_en:1;
  61. uint64_t ent_en:1;
  62. #else
  63. uint64_t ent_en:1;
  64. uint64_t rng_en:1;
  65. uint64_t rnm_rst:1;
  66. uint64_t rng_rst:1;
  67. uint64_t exp_ent:1;
  68. uint64_t ent_sel:4;
  69. uint64_t eer_val:1;
  70. uint64_t eer_lck:1;
  71. uint64_t dis_mak:1;
  72. uint64_t reserved_12_63:52;
  73. #endif
  74. } s;
  75. struct cvmx_rnm_ctl_status_cn30xx {
  76. #ifdef __BIG_ENDIAN_BITFIELD
  77. uint64_t reserved_4_63:60;
  78. uint64_t rng_rst:1;
  79. uint64_t rnm_rst:1;
  80. uint64_t rng_en:1;
  81. uint64_t ent_en:1;
  82. #else
  83. uint64_t ent_en:1;
  84. uint64_t rng_en:1;
  85. uint64_t rnm_rst:1;
  86. uint64_t rng_rst:1;
  87. uint64_t reserved_4_63:60;
  88. #endif
  89. } cn30xx;
  90. struct cvmx_rnm_ctl_status_cn50xx {
  91. #ifdef __BIG_ENDIAN_BITFIELD
  92. uint64_t reserved_9_63:55;
  93. uint64_t ent_sel:4;
  94. uint64_t exp_ent:1;
  95. uint64_t rng_rst:1;
  96. uint64_t rnm_rst:1;
  97. uint64_t rng_en:1;
  98. uint64_t ent_en:1;
  99. #else
  100. uint64_t ent_en:1;
  101. uint64_t rng_en:1;
  102. uint64_t rnm_rst:1;
  103. uint64_t rng_rst:1;
  104. uint64_t exp_ent:1;
  105. uint64_t ent_sel:4;
  106. uint64_t reserved_9_63:55;
  107. #endif
  108. } cn50xx;
  109. struct cvmx_rnm_ctl_status_cn63xx {
  110. #ifdef __BIG_ENDIAN_BITFIELD
  111. uint64_t reserved_11_63:53;
  112. uint64_t eer_lck:1;
  113. uint64_t eer_val:1;
  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 eer_val:1;
  128. uint64_t eer_lck:1;
  129. uint64_t reserved_11_63:53;
  130. #endif
  131. } cn63xx;
  132. };
  133. union cvmx_rnm_eer_dbg {
  134. uint64_t u64;
  135. struct cvmx_rnm_eer_dbg_s {
  136. #ifdef __BIG_ENDIAN_BITFIELD
  137. uint64_t dat:64;
  138. #else
  139. uint64_t dat:64;
  140. #endif
  141. } s;
  142. };
  143. union cvmx_rnm_eer_key {
  144. uint64_t u64;
  145. struct cvmx_rnm_eer_key_s {
  146. #ifdef __BIG_ENDIAN_BITFIELD
  147. uint64_t key:64;
  148. #else
  149. uint64_t key:64;
  150. #endif
  151. } s;
  152. };
  153. union cvmx_rnm_serial_num {
  154. uint64_t u64;
  155. struct cvmx_rnm_serial_num_s {
  156. #ifdef __BIG_ENDIAN_BITFIELD
  157. uint64_t dat:64;
  158. #else
  159. uint64_t dat:64;
  160. #endif
  161. } s;
  162. };
  163. #endif