marb_bar_defs.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. #ifndef __marb_bar_defs_h
  2. #define __marb_bar_defs_h
  3. /*
  4. * This file is autogenerated from
  5. * file: marb_bar.r
  6. *
  7. * by ../../../tools/rdesc/bin/rdes2c -outfile marb_bar_defs.h marb_bar.r
  8. * Any changes here will be lost.
  9. *
  10. * -*- buffer-read-only: t -*-
  11. */
  12. /* Main access macros */
  13. #ifndef REG_RD
  14. #define REG_RD( scope, inst, reg ) \
  15. REG_READ( reg_##scope##_##reg, \
  16. (inst) + REG_RD_ADDR_##scope##_##reg )
  17. #endif
  18. #ifndef REG_WR
  19. #define REG_WR( scope, inst, reg, val ) \
  20. REG_WRITE( reg_##scope##_##reg, \
  21. (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
  22. #endif
  23. #ifndef REG_RD_VECT
  24. #define REG_RD_VECT( scope, inst, reg, index ) \
  25. REG_READ( reg_##scope##_##reg, \
  26. (inst) + REG_RD_ADDR_##scope##_##reg + \
  27. (index) * STRIDE_##scope##_##reg )
  28. #endif
  29. #ifndef REG_WR_VECT
  30. #define REG_WR_VECT( scope, inst, reg, index, val ) \
  31. REG_WRITE( reg_##scope##_##reg, \
  32. (inst) + REG_WR_ADDR_##scope##_##reg + \
  33. (index) * STRIDE_##scope##_##reg, (val) )
  34. #endif
  35. #ifndef REG_RD_INT
  36. #define REG_RD_INT( scope, inst, reg ) \
  37. REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
  38. #endif
  39. #ifndef REG_WR_INT
  40. #define REG_WR_INT( scope, inst, reg, val ) \
  41. REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
  42. #endif
  43. #ifndef REG_RD_INT_VECT
  44. #define REG_RD_INT_VECT( scope, inst, reg, index ) \
  45. REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
  46. (index) * STRIDE_##scope##_##reg )
  47. #endif
  48. #ifndef REG_WR_INT_VECT
  49. #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \
  50. REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
  51. (index) * STRIDE_##scope##_##reg, (val) )
  52. #endif
  53. #ifndef REG_TYPE_CONV
  54. #define REG_TYPE_CONV( type, orgtype, val ) \
  55. ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
  56. #endif
  57. #ifndef reg_page_size
  58. #define reg_page_size 8192
  59. #endif
  60. #ifndef REG_ADDR
  61. #define REG_ADDR( scope, inst, reg ) \
  62. ( (inst) + REG_RD_ADDR_##scope##_##reg )
  63. #endif
  64. #ifndef REG_ADDR_VECT
  65. #define REG_ADDR_VECT( scope, inst, reg, index ) \
  66. ( (inst) + REG_RD_ADDR_##scope##_##reg + \
  67. (index) * STRIDE_##scope##_##reg )
  68. #endif
  69. /* C-code for register scope marb_bar */
  70. #define STRIDE_marb_bar_rw_ddr2_slots 4
  71. /* Register rw_ddr2_slots, scope marb_bar, type rw */
  72. typedef struct {
  73. unsigned int owner : 4;
  74. unsigned int dummy1 : 28;
  75. } reg_marb_bar_rw_ddr2_slots;
  76. #define REG_RD_ADDR_marb_bar_rw_ddr2_slots 0
  77. #define REG_WR_ADDR_marb_bar_rw_ddr2_slots 0
  78. /* Register rw_h264_rd_burst, scope marb_bar, type rw */
  79. typedef struct {
  80. unsigned int ddr2_bsize : 2;
  81. unsigned int dummy1 : 30;
  82. } reg_marb_bar_rw_h264_rd_burst;
  83. #define REG_RD_ADDR_marb_bar_rw_h264_rd_burst 256
  84. #define REG_WR_ADDR_marb_bar_rw_h264_rd_burst 256
  85. /* Register rw_h264_wr_burst, scope marb_bar, type rw */
  86. typedef struct {
  87. unsigned int ddr2_bsize : 2;
  88. unsigned int dummy1 : 30;
  89. } reg_marb_bar_rw_h264_wr_burst;
  90. #define REG_RD_ADDR_marb_bar_rw_h264_wr_burst 260
  91. #define REG_WR_ADDR_marb_bar_rw_h264_wr_burst 260
  92. /* Register rw_ccd_burst, scope marb_bar, type rw */
  93. typedef struct {
  94. unsigned int ddr2_bsize : 2;
  95. unsigned int dummy1 : 30;
  96. } reg_marb_bar_rw_ccd_burst;
  97. #define REG_RD_ADDR_marb_bar_rw_ccd_burst 264
  98. #define REG_WR_ADDR_marb_bar_rw_ccd_burst 264
  99. /* Register rw_vin_wr_burst, scope marb_bar, type rw */
  100. typedef struct {
  101. unsigned int ddr2_bsize : 2;
  102. unsigned int dummy1 : 30;
  103. } reg_marb_bar_rw_vin_wr_burst;
  104. #define REG_RD_ADDR_marb_bar_rw_vin_wr_burst 268
  105. #define REG_WR_ADDR_marb_bar_rw_vin_wr_burst 268
  106. /* Register rw_vin_rd_burst, scope marb_bar, type rw */
  107. typedef struct {
  108. unsigned int ddr2_bsize : 2;
  109. unsigned int dummy1 : 30;
  110. } reg_marb_bar_rw_vin_rd_burst;
  111. #define REG_RD_ADDR_marb_bar_rw_vin_rd_burst 272
  112. #define REG_WR_ADDR_marb_bar_rw_vin_rd_burst 272
  113. /* Register rw_sclr_rd_burst, scope marb_bar, type rw */
  114. typedef struct {
  115. unsigned int ddr2_bsize : 2;
  116. unsigned int dummy1 : 30;
  117. } reg_marb_bar_rw_sclr_rd_burst;
  118. #define REG_RD_ADDR_marb_bar_rw_sclr_rd_burst 276
  119. #define REG_WR_ADDR_marb_bar_rw_sclr_rd_burst 276
  120. /* Register rw_vout_burst, scope marb_bar, type rw */
  121. typedef struct {
  122. unsigned int ddr2_bsize : 2;
  123. unsigned int dummy1 : 30;
  124. } reg_marb_bar_rw_vout_burst;
  125. #define REG_RD_ADDR_marb_bar_rw_vout_burst 280
  126. #define REG_WR_ADDR_marb_bar_rw_vout_burst 280
  127. /* Register rw_sclr_fifo_burst, scope marb_bar, type rw */
  128. typedef struct {
  129. unsigned int ddr2_bsize : 2;
  130. unsigned int dummy1 : 30;
  131. } reg_marb_bar_rw_sclr_fifo_burst;
  132. #define REG_RD_ADDR_marb_bar_rw_sclr_fifo_burst 284
  133. #define REG_WR_ADDR_marb_bar_rw_sclr_fifo_burst 284
  134. /* Register rw_l2cache_burst, scope marb_bar, type rw */
  135. typedef struct {
  136. unsigned int ddr2_bsize : 2;
  137. unsigned int dummy1 : 30;
  138. } reg_marb_bar_rw_l2cache_burst;
  139. #define REG_RD_ADDR_marb_bar_rw_l2cache_burst 288
  140. #define REG_WR_ADDR_marb_bar_rw_l2cache_burst 288
  141. /* Register rw_intr_mask, scope marb_bar, type rw */
  142. typedef struct {
  143. unsigned int bp0 : 1;
  144. unsigned int bp1 : 1;
  145. unsigned int bp2 : 1;
  146. unsigned int bp3 : 1;
  147. unsigned int dummy1 : 28;
  148. } reg_marb_bar_rw_intr_mask;
  149. #define REG_RD_ADDR_marb_bar_rw_intr_mask 292
  150. #define REG_WR_ADDR_marb_bar_rw_intr_mask 292
  151. /* Register rw_ack_intr, scope marb_bar, type rw */
  152. typedef struct {
  153. unsigned int bp0 : 1;
  154. unsigned int bp1 : 1;
  155. unsigned int bp2 : 1;
  156. unsigned int bp3 : 1;
  157. unsigned int dummy1 : 28;
  158. } reg_marb_bar_rw_ack_intr;
  159. #define REG_RD_ADDR_marb_bar_rw_ack_intr 296
  160. #define REG_WR_ADDR_marb_bar_rw_ack_intr 296
  161. /* Register r_intr, scope marb_bar, type r */
  162. typedef struct {
  163. unsigned int bp0 : 1;
  164. unsigned int bp1 : 1;
  165. unsigned int bp2 : 1;
  166. unsigned int bp3 : 1;
  167. unsigned int dummy1 : 28;
  168. } reg_marb_bar_r_intr;
  169. #define REG_RD_ADDR_marb_bar_r_intr 300
  170. /* Register r_masked_intr, scope marb_bar, type r */
  171. typedef struct {
  172. unsigned int bp0 : 1;
  173. unsigned int bp1 : 1;
  174. unsigned int bp2 : 1;
  175. unsigned int bp3 : 1;
  176. unsigned int dummy1 : 28;
  177. } reg_marb_bar_r_masked_intr;
  178. #define REG_RD_ADDR_marb_bar_r_masked_intr 304
  179. /* Register rw_stop_mask, scope marb_bar, type rw */
  180. typedef struct {
  181. unsigned int h264_rd : 1;
  182. unsigned int h264_wr : 1;
  183. unsigned int ccd : 1;
  184. unsigned int vin_wr : 1;
  185. unsigned int vin_rd : 1;
  186. unsigned int sclr_rd : 1;
  187. unsigned int vout : 1;
  188. unsigned int sclr_fifo : 1;
  189. unsigned int l2cache : 1;
  190. unsigned int dummy1 : 23;
  191. } reg_marb_bar_rw_stop_mask;
  192. #define REG_RD_ADDR_marb_bar_rw_stop_mask 308
  193. #define REG_WR_ADDR_marb_bar_rw_stop_mask 308
  194. /* Register r_stopped, scope marb_bar, type r */
  195. typedef struct {
  196. unsigned int h264_rd : 1;
  197. unsigned int h264_wr : 1;
  198. unsigned int ccd : 1;
  199. unsigned int vin_wr : 1;
  200. unsigned int vin_rd : 1;
  201. unsigned int sclr_rd : 1;
  202. unsigned int vout : 1;
  203. unsigned int sclr_fifo : 1;
  204. unsigned int l2cache : 1;
  205. unsigned int dummy1 : 23;
  206. } reg_marb_bar_r_stopped;
  207. #define REG_RD_ADDR_marb_bar_r_stopped 312
  208. /* Register rw_no_snoop, scope marb_bar, type rw */
  209. typedef struct {
  210. unsigned int h264_rd : 1;
  211. unsigned int h264_wr : 1;
  212. unsigned int ccd : 1;
  213. unsigned int vin_wr : 1;
  214. unsigned int vin_rd : 1;
  215. unsigned int sclr_rd : 1;
  216. unsigned int vout : 1;
  217. unsigned int sclr_fifo : 1;
  218. unsigned int l2cache : 1;
  219. unsigned int dummy1 : 23;
  220. } reg_marb_bar_rw_no_snoop;
  221. #define REG_RD_ADDR_marb_bar_rw_no_snoop 576
  222. #define REG_WR_ADDR_marb_bar_rw_no_snoop 576
  223. /* Constants */
  224. enum {
  225. regk_marb_bar_ccd = 0x00000002,
  226. regk_marb_bar_h264_rd = 0x00000000,
  227. regk_marb_bar_h264_wr = 0x00000001,
  228. regk_marb_bar_l2cache = 0x00000008,
  229. regk_marb_bar_no = 0x00000000,
  230. regk_marb_bar_r_stopped_default = 0x00000000,
  231. regk_marb_bar_rw_ccd_burst_default = 0x00000000,
  232. regk_marb_bar_rw_ddr2_slots_default = 0x00000000,
  233. regk_marb_bar_rw_ddr2_slots_size = 0x00000040,
  234. regk_marb_bar_rw_h264_rd_burst_default = 0x00000000,
  235. regk_marb_bar_rw_h264_wr_burst_default = 0x00000000,
  236. regk_marb_bar_rw_intr_mask_default = 0x00000000,
  237. regk_marb_bar_rw_l2cache_burst_default = 0x00000000,
  238. regk_marb_bar_rw_no_snoop_default = 0x00000000,
  239. regk_marb_bar_rw_sclr_fifo_burst_default = 0x00000000,
  240. regk_marb_bar_rw_sclr_rd_burst_default = 0x00000000,
  241. regk_marb_bar_rw_stop_mask_default = 0x00000000,
  242. regk_marb_bar_rw_vin_rd_burst_default = 0x00000000,
  243. regk_marb_bar_rw_vin_wr_burst_default = 0x00000000,
  244. regk_marb_bar_rw_vout_burst_default = 0x00000000,
  245. regk_marb_bar_sclr_fifo = 0x00000007,
  246. regk_marb_bar_sclr_rd = 0x00000005,
  247. regk_marb_bar_vin_rd = 0x00000004,
  248. regk_marb_bar_vin_wr = 0x00000003,
  249. regk_marb_bar_vout = 0x00000006,
  250. regk_marb_bar_yes = 0x00000001
  251. };
  252. #endif /* __marb_bar_defs_h */
  253. #ifndef __marb_bar_bp_defs_h
  254. #define __marb_bar_bp_defs_h
  255. /*
  256. * This file is autogenerated from
  257. * file: marb_bar.r
  258. *
  259. * by ../../../tools/rdesc/bin/rdes2c -outfile marb_bar_defs.h marb_bar.r
  260. * Any changes here will be lost.
  261. *
  262. * -*- buffer-read-only: t -*-
  263. */
  264. /* Main access macros */
  265. #ifndef REG_RD
  266. #define REG_RD( scope, inst, reg ) \
  267. REG_READ( reg_##scope##_##reg, \
  268. (inst) + REG_RD_ADDR_##scope##_##reg )
  269. #endif
  270. #ifndef REG_WR
  271. #define REG_WR( scope, inst, reg, val ) \
  272. REG_WRITE( reg_##scope##_##reg, \
  273. (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
  274. #endif
  275. #ifndef REG_RD_VECT
  276. #define REG_RD_VECT( scope, inst, reg, index ) \
  277. REG_READ( reg_##scope##_##reg, \
  278. (inst) + REG_RD_ADDR_##scope##_##reg + \
  279. (index) * STRIDE_##scope##_##reg )
  280. #endif
  281. #ifndef REG_WR_VECT
  282. #define REG_WR_VECT( scope, inst, reg, index, val ) \
  283. REG_WRITE( reg_##scope##_##reg, \
  284. (inst) + REG_WR_ADDR_##scope##_##reg + \
  285. (index) * STRIDE_##scope##_##reg, (val) )
  286. #endif
  287. #ifndef REG_RD_INT
  288. #define REG_RD_INT( scope, inst, reg ) \
  289. REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
  290. #endif
  291. #ifndef REG_WR_INT
  292. #define REG_WR_INT( scope, inst, reg, val ) \
  293. REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
  294. #endif
  295. #ifndef REG_RD_INT_VECT
  296. #define REG_RD_INT_VECT( scope, inst, reg, index ) \
  297. REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
  298. (index) * STRIDE_##scope##_##reg )
  299. #endif
  300. #ifndef REG_WR_INT_VECT
  301. #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \
  302. REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
  303. (index) * STRIDE_##scope##_##reg, (val) )
  304. #endif
  305. #ifndef REG_TYPE_CONV
  306. #define REG_TYPE_CONV( type, orgtype, val ) \
  307. ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
  308. #endif
  309. #ifndef reg_page_size
  310. #define reg_page_size 8192
  311. #endif
  312. #ifndef REG_ADDR
  313. #define REG_ADDR( scope, inst, reg ) \
  314. ( (inst) + REG_RD_ADDR_##scope##_##reg )
  315. #endif
  316. #ifndef REG_ADDR_VECT
  317. #define REG_ADDR_VECT( scope, inst, reg, index ) \
  318. ( (inst) + REG_RD_ADDR_##scope##_##reg + \
  319. (index) * STRIDE_##scope##_##reg )
  320. #endif
  321. /* C-code for register scope marb_bar_bp */
  322. /* Register rw_first_addr, scope marb_bar_bp, type rw */
  323. typedef unsigned int reg_marb_bar_bp_rw_first_addr;
  324. #define REG_RD_ADDR_marb_bar_bp_rw_first_addr 0
  325. #define REG_WR_ADDR_marb_bar_bp_rw_first_addr 0
  326. /* Register rw_last_addr, scope marb_bar_bp, type rw */
  327. typedef unsigned int reg_marb_bar_bp_rw_last_addr;
  328. #define REG_RD_ADDR_marb_bar_bp_rw_last_addr 4
  329. #define REG_WR_ADDR_marb_bar_bp_rw_last_addr 4
  330. /* Register rw_op, scope marb_bar_bp, type rw */
  331. typedef struct {
  332. unsigned int rd : 1;
  333. unsigned int wr : 1;
  334. unsigned int rd_excl : 1;
  335. unsigned int pri_wr : 1;
  336. unsigned int us_rd : 1;
  337. unsigned int us_wr : 1;
  338. unsigned int us_rd_excl : 1;
  339. unsigned int us_pri_wr : 1;
  340. unsigned int dummy1 : 24;
  341. } reg_marb_bar_bp_rw_op;
  342. #define REG_RD_ADDR_marb_bar_bp_rw_op 8
  343. #define REG_WR_ADDR_marb_bar_bp_rw_op 8
  344. /* Register rw_clients, scope marb_bar_bp, type rw */
  345. typedef struct {
  346. unsigned int h264_rd : 1;
  347. unsigned int h264_wr : 1;
  348. unsigned int ccd : 1;
  349. unsigned int vin_wr : 1;
  350. unsigned int vin_rd : 1;
  351. unsigned int sclr_rd : 1;
  352. unsigned int vout : 1;
  353. unsigned int sclr_fifo : 1;
  354. unsigned int l2cache : 1;
  355. unsigned int dummy1 : 23;
  356. } reg_marb_bar_bp_rw_clients;
  357. #define REG_RD_ADDR_marb_bar_bp_rw_clients 12
  358. #define REG_WR_ADDR_marb_bar_bp_rw_clients 12
  359. /* Register rw_options, scope marb_bar_bp, type rw */
  360. typedef struct {
  361. unsigned int wrap : 1;
  362. unsigned int dummy1 : 31;
  363. } reg_marb_bar_bp_rw_options;
  364. #define REG_RD_ADDR_marb_bar_bp_rw_options 16
  365. #define REG_WR_ADDR_marb_bar_bp_rw_options 16
  366. /* Register r_brk_addr, scope marb_bar_bp, type r */
  367. typedef unsigned int reg_marb_bar_bp_r_brk_addr;
  368. #define REG_RD_ADDR_marb_bar_bp_r_brk_addr 20
  369. /* Register r_brk_op, scope marb_bar_bp, type r */
  370. typedef struct {
  371. unsigned int rd : 1;
  372. unsigned int wr : 1;
  373. unsigned int rd_excl : 1;
  374. unsigned int pri_wr : 1;
  375. unsigned int us_rd : 1;
  376. unsigned int us_wr : 1;
  377. unsigned int us_rd_excl : 1;
  378. unsigned int us_pri_wr : 1;
  379. unsigned int dummy1 : 24;
  380. } reg_marb_bar_bp_r_brk_op;
  381. #define REG_RD_ADDR_marb_bar_bp_r_brk_op 24
  382. /* Register r_brk_clients, scope marb_bar_bp, type r */
  383. typedef struct {
  384. unsigned int h264_rd : 1;
  385. unsigned int h264_wr : 1;
  386. unsigned int ccd : 1;
  387. unsigned int vin_wr : 1;
  388. unsigned int vin_rd : 1;
  389. unsigned int sclr_rd : 1;
  390. unsigned int vout : 1;
  391. unsigned int sclr_fifo : 1;
  392. unsigned int l2cache : 1;
  393. unsigned int dummy1 : 23;
  394. } reg_marb_bar_bp_r_brk_clients;
  395. #define REG_RD_ADDR_marb_bar_bp_r_brk_clients 28
  396. /* Register r_brk_first_client, scope marb_bar_bp, type r */
  397. typedef struct {
  398. unsigned int h264_rd : 1;
  399. unsigned int h264_wr : 1;
  400. unsigned int ccd : 1;
  401. unsigned int vin_wr : 1;
  402. unsigned int vin_rd : 1;
  403. unsigned int sclr_rd : 1;
  404. unsigned int vout : 1;
  405. unsigned int sclr_fifo : 1;
  406. unsigned int l2cache : 1;
  407. unsigned int dummy1 : 23;
  408. } reg_marb_bar_bp_r_brk_first_client;
  409. #define REG_RD_ADDR_marb_bar_bp_r_brk_first_client 32
  410. /* Register r_brk_size, scope marb_bar_bp, type r */
  411. typedef unsigned int reg_marb_bar_bp_r_brk_size;
  412. #define REG_RD_ADDR_marb_bar_bp_r_brk_size 36
  413. /* Register rw_ack, scope marb_bar_bp, type rw */
  414. typedef unsigned int reg_marb_bar_bp_rw_ack;
  415. #define REG_RD_ADDR_marb_bar_bp_rw_ack 40
  416. #define REG_WR_ADDR_marb_bar_bp_rw_ack 40
  417. /* Constants */
  418. enum {
  419. regk_marb_bar_bp_no = 0x00000000,
  420. regk_marb_bar_bp_rw_op_default = 0x00000000,
  421. regk_marb_bar_bp_rw_options_default = 0x00000000,
  422. regk_marb_bar_bp_yes = 0x00000001
  423. };
  424. #endif /* __marb_bar_bp_defs_h */