flexcop_ibi_value_be.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
  3. * register descriptions
  4. * see flexcop.c for copyright information
  5. */
  6. /* This file is automatically generated, do not edit things here. */
  7. #ifndef __FLEXCOP_IBI_VALUE_INCLUDED__
  8. #define __FLEXCOP_IBI_VALUE_INCLUDED__
  9. typedef union {
  10. u32 raw;
  11. struct {
  12. u32 dma_address0 :30;
  13. u32 dma_0No_update : 1;
  14. u32 dma_0start : 1;
  15. } dma_0x0;
  16. struct {
  17. u32 dma_addr_size :24;
  18. u32 DMA_maxpackets : 8;
  19. } dma_0x4_remap;
  20. struct {
  21. u32 dma_addr_size :24;
  22. u32 unused : 1;
  23. u32 dma1timer : 7;
  24. } dma_0x4_read;
  25. struct {
  26. u32 dma_addr_size :24;
  27. u32 dmatimer : 7;
  28. u32 unused : 1;
  29. } dma_0x4_write;
  30. struct {
  31. u32 dma_cur_addr :30;
  32. u32 unused : 2;
  33. } dma_0x8;
  34. struct {
  35. u32 dma_address1 :30;
  36. u32 remap_enable : 1;
  37. u32 dma_1start : 1;
  38. } dma_0xc;
  39. struct {
  40. u32 st_done : 1;
  41. u32 no_base_addr_ack_error : 1;
  42. u32 twoWS_port_reg : 2;
  43. u32 total_bytes : 2;
  44. u32 twoWS_rw : 1;
  45. u32 working_start : 1;
  46. u32 data1_reg : 8;
  47. u32 baseaddr : 8;
  48. u32 reserved1 : 1;
  49. u32 chipaddr : 7;
  50. } tw_sm_c_100;
  51. struct {
  52. u32 unused : 6;
  53. u32 force_stop : 1;
  54. u32 exlicit_stops : 1;
  55. u32 data4_reg : 8;
  56. u32 data3_reg : 8;
  57. u32 data2_reg : 8;
  58. } tw_sm_c_104;
  59. struct {
  60. u32 reserved2 :19;
  61. u32 tlo1 : 5;
  62. u32 reserved1 : 2;
  63. u32 thi1 : 6;
  64. } tw_sm_c_108;
  65. struct {
  66. u32 reserved2 :19;
  67. u32 tlo1 : 5;
  68. u32 reserved1 : 2;
  69. u32 thi1 : 6;
  70. } tw_sm_c_10c;
  71. struct {
  72. u32 reserved2 :19;
  73. u32 tlo1 : 5;
  74. u32 reserved1 : 2;
  75. u32 thi1 : 6;
  76. } tw_sm_c_110;
  77. struct {
  78. u32 LNB_CTLPrescaler_sig : 2;
  79. u32 LNB_CTLLowCount_sig :15;
  80. u32 LNB_CTLHighCount_sig :15;
  81. } lnb_switch_freq_200;
  82. struct {
  83. u32 Rev_N_sig_reserved2 : 1;
  84. u32 Rev_N_sig_caps : 1;
  85. u32 Rev_N_sig_reserved1 : 2;
  86. u32 Rev_N_sig_revision_hi : 4;
  87. u32 reserved :20;
  88. u32 Per_reset_sig : 1;
  89. u32 LNB_L_H_sig : 1;
  90. u32 ACPI3_sig : 1;
  91. u32 ACPI1_sig : 1;
  92. } misc_204;
  93. struct {
  94. u32 unused : 9;
  95. u32 Mailbox_from_V8_Enable_sig : 1;
  96. u32 DMA2_Size_IRQ_Enable_sig : 1;
  97. u32 DMA1_Size_IRQ_Enable_sig : 1;
  98. u32 DMA2_Timer_Enable_sig : 1;
  99. u32 DMA2_IRQ_Enable_sig : 1;
  100. u32 DMA1_Timer_Enable_sig : 1;
  101. u32 DMA1_IRQ_Enable_sig : 1;
  102. u32 Rcv_Data_sig : 1;
  103. u32 MAC_filter_Mode_sig : 1;
  104. u32 Multi2_Enable_sig : 1;
  105. u32 Per_CA_Enable_sig : 1;
  106. u32 SMC_Enable_sig : 1;
  107. u32 CA_Enable_sig : 1;
  108. u32 WAN_CA_Enable_sig : 1;
  109. u32 WAN_Enable_sig : 1;
  110. u32 Mask_filter_sig : 1;
  111. u32 Null_filter_sig : 1;
  112. u32 ECM_filter_sig : 1;
  113. u32 EMM_filter_sig : 1;
  114. u32 PMT_filter_sig : 1;
  115. u32 PCR_filter_sig : 1;
  116. u32 Stream2_filter_sig : 1;
  117. u32 Stream1_filter_sig : 1;
  118. } ctrl_208;
  119. struct {
  120. u32 reserved :21;
  121. u32 Transport_Error : 1;
  122. u32 LLC_SNAP_FLAG_set : 1;
  123. u32 Continuity_error_flag : 1;
  124. u32 Data_receiver_error : 1;
  125. u32 Mailbox_from_V8_Status_sig : 1;
  126. u32 DMA2_Size_IRQ_Status : 1;
  127. u32 DMA1_Size_IRQ_Status : 1;
  128. u32 DMA2_Timer_Status : 1;
  129. u32 DMA2_IRQ_Status : 1;
  130. u32 DMA1_Timer_Status : 1;
  131. u32 DMA1_IRQ_Status : 1;
  132. } irq_20c;
  133. struct {
  134. u32 Special_controls :16;
  135. u32 Block_reset_enable : 8;
  136. u32 reset_block_700 : 1;
  137. u32 reset_block_600 : 1;
  138. u32 reset_block_500 : 1;
  139. u32 reset_block_400 : 1;
  140. u32 reset_block_300 : 1;
  141. u32 reset_block_200 : 1;
  142. u32 reset_block_100 : 1;
  143. u32 reset_block_000 : 1;
  144. } sw_reset_210;
  145. struct {
  146. u32 unused2 :20;
  147. u32 polarity_PS_ERR_sig : 1;
  148. u32 polarity_PS_SYNC_sig : 1;
  149. u32 polarity_PS_VALID_sig : 1;
  150. u32 polarity_PS_CLK_sig : 1;
  151. u32 unused1 : 3;
  152. u32 s2p_sel_sig : 1;
  153. u32 section_pkg_enable_sig : 1;
  154. u32 halt_V8_sig : 1;
  155. u32 v2WS_oe_sig : 1;
  156. u32 vuart_oe_sig : 1;
  157. } misc_214;
  158. struct {
  159. u32 Mailbox_from_V8 :32;
  160. } mbox_v8_to_host_218;
  161. struct {
  162. u32 sysramaccess_busmuster : 1;
  163. u32 sysramaccess_write : 1;
  164. u32 unused : 7;
  165. u32 sysramaccess_addr :15;
  166. u32 sysramaccess_data : 8;
  167. } mbox_host_to_v8_21c;
  168. struct {
  169. u32 debug_fifo_problem : 1;
  170. u32 debug_flag_write_status00 : 1;
  171. u32 Stream2_trans : 1;
  172. u32 Stream2_PID :13;
  173. u32 debug_flag_pid_saved : 1;
  174. u32 MAC_Multicast_filter : 1;
  175. u32 Stream1_trans : 1;
  176. u32 Stream1_PID :13;
  177. } pid_filter_300;
  178. struct {
  179. u32 reserved : 2;
  180. u32 PMT_trans : 1;
  181. u32 PMT_PID :13;
  182. u32 debug_overrun2 : 1;
  183. u32 debug_overrun3 : 1;
  184. u32 PCR_trans : 1;
  185. u32 PCR_PID :13;
  186. } pid_filter_304;
  187. struct {
  188. u32 reserved : 2;
  189. u32 ECM_trans : 1;
  190. u32 ECM_PID :13;
  191. u32 EMM_filter_6 : 1;
  192. u32 EMM_filter_4 : 1;
  193. u32 EMM_trans : 1;
  194. u32 EMM_PID :13;
  195. } pid_filter_308;
  196. struct {
  197. u32 unused2 : 3;
  198. u32 Group_mask :13;
  199. u32 unused1 : 2;
  200. u32 Group_trans : 1;
  201. u32 Group_PID :13;
  202. } pid_filter_30c_ext_ind_0_7;
  203. struct {
  204. u32 unused :15;
  205. u32 net_master_read :17;
  206. } pid_filter_30c_ext_ind_1;
  207. struct {
  208. u32 unused :15;
  209. u32 net_master_write :17;
  210. } pid_filter_30c_ext_ind_2;
  211. struct {
  212. u32 unused :15;
  213. u32 next_net_master_write :17;
  214. } pid_filter_30c_ext_ind_3;
  215. struct {
  216. u32 reserved2 : 5;
  217. u32 stack_read :10;
  218. u32 reserved1 : 6;
  219. u32 state_write :10;
  220. u32 unused1 : 1;
  221. } pid_filter_30c_ext_ind_4;
  222. struct {
  223. u32 unused :22;
  224. u32 stack_cnt :10;
  225. } pid_filter_30c_ext_ind_5;
  226. struct {
  227. u32 unused : 4;
  228. u32 data_size_reg :12;
  229. u32 write_status4 : 2;
  230. u32 write_status1 : 2;
  231. u32 pid_fsm_save_reg300 : 2;
  232. u32 pid_fsm_save_reg4 : 2;
  233. u32 pid_fsm_save_reg3 : 2;
  234. u32 pid_fsm_save_reg2 : 2;
  235. u32 pid_fsm_save_reg1 : 2;
  236. u32 pid_fsm_save_reg0 : 2;
  237. } pid_filter_30c_ext_ind_6;
  238. struct {
  239. u32 unused :22;
  240. u32 pass_alltables : 1;
  241. u32 AB_select : 1;
  242. u32 extra_index_reg : 3;
  243. u32 index_reg : 5;
  244. } index_reg_310;
  245. struct {
  246. u32 reserved :17;
  247. u32 PID_enable_bit : 1;
  248. u32 PID_trans : 1;
  249. u32 PID :13;
  250. } pid_n_reg_314;
  251. struct {
  252. u32 reserved : 6;
  253. u32 HighAB_bit : 1;
  254. u32 Enable_bit : 1;
  255. u32 A6_byte : 8;
  256. u32 A5_byte : 8;
  257. u32 A4_byte : 8;
  258. } mac_low_reg_318;
  259. struct {
  260. u32 reserved : 8;
  261. u32 A3_byte : 8;
  262. u32 A2_byte : 8;
  263. u32 A1_byte : 8;
  264. } mac_high_reg_31c;
  265. struct {
  266. u32 data_Tag_ID :16;
  267. u32 reserved :16;
  268. } data_tag_400;
  269. struct {
  270. u32 Card_IDbyte3 : 8;
  271. u32 Card_IDbyte4 : 8;
  272. u32 Card_IDbyte5 : 8;
  273. u32 Card_IDbyte6 : 8;
  274. } card_id_408;
  275. struct {
  276. u32 Card_IDbyte1 : 8;
  277. u32 Card_IDbyte2 : 8;
  278. } card_id_40c;
  279. struct {
  280. u32 MAC6 : 8;
  281. u32 MAC3 : 8;
  282. u32 MAC2 : 8;
  283. u32 MAC1 : 8;
  284. } mac_address_418;
  285. struct {
  286. u32 reserved :16;
  287. u32 MAC8 : 8;
  288. u32 MAC7 : 8;
  289. } mac_address_41c;
  290. struct {
  291. u32 reserved :21;
  292. u32 txbuffempty : 1;
  293. u32 ReceiveByteFrameError : 1;
  294. u32 ReceiveDataReady : 1;
  295. u32 transmitter_data_byte : 8;
  296. } ci_600;
  297. struct {
  298. u32 pi_component_reg : 3;
  299. u32 pi_rw : 1;
  300. u32 pi_ha :20;
  301. u32 pi_d : 8;
  302. } pi_604;
  303. struct {
  304. u32 pi_busy_n : 1;
  305. u32 pi_wait_n : 1;
  306. u32 pi_timeout_status : 1;
  307. u32 pi_CiMax_IRQ_n : 1;
  308. u32 config_cclk : 1;
  309. u32 config_cs_n : 1;
  310. u32 config_wr_n : 1;
  311. u32 config_Prog_n : 1;
  312. u32 config_Init_stat : 1;
  313. u32 config_Done_stat : 1;
  314. u32 pcmcia_b_mod_pwr_n : 1;
  315. u32 pcmcia_a_mod_pwr_n : 1;
  316. u32 reserved : 3;
  317. u32 Timer_addr : 5;
  318. u32 unused : 1;
  319. u32 timer_data : 7;
  320. u32 Timer_Load_req : 1;
  321. u32 Timer_Read_req : 1;
  322. u32 oncecycle_read : 1;
  323. u32 serialReset : 1;
  324. } pi_608;
  325. struct {
  326. u32 reserved : 6;
  327. u32 rw_flag : 1;
  328. u32 dvb_en : 1;
  329. u32 key_array_row : 5;
  330. u32 key_array_col : 3;
  331. u32 key_code : 2;
  332. u32 key_enable : 1;
  333. u32 PID :13;
  334. } dvb_reg_60c;
  335. struct {
  336. u32 start_sram_ibi : 1;
  337. u32 reserved2 : 1;
  338. u32 ce_pin_reg : 1;
  339. u32 oe_pin_reg : 1;
  340. u32 reserved1 : 3;
  341. u32 sc_xfer_bit : 1;
  342. u32 sram_data : 8;
  343. u32 sram_rw : 1;
  344. u32 sram_addr :15;
  345. } sram_ctrl_reg_700;
  346. struct {
  347. u32 net_addr_write :16;
  348. u32 net_addr_read :16;
  349. } net_buf_reg_704;
  350. struct {
  351. u32 cai_cnt : 4;
  352. u32 reserved2 : 6;
  353. u32 cai_write :11;
  354. u32 reserved1 : 5;
  355. u32 cai_read :11;
  356. } cai_buf_reg_708;
  357. struct {
  358. u32 cao_cnt : 4;
  359. u32 reserved2 : 6;
  360. u32 cap_write :11;
  361. u32 reserved1 : 5;
  362. u32 cao_read :11;
  363. } cao_buf_reg_70c;
  364. struct {
  365. u32 media_cnt : 4;
  366. u32 reserved2 : 6;
  367. u32 media_write :11;
  368. u32 reserved1 : 5;
  369. u32 media_read :11;
  370. } media_buf_reg_710;
  371. struct {
  372. u32 reserved :17;
  373. u32 ctrl_maximumfill : 1;
  374. u32 ctrl_sramdma : 1;
  375. u32 ctrl_usb_wan : 1;
  376. u32 cao_ovflow_error : 1;
  377. u32 cai_ovflow_error : 1;
  378. u32 media_ovflow_error : 1;
  379. u32 net_ovflow_error : 1;
  380. u32 MEDIA_Dest : 2;
  381. u32 CAO_Dest : 2;
  382. u32 CAI_Dest : 2;
  383. u32 NET_Dest : 2;
  384. } sram_dest_reg_714;
  385. struct {
  386. u32 reserved3 :11;
  387. u32 net_addr_write : 1;
  388. u32 reserved2 : 3;
  389. u32 net_addr_read : 1;
  390. u32 reserved1 : 4;
  391. u32 net_cnt :12;
  392. } net_buf_reg_718;
  393. struct {
  394. u32 reserved3 : 4;
  395. u32 wan_pkt_frame : 4;
  396. u32 reserved2 : 4;
  397. u32 sram_memmap : 2;
  398. u32 sram_chip : 2;
  399. u32 wan_wait_state : 8;
  400. u32 reserved1 : 6;
  401. u32 wan_speed_sig : 2;
  402. } wan_ctrl_reg_71c;
  403. } flexcop_ibi_value;
  404. #endif