sge_defs.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /*
  2. * This file is automatically generated --- any changes will be lost.
  3. */
  4. #ifndef _SGE_DEFS_H
  5. #define _SGE_DEFS_H
  6. #define S_EC_CREDITS 0
  7. #define M_EC_CREDITS 0x7FFF
  8. #define V_EC_CREDITS(x) ((x) << S_EC_CREDITS)
  9. #define G_EC_CREDITS(x) (((x) >> S_EC_CREDITS) & M_EC_CREDITS)
  10. #define S_EC_GTS 15
  11. #define V_EC_GTS(x) ((x) << S_EC_GTS)
  12. #define F_EC_GTS V_EC_GTS(1U)
  13. #define S_EC_INDEX 16
  14. #define M_EC_INDEX 0xFFFF
  15. #define V_EC_INDEX(x) ((x) << S_EC_INDEX)
  16. #define G_EC_INDEX(x) (((x) >> S_EC_INDEX) & M_EC_INDEX)
  17. #define S_EC_SIZE 0
  18. #define M_EC_SIZE 0xFFFF
  19. #define V_EC_SIZE(x) ((x) << S_EC_SIZE)
  20. #define G_EC_SIZE(x) (((x) >> S_EC_SIZE) & M_EC_SIZE)
  21. #define S_EC_BASE_LO 16
  22. #define M_EC_BASE_LO 0xFFFF
  23. #define V_EC_BASE_LO(x) ((x) << S_EC_BASE_LO)
  24. #define G_EC_BASE_LO(x) (((x) >> S_EC_BASE_LO) & M_EC_BASE_LO)
  25. #define S_EC_BASE_HI 0
  26. #define M_EC_BASE_HI 0xF
  27. #define V_EC_BASE_HI(x) ((x) << S_EC_BASE_HI)
  28. #define G_EC_BASE_HI(x) (((x) >> S_EC_BASE_HI) & M_EC_BASE_HI)
  29. #define S_EC_RESPQ 4
  30. #define M_EC_RESPQ 0x7
  31. #define V_EC_RESPQ(x) ((x) << S_EC_RESPQ)
  32. #define G_EC_RESPQ(x) (((x) >> S_EC_RESPQ) & M_EC_RESPQ)
  33. #define S_EC_TYPE 7
  34. #define M_EC_TYPE 0x7
  35. #define V_EC_TYPE(x) ((x) << S_EC_TYPE)
  36. #define G_EC_TYPE(x) (((x) >> S_EC_TYPE) & M_EC_TYPE)
  37. #define S_EC_GEN 10
  38. #define V_EC_GEN(x) ((x) << S_EC_GEN)
  39. #define F_EC_GEN V_EC_GEN(1U)
  40. #define S_EC_UP_TOKEN 11
  41. #define M_EC_UP_TOKEN 0xFFFFF
  42. #define V_EC_UP_TOKEN(x) ((x) << S_EC_UP_TOKEN)
  43. #define G_EC_UP_TOKEN(x) (((x) >> S_EC_UP_TOKEN) & M_EC_UP_TOKEN)
  44. #define S_EC_VALID 31
  45. #define V_EC_VALID(x) ((x) << S_EC_VALID)
  46. #define F_EC_VALID V_EC_VALID(1U)
  47. #define S_RQ_MSI_VEC 20
  48. #define M_RQ_MSI_VEC 0x3F
  49. #define V_RQ_MSI_VEC(x) ((x) << S_RQ_MSI_VEC)
  50. #define G_RQ_MSI_VEC(x) (((x) >> S_RQ_MSI_VEC) & M_RQ_MSI_VEC)
  51. #define S_RQ_INTR_EN 26
  52. #define V_RQ_INTR_EN(x) ((x) << S_RQ_INTR_EN)
  53. #define F_RQ_INTR_EN V_RQ_INTR_EN(1U)
  54. #define S_RQ_GEN 28
  55. #define V_RQ_GEN(x) ((x) << S_RQ_GEN)
  56. #define F_RQ_GEN V_RQ_GEN(1U)
  57. #define S_CQ_INDEX 0
  58. #define M_CQ_INDEX 0xFFFF
  59. #define V_CQ_INDEX(x) ((x) << S_CQ_INDEX)
  60. #define G_CQ_INDEX(x) (((x) >> S_CQ_INDEX) & M_CQ_INDEX)
  61. #define S_CQ_SIZE 16
  62. #define M_CQ_SIZE 0xFFFF
  63. #define V_CQ_SIZE(x) ((x) << S_CQ_SIZE)
  64. #define G_CQ_SIZE(x) (((x) >> S_CQ_SIZE) & M_CQ_SIZE)
  65. #define S_CQ_BASE_HI 0
  66. #define M_CQ_BASE_HI 0xFFFFF
  67. #define V_CQ_BASE_HI(x) ((x) << S_CQ_BASE_HI)
  68. #define G_CQ_BASE_HI(x) (((x) >> S_CQ_BASE_HI) & M_CQ_BASE_HI)
  69. #define S_CQ_RSPQ 20
  70. #define M_CQ_RSPQ 0x3F
  71. #define V_CQ_RSPQ(x) ((x) << S_CQ_RSPQ)
  72. #define G_CQ_RSPQ(x) (((x) >> S_CQ_RSPQ) & M_CQ_RSPQ)
  73. #define S_CQ_ASYNC_NOTIF 26
  74. #define V_CQ_ASYNC_NOTIF(x) ((x) << S_CQ_ASYNC_NOTIF)
  75. #define F_CQ_ASYNC_NOTIF V_CQ_ASYNC_NOTIF(1U)
  76. #define S_CQ_ARMED 27
  77. #define V_CQ_ARMED(x) ((x) << S_CQ_ARMED)
  78. #define F_CQ_ARMED V_CQ_ARMED(1U)
  79. #define S_CQ_ASYNC_NOTIF_SOL 28
  80. #define V_CQ_ASYNC_NOTIF_SOL(x) ((x) << S_CQ_ASYNC_NOTIF_SOL)
  81. #define F_CQ_ASYNC_NOTIF_SOL V_CQ_ASYNC_NOTIF_SOL(1U)
  82. #define S_CQ_GEN 29
  83. #define V_CQ_GEN(x) ((x) << S_CQ_GEN)
  84. #define F_CQ_GEN V_CQ_GEN(1U)
  85. #define S_CQ_ERR 30
  86. #define V_CQ_ERR(x) ((x) << S_CQ_ERR)
  87. #define F_CQ_ERR V_CQ_ERR(1U)
  88. #define S_CQ_OVERFLOW_MODE 31
  89. #define V_CQ_OVERFLOW_MODE(x) ((x) << S_CQ_OVERFLOW_MODE)
  90. #define F_CQ_OVERFLOW_MODE V_CQ_OVERFLOW_MODE(1U)
  91. #define S_CQ_CREDITS 0
  92. #define M_CQ_CREDITS 0xFFFF
  93. #define V_CQ_CREDITS(x) ((x) << S_CQ_CREDITS)
  94. #define G_CQ_CREDITS(x) (((x) >> S_CQ_CREDITS) & M_CQ_CREDITS)
  95. #define S_CQ_CREDIT_THRES 16
  96. #define M_CQ_CREDIT_THRES 0x1FFF
  97. #define V_CQ_CREDIT_THRES(x) ((x) << S_CQ_CREDIT_THRES)
  98. #define G_CQ_CREDIT_THRES(x) (((x) >> S_CQ_CREDIT_THRES) & M_CQ_CREDIT_THRES)
  99. #define S_FL_BASE_HI 0
  100. #define M_FL_BASE_HI 0xFFFFF
  101. #define V_FL_BASE_HI(x) ((x) << S_FL_BASE_HI)
  102. #define G_FL_BASE_HI(x) (((x) >> S_FL_BASE_HI) & M_FL_BASE_HI)
  103. #define S_FL_INDEX_LO 20
  104. #define M_FL_INDEX_LO 0xFFF
  105. #define V_FL_INDEX_LO(x) ((x) << S_FL_INDEX_LO)
  106. #define G_FL_INDEX_LO(x) (((x) >> S_FL_INDEX_LO) & M_FL_INDEX_LO)
  107. #define S_FL_INDEX_HI 0
  108. #define M_FL_INDEX_HI 0xF
  109. #define V_FL_INDEX_HI(x) ((x) << S_FL_INDEX_HI)
  110. #define G_FL_INDEX_HI(x) (((x) >> S_FL_INDEX_HI) & M_FL_INDEX_HI)
  111. #define S_FL_SIZE 4
  112. #define M_FL_SIZE 0xFFFF
  113. #define V_FL_SIZE(x) ((x) << S_FL_SIZE)
  114. #define G_FL_SIZE(x) (((x) >> S_FL_SIZE) & M_FL_SIZE)
  115. #define S_FL_GEN 20
  116. #define V_FL_GEN(x) ((x) << S_FL_GEN)
  117. #define F_FL_GEN V_FL_GEN(1U)
  118. #define S_FL_ENTRY_SIZE_LO 21
  119. #define M_FL_ENTRY_SIZE_LO 0x7FF
  120. #define V_FL_ENTRY_SIZE_LO(x) ((x) << S_FL_ENTRY_SIZE_LO)
  121. #define G_FL_ENTRY_SIZE_LO(x) (((x) >> S_FL_ENTRY_SIZE_LO) & M_FL_ENTRY_SIZE_LO)
  122. #define S_FL_ENTRY_SIZE_HI 0
  123. #define M_FL_ENTRY_SIZE_HI 0x1FFFFF
  124. #define V_FL_ENTRY_SIZE_HI(x) ((x) << S_FL_ENTRY_SIZE_HI)
  125. #define G_FL_ENTRY_SIZE_HI(x) (((x) >> S_FL_ENTRY_SIZE_HI) & M_FL_ENTRY_SIZE_HI)
  126. #define S_FL_CONG_THRES 21
  127. #define M_FL_CONG_THRES 0x3FF
  128. #define V_FL_CONG_THRES(x) ((x) << S_FL_CONG_THRES)
  129. #define G_FL_CONG_THRES(x) (((x) >> S_FL_CONG_THRES) & M_FL_CONG_THRES)
  130. #define S_FL_GTS 31
  131. #define V_FL_GTS(x) ((x) << S_FL_GTS)
  132. #define F_FL_GTS V_FL_GTS(1U)
  133. #define S_FLD_GEN1 31
  134. #define V_FLD_GEN1(x) ((x) << S_FLD_GEN1)
  135. #define F_FLD_GEN1 V_FLD_GEN1(1U)
  136. #define S_FLD_GEN2 0
  137. #define V_FLD_GEN2(x) ((x) << S_FLD_GEN2)
  138. #define F_FLD_GEN2 V_FLD_GEN2(1U)
  139. #define S_RSPD_TXQ1_CR 0
  140. #define M_RSPD_TXQ1_CR 0x7F
  141. #define V_RSPD_TXQ1_CR(x) ((x) << S_RSPD_TXQ1_CR)
  142. #define G_RSPD_TXQ1_CR(x) (((x) >> S_RSPD_TXQ1_CR) & M_RSPD_TXQ1_CR)
  143. #define S_RSPD_TXQ1_GTS 7
  144. #define V_RSPD_TXQ1_GTS(x) ((x) << S_RSPD_TXQ1_GTS)
  145. #define F_RSPD_TXQ1_GTS V_RSPD_TXQ1_GTS(1U)
  146. #define S_RSPD_TXQ2_CR 8
  147. #define M_RSPD_TXQ2_CR 0x7F
  148. #define V_RSPD_TXQ2_CR(x) ((x) << S_RSPD_TXQ2_CR)
  149. #define G_RSPD_TXQ2_CR(x) (((x) >> S_RSPD_TXQ2_CR) & M_RSPD_TXQ2_CR)
  150. #define S_RSPD_TXQ2_GTS 15
  151. #define V_RSPD_TXQ2_GTS(x) ((x) << S_RSPD_TXQ2_GTS)
  152. #define F_RSPD_TXQ2_GTS V_RSPD_TXQ2_GTS(1U)
  153. #define S_RSPD_TXQ0_CR 16
  154. #define M_RSPD_TXQ0_CR 0x7F
  155. #define V_RSPD_TXQ0_CR(x) ((x) << S_RSPD_TXQ0_CR)
  156. #define G_RSPD_TXQ0_CR(x) (((x) >> S_RSPD_TXQ0_CR) & M_RSPD_TXQ0_CR)
  157. #define S_RSPD_TXQ0_GTS 23
  158. #define V_RSPD_TXQ0_GTS(x) ((x) << S_RSPD_TXQ0_GTS)
  159. #define F_RSPD_TXQ0_GTS V_RSPD_TXQ0_GTS(1U)
  160. #define S_RSPD_EOP 24
  161. #define V_RSPD_EOP(x) ((x) << S_RSPD_EOP)
  162. #define F_RSPD_EOP V_RSPD_EOP(1U)
  163. #define S_RSPD_SOP 25
  164. #define V_RSPD_SOP(x) ((x) << S_RSPD_SOP)
  165. #define F_RSPD_SOP V_RSPD_SOP(1U)
  166. #define S_RSPD_ASYNC_NOTIF 26
  167. #define V_RSPD_ASYNC_NOTIF(x) ((x) << S_RSPD_ASYNC_NOTIF)
  168. #define F_RSPD_ASYNC_NOTIF V_RSPD_ASYNC_NOTIF(1U)
  169. #define S_RSPD_FL0_GTS 27
  170. #define V_RSPD_FL0_GTS(x) ((x) << S_RSPD_FL0_GTS)
  171. #define F_RSPD_FL0_GTS V_RSPD_FL0_GTS(1U)
  172. #define S_RSPD_FL1_GTS 28
  173. #define V_RSPD_FL1_GTS(x) ((x) << S_RSPD_FL1_GTS)
  174. #define F_RSPD_FL1_GTS V_RSPD_FL1_GTS(1U)
  175. #define S_RSPD_IMM_DATA_VALID 29
  176. #define V_RSPD_IMM_DATA_VALID(x) ((x) << S_RSPD_IMM_DATA_VALID)
  177. #define F_RSPD_IMM_DATA_VALID V_RSPD_IMM_DATA_VALID(1U)
  178. #define S_RSPD_OFFLOAD 30
  179. #define V_RSPD_OFFLOAD(x) ((x) << S_RSPD_OFFLOAD)
  180. #define F_RSPD_OFFLOAD V_RSPD_OFFLOAD(1U)
  181. #define S_RSPD_GEN1 31
  182. #define V_RSPD_GEN1(x) ((x) << S_RSPD_GEN1)
  183. #define F_RSPD_GEN1 V_RSPD_GEN1(1U)
  184. #define S_RSPD_LEN 0
  185. #define M_RSPD_LEN 0x7FFFFFFF
  186. #define V_RSPD_LEN(x) ((x) << S_RSPD_LEN)
  187. #define G_RSPD_LEN(x) (((x) >> S_RSPD_LEN) & M_RSPD_LEN)
  188. #define S_RSPD_FLQ 31
  189. #define V_RSPD_FLQ(x) ((x) << S_RSPD_FLQ)
  190. #define F_RSPD_FLQ V_RSPD_FLQ(1U)
  191. #define S_RSPD_GEN2 0
  192. #define V_RSPD_GEN2(x) ((x) << S_RSPD_GEN2)
  193. #define F_RSPD_GEN2 V_RSPD_GEN2(1U)
  194. #define S_RSPD_INR_VEC 1
  195. #define M_RSPD_INR_VEC 0x7F
  196. #define V_RSPD_INR_VEC(x) ((x) << S_RSPD_INR_VEC)
  197. #define G_RSPD_INR_VEC(x) (((x) >> S_RSPD_INR_VEC) & M_RSPD_INR_VEC)
  198. #endif /* _SGE_DEFS_H */