Files
hisi_SS524V100_SDK/interdrv/mipi_rx/mipi_rx_reg.h
T

1512 lines
61 KiB
C

/*
Copyright (c), 2001-2022, Shenshu Tech. Co., Ltd.
*/
#ifndef __MIPI_RX_REG_H__
#define __MIPI_RX_REG_H__
/* Define the union reg_phy_mode_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy0_rg_en_d : 4; /* [3..0] */
unsigned int phy0_rg_en_clk0 : 1; /* [4] */
unsigned int reserved_0 : 6; /* [10..5] */
unsigned int phy0_rg_en_lp_clk : 1; /* [11] */
unsigned int phy0_rg_en_lp : 4; /* [15..12] */
unsigned int phy0_rg_faclk0_en : 1; /* [16] */
unsigned int reserved_1 : 7; /* [23..17] */
unsigned int phy0_rg_mipi_mode0 : 1; /* [24] */
unsigned int reserved_2 : 7; /* [31..25] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_mode_link;
/* Define the union reg_phy_skew_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy0_clk0_skew : 3; /* [2..0] */
unsigned int reserved_0 : 5; /* [7..3] */
unsigned int phy0_d0_skew : 3; /* [10..8] */
unsigned int reserved_1 : 1; /* [11] */
unsigned int phy0_d1_skew : 3; /* [14..12] */
unsigned int reserved_2 : 1; /* [15] */
unsigned int phy0_d2_skew : 3; /* [18..16] */
unsigned int reserved_3 : 1; /* [19] */
unsigned int phy0_d3_skew : 3; /* [22..20] */
unsigned int reserved_4 : 9; /* [31..23] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_skew_link;
/* Define the union reg_phy_en_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy_da_d0_valid : 1; /* [0] */
unsigned int phy_da_d1_valid : 1; /* [1] */
unsigned int phy_da_d2_valid : 1; /* [2] */
unsigned int phy_da_d3_valid : 1; /* [3] */
unsigned int reserved_0 : 4; /* [7..4] */
unsigned int phy_d0_term_en : 1; /* [8] */
unsigned int phy_d1_term_en : 1; /* [9] */
unsigned int phy_d2_term_en : 1; /* [10] */
unsigned int phy_d3_term_en : 1; /* [11] */
unsigned int phy_clk0_term_en : 1; /* [12] */
unsigned int reserved_1 : 19; /* [31..13] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_en_link;
/* Define the union reg_phy_cfg_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy0_da_ulpb : 4; /* [3..0] */
unsigned int phy0_da_ulpb_ck0 : 1; /* [4] */
unsigned int reserved_0 : 3; /* [7..5] */
unsigned int phy0_rg_it_lp : 2; /* [9..8] */
unsigned int phy0_rg_it_ck : 2; /* [11..10] */
unsigned int phy0_rg_it_dt : 2; /* [13..12] */
unsigned int phy0_rg_sa_en : 1; /* [14] */
unsigned int reserved_1 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_cfg_link;
/* Define the union reg_phy_data_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy_data0_mipi : 8; /* [7..0] */
unsigned int phy_data1_mipi : 8; /* [15..8] */
unsigned int phy_data2_mipi : 8; /* [23..16] */
unsigned int phy_data3_mipi : 8; /* [31..24] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_data_link;
/* Define the union reg_phy_ph_mipi_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy_ph0_mipi : 8; /* [7..0] */
unsigned int phy_ph1_mipi : 8; /* [15..8] */
unsigned int phy_ph2_mipi : 8; /* [23..16] */
unsigned int phy_ph3_mipi : 8; /* [31..24] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_ph_mipi_link;
/* Define the union reg_phy_data_mipi_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy_data0_mipi_hs : 8; /* [7..0] */
unsigned int phy_data1_mipi_hs : 8; /* [15..8] */
unsigned int phy_data2_mipi_hs : 8; /* [23..16] */
unsigned int phy_data3_mipi_hs : 8; /* [31..24] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_data_mipi_link;
/* Define the union reg_phy_out_valid_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int reserved_0 : 4; /* [3..0] */
unsigned int cil_mipi_out_valid : 4; /* [7..4] */
unsigned int reserved_1 : 24; /* [31..8] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_out_valid_link;
/* Define the union reg_cil_timeout_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int cil_timeout_cyc : 24; /* [23..0] */
unsigned int reserved_0 : 6; /* [29..24] */
unsigned int cil_timeout_en_ck : 1; /* [30] */
unsigned int cil_timeout_en_d : 1; /* [31] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_cil_timeout_link;
/* Define the union reg_cil_fsm0_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int cil_cyc_clk_lp00 : 6; /* [5..0] */
unsigned int reserved_0 : 2; /* [7..6] */
unsigned int cil_cyc_clk_hs0 : 6; /* [13..8] */
unsigned int reserved_1 : 2; /* [15..14] */
unsigned int cil_cyc_clk_hs_exit : 6; /* [21..16] */
unsigned int reserved_2 : 2; /* [23..22] */
unsigned int cil_cyc_clk_hs_trail : 6; /* [29..24] */
unsigned int reserved_3 : 2; /* [31..30] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_cil_fsm0_link;
/* Define the union reg_cil_fsm_st0_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int cil_cur_st_d0 : 4; /* [3..0] */
unsigned int cil_nxt_st_d0 : 4; /* [7..4] */
unsigned int cil_cur_st_d1 : 4; /* [11..8] */
unsigned int cil_nxt_st_d1 : 4; /* [15..12] */
unsigned int cil_cur_st_d2 : 4; /* [19..16] */
unsigned int cil_nxt_st_d2 : 4; /* [23..20] */
unsigned int cil_cur_st_d3 : 4; /* [27..24] */
unsigned int cil_nxt_st_d3 : 4; /* [31..28] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_cil_fsm_st0_link;
/* Define the union reg_cil_fsm_st1_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int cil_cur_st_ck : 4; /* [3..0] */
unsigned int cil_nxt_st_ck : 4; /* [7..4] */
unsigned int reserved_0 : 24; /* [31..8] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_cil_fsm_st1_link;
/* Define the union reg_phy_st0_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int physt0_rg_en_d : 4; /* [3..0] */
unsigned int physt0_rg_en_clk0 : 1; /* [4] */
unsigned int reserved_0 : 6; /* [10..5] */
unsigned int physt0_rg_en_lp_clk : 1; /* [11] */
unsigned int physt0_rg_en_lp : 4; /* [15..12] */
unsigned int physt0_rg_faclk0_en : 1; /* [16] */
unsigned int reserved_1 : 7; /* [23..17] */
unsigned int physt0_rg_mipi_mode0 : 1; /* [24] */
unsigned int reserved_2 : 7; /* [31..25] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_st0_link;
/* Define the union reg_phy_st1_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int physt0_clk0_skew : 3; /* [2..0] */
unsigned int reserved_0 : 5; /* [7..3] */
unsigned int physt0_d0_skew : 3; /* [10..8] */
unsigned int reserved_1 : 1; /* [11] */
unsigned int physt0_d1_skew : 3; /* [14..12] */
unsigned int reserved_2 : 1; /* [15] */
unsigned int physt0_d2_skew : 3; /* [18..16] */
unsigned int reserved_3 : 1; /* [19] */
unsigned int physt0_d3_skew : 3; /* [22..20] */
unsigned int reserved_4 : 9; /* [31..23] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_st1_link;
/* Define the union reg_phy_st2_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int physt_da_d0_valid : 1; /* [0] */
unsigned int physt_da_d1_valid : 1; /* [1] */
unsigned int physt_da_d2_valid : 1; /* [2] */
unsigned int physt_da_d3_valid : 1; /* [3] */
unsigned int reserved_0 : 4; /* [7..4] */
unsigned int physt_d0_term_en : 1; /* [8] */
unsigned int physt_d1_term_en : 1; /* [9] */
unsigned int physt_d2_term_en : 1; /* [10] */
unsigned int physt_d3_term_en : 1; /* [11] */
unsigned int physt_clk0_term_en : 1; /* [12] */
unsigned int reserved_1 : 19; /* [31..13] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_st2_link;
/* Define the union reg_phy_st3_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int physt0_da_ulpb : 4; /* [3..0] */
unsigned int physt0_da_ulpb_ck0 : 1; /* [4] */
unsigned int physt0_da_ulpb_ck1 : 1; /* [5] */
unsigned int reserved_0 : 2; /* [7..6] */
unsigned int physt0_rg_it_lp : 2; /* [9..8] */
unsigned int physt0_rg_it_ck : 2; /* [11..10] */
unsigned int physt0_rg_it_dt : 2; /* [13..12] */
unsigned int physt0_rg_sa_en : 1; /* [14] */
unsigned int reserved_1 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_st3_link;
/* Define the union reg_cil_fsm1_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int cil_cyc_data_lp00 : 6; /* [5..0] */
unsigned int reserved_0 : 2; /* [7..6] */
unsigned int cil_cyc_data_hs0 : 6; /* [13..8] */
unsigned int reserved_1 : 2; /* [15..14] */
unsigned int cil_cyc_data_hs_exit : 6; /* [21..16] */
unsigned int reserved_2 : 2; /* [23..22] */
unsigned int cil_cyc_data_hs_trail : 6; /* [29..24] */
unsigned int reserved_3 : 2; /* [31..30] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_cil_fsm1_link;
/* Define the union reg_mipi_cil_int_raw_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int err0_escape_d0_raw : 1; /* [0] */
unsigned int err0_escape_d1_raw : 1; /* [1] */
unsigned int err0_escape_d2_raw : 1; /* [2] */
unsigned int err0_escape_d3_raw : 1; /* [3] */
unsigned int err0_escape_ck0_raw : 1; /* [4] */
unsigned int reserved_0 : 3; /* [7..5] */
unsigned int err0_timeout_d0_raw : 1; /* [8] */
unsigned int err0_timeout_d1_raw : 1; /* [9] */
unsigned int err0_timeout_d2_raw : 1; /* [10] */
unsigned int err0_timeout_d3_raw : 1; /* [11] */
unsigned int err0_timeout_ck0_raw : 1; /* [12] */
unsigned int reserved_1 : 19; /* [31..13] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_cil_int_raw_link;
/* Define the union reg_mipi_cil_int_link */
typedef union {
/* Define the struct bits */
struct {
unsigned int err0_escape_d0_st : 1; /* [0] */
unsigned int err0_escape_d1_st : 1; /* [1] */
unsigned int err0_escape_d2_st : 1; /* [2] */
unsigned int err0_escape_d3_st : 1; /* [3] */
unsigned int err0_escape_ck0_st : 1; /* [4] */
unsigned int reserved_0 : 3; /* [7..5] */
unsigned int err0_timeout_d0_st : 1; /* [8] */
unsigned int err0_timeout_d1_st : 1; /* [9] */
unsigned int err0_timeout_d2_st : 1; /* [10] */
unsigned int err0_timeout_d3_st : 1; /* [11] */
unsigned int err0_timeout_ck0_st : 1; /* [12] */
unsigned int reserved_1 : 19; /* [31..13] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_cil_int_link;
/* Define the union reg_mipi_cil_int_msk_link(p) */
typedef union {
/* Define the struct bits */
struct {
unsigned int err_escape_d0_msk : 1; /* [0] */
unsigned int err_escape_d1_msk : 1; /* [1] */
unsigned int err_escape_d2_msk : 1; /* [2] */
unsigned int err_escape_d3_msk : 1; /* [3] */
unsigned int err_escape_ck_msk : 1; /* [4] */
unsigned int reserved_0 : 3; /* [7..5] */
unsigned int err_timeout_d0_msk : 1; /* [8] */
unsigned int err_timeout_d1_msk : 1; /* [9] */
unsigned int err_timeout_d2_msk : 1; /* [10] */
unsigned int err_timeout_d3_msk : 1; /* [11] */
unsigned int err_timeout_ck_msk : 1; /* [12] */
unsigned int reserved_1 : 19; /* [31..13] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_cil_int_msk_link;
/* Define the union reg_mipi(n)_interlaced */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_csi_interlaced : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int odd_even_polarity : 1; /* [4] */
unsigned int reserved_1 : 27; /* [31..5] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_interlaced;
/* Define the union reg_mipi(n)_frame_nun0 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_frame_num_vc0 : 16; /* [15..0] */
unsigned int mipi_frame_num_vc1 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_frame_nun0;
/* Define the union reg_mipi(n)_frame_nun1 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_frame_num_vc2 : 16; /* [15..0] */
unsigned int mipi_frame_num_vc3 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_frame_nun1;
/* Define the union reg_mipi(n)_crc_intr_raw */
typedef union {
/* Define the struct bits */
struct {
unsigned int crc_err_vc0_raw : 1; /* [0] */
unsigned int crc_err_vc1_raw : 1; /* [1] */
unsigned int crc_err_vc2_raw : 1; /* [2] */
unsigned int crc_err_vc3_raw : 1; /* [3] */
unsigned int ecc_err_vc0_raw : 1; /* [4] */
unsigned int ecc_err_vc1_raw : 1; /* [5] */
unsigned int ecc_err_vc2_raw : 1; /* [6] */
unsigned int ecc_err_vc3_raw : 1; /* [7] */
unsigned int ecc_err_mult_raw : 1; /* [8] */
unsigned int reserved_0 : 7; /* [15..9] */
unsigned int frame_num_err_vc0_raw : 1; /* [16] */
unsigned int frame_num_err_vc1_raw : 1; /* [17] */
unsigned int frame_num_err_vc2_raw : 1; /* [18] */
unsigned int frame_num_err_vc3_raw : 1; /* [19] */
unsigned int frame_s_e_num_mismatch_vc0_raw : 1; /* [20] */
unsigned int frame_s_e_num_mismatch_vc1_raw : 1; /* [21] */
unsigned int frame_s_e_num_mismatch_vc2_raw : 1; /* [22] */
unsigned int frame_s_e_num_mismatch_vc3_raw : 1; /* [23] */
unsigned int reserved_1 : 8; /* [31..24] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crc_intr_raw;
/* Define the union reg_mipi(n)_crc_intr_st */
typedef union {
/* Define the struct bits */
struct {
unsigned int crc_err_vc0_st : 1; /* [0] */
unsigned int crc_err_vc1_st : 1; /* [1] */
unsigned int crc_err_vc2_st : 1; /* [2] */
unsigned int crc_err_vc3_st : 1; /* [3] */
unsigned int ecc_err_vc0_st : 1; /* [4] */
unsigned int ecc_err_vc1_st : 1; /* [5] */
unsigned int ecc_err_vc2_st : 1; /* [6] */
unsigned int ecc_err_vc3_st : 1; /* [7] */
unsigned int ecc_err_mult_st : 1; /* [8] */
unsigned int reserved_0 : 7; /* [15..9] */
unsigned int frame_num_err_vc0_st : 1; /* [16] */
unsigned int frame_num_err_vc1_st : 1; /* [17] */
unsigned int frame_num_err_vc2_st : 1; /* [18] */
unsigned int frame_num_err_vc3_st : 1; /* [19] */
unsigned int frame_s_e_num_mismatch_vc0_st : 1; /* [20] */
unsigned int frame_s_e_num_mismatch_vc1_st : 1; /* [21] */
unsigned int frame_s_e_num_mismatch_vc2_st : 1; /* [22] */
unsigned int frame_s_e_num_mismatch_vc3_st : 1; /* [23] */
unsigned int reserved_1 : 8; /* [31..24] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crc_intr_st;
/* Define the union reg_mipi(n)_crc_intr_msk */
typedef union {
/* Define the struct bits */
struct {
unsigned int crc_err_vc0_msk : 1; /* [0] */
unsigned int crc_err_vc1_msk : 1; /* [1] */
unsigned int crc_err_vc2_msk : 1; /* [2] */
unsigned int crc_err_vc3_msk : 1; /* [3] */
unsigned int ecc_err_vc0_msk : 1; /* [4] */
unsigned int ecc_err_vc1_msk : 1; /* [5] */
unsigned int ecc_err_vc2_msk : 1; /* [6] */
unsigned int ecc_err_vc3_msk : 1; /* [7] */
unsigned int ecc_err_mult_msk : 1; /* [8] */
unsigned int reserved_0 : 7; /* [15..9] */
unsigned int frame_num_err_vc0_msk : 1; /* [16] */
unsigned int frame_num_err_vc1_msk : 1; /* [17] */
unsigned int frame_num_err_vc2_msk : 1; /* [18] */
unsigned int frame_num_err_vc3_msk : 1; /* [19] */
unsigned int frame_s_e_num_mismatch_vc0_msk : 1; /* [20] */
unsigned int frame_s_e_num_mismatch_vc1_msk : 1; /* [21] */
unsigned int frame_s_e_num_mismatch_vc2_msk : 1; /* [22] */
unsigned int frame_s_e_num_mismatch_vc3_msk : 1; /* [23] */
unsigned int reserved_1 : 8; /* [31..24] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crc_intr_msk;
/* Define the union reg_mipi(n)_userdef_dt */
typedef union {
/* Define the struct bits */
struct {
unsigned int user_def0_dt : 3; /* [2..0] */
unsigned int reserved_0 : 1; /* [3] */
unsigned int user_def1_dt : 3; /* [6..4] */
unsigned int reserved_1 : 1; /* [7] */
unsigned int user_def2_dt : 3; /* [10..8] */
unsigned int reserved_2 : 1; /* [11] */
unsigned int user_def3_dt : 3; /* [14..12] */
unsigned int reserved_3 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_userdef_dt;
/* Define the union reg_mipi(n)_user_def */
typedef union {
/* Define the struct bits */
struct {
unsigned int user_def0 : 6; /* [5..0] */
unsigned int reserved_0 : 2; /* [7..6] */
unsigned int user_def1 : 6; /* [13..8] */
unsigned int reserved_1 : 2; /* [15..14] */
unsigned int user_def2 : 6; /* [21..16] */
unsigned int reserved_2 : 2; /* [23..22] */
unsigned int user_def3 : 6; /* [29..24] */
unsigned int reserved_3 : 2; /* [31..30] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_user_def;
/* Define the union reg_mipi(n)_ctrl_mode_hs */
typedef union {
/* Define the struct bits */
struct {
unsigned int hdr_mode : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int vc_mode : 1; /* [4] */
unsigned int reserved_1 : 3; /* [7..5] */
unsigned int user_def_en : 1; /* [8] */
unsigned int reserved_2 : 3; /* [11..9] */
unsigned int lane0_location : 3; /* [14..12] */
unsigned int reserved_3 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_ctrl_mode_hs;
/* Define the union reg_mipi(n)_vhend_delay */
typedef union {
/* Define the struct bits */
struct {
unsigned int vend_delay : 16; /* [15..0] */
unsigned int hend_delay : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_vhend_delay;
/* Define the union reg_mipi(n)_crop_start_vc0 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_start_x_chn0 : 16; /* [15..0] */
unsigned int mipi_start_y_chn0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_start_vc0;
/* Define the union reg_mipi(n)_crop_start_vc1 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_start_x_chn1 : 16; /* [15..0] */
unsigned int mipi_start_y_chn1 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_start_vc1;
/* Define the union reg_mipi(n)_crop_start_vc2 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_start_x_chn2 : 16; /* [15..0] */
unsigned int mipi_start_y_chn2 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_start_vc2;
/* Define the union reg_mipi(n)_crop_start_vc3 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_start_x_chn3 : 16; /* [15..0] */
unsigned int mipi_start_y_chn3 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_start_vc3;
/* Define the union reg_mipi(n)_crop_imgsize_vc0 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_crop_width_vc0 : 16; /* [15..0] */
unsigned int mipi_crop_height_vc0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_imgsize_vc0;
/* Define the union reg_mipi(n)_crop_imgsize_vc1 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_crop_width_vc1 : 16; /* [15..0] */
unsigned int mipi_crop_height_vc1 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_imgsize_vc1;
/* Define the union reg_mipi(n)_crop_imgsize_vc2 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_crop_width_vc2 : 16; /* [15..0] */
unsigned int mipi_crop_height_vc2 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_imgsize_vc2;
/* Define the union reg_mipi(n)_crop_imgsize_vc3 */
typedef union {
/* Define the struct bits */
struct {
unsigned int mipi_crop_width_vc3 : 16; /* [15..0] */
unsigned int mipi_crop_height_vc3 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_crop_imgsize_vc3;
/* Define the union reg_mipi(n)_ctrl_mode_pixel */
typedef union {
/* Define the struct bits */
struct {
unsigned int crop_en : 1; /* [0] */
unsigned int mipi_wdr_num : 2; /* [2..1] */
unsigned int memory_hold_en : 1; /* [3] */
unsigned int mipi_dol_mode : 1; /* [4] */
unsigned int reserved_0 : 3; /* [7..5] */
unsigned int rx2mode : 1; /* [8] */
unsigned int data_merge_mode : 2; /* [10..9] */
unsigned int sync_clear_en : 1; /* [11] */
unsigned int stagger_hdr_mode : 1; /* [12] */
unsigned int stagger_frm_num : 2; /* [14..13] */
unsigned int dummy_line_detect : 1; /* [15] */
unsigned int mipi_double_pix_en : 1; /* [16] */
unsigned int mipi_double_yuv_en : 1; /* [17] */
unsigned int mipi_yuv_422_en : 1; /* [18] */
unsigned int mipi_yuv_420_nolegacy_en : 1; /* [19] */
unsigned int mipi_yuv_420_legacy_en : 1; /* [20] */
unsigned int reserved_1 : 11; /* [31..21] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_ctrl_mode_pixel;
/* Define the union reg_mipi(n)_dummy_pix_reg */
typedef union {
/* Define the struct bits */
struct {
unsigned int dummy_pix_reg : 16; /* [15..0] */
unsigned int reserved_0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_dummy_pix_reg;
/* Define the union reg_mipi(n)_imgsize0_statis */
typedef union {
/* Define the struct bits */
struct {
unsigned int imgwidth_statis_vc0 : 16; /* [15..0] */
unsigned int imgheight_statis_vc0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_imgsize0_statis;
/* Define the union reg_mipi(n)_imgsize1_statis */
typedef union {
/* Define the struct bits */
struct {
unsigned int imgwidth_statis_vc1 : 16; /* [15..0] */
unsigned int imgheight_statis_vc1 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_imgsize1_statis;
/* Define the union reg_mipi(n)_imgsize2_statis */
typedef union {
/* Define the struct bits */
struct {
unsigned int imgwidth_statis_vc2 : 16; /* [15..0] */
unsigned int imgheight_statis_vc2 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_imgsize2_statis;
/* Define the union reg_mipi(n)_imgsize3_statis */
typedef union {
/* Define the struct bits */
struct {
unsigned int imgwidth_statis_vc3 : 16; /* [15..0] */
unsigned int imgheight_statis_vc3 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_imgsize3_statis;
/* Define the union reg_mipi(n)_ctrl_int_raw */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_cfifo_wrerr_raw : 1; /* [0] */
unsigned int int_dfifo_wrerr_raw : 1; /* [1] */
unsigned int reserved_0 : 2; /* [3..2] */
unsigned int int_vsync_raw : 1; /* [4] */
unsigned int reserved_1 : 3; /* [7..5] */
unsigned int memory_noempty_write_raw : 1; /* [8] */
unsigned int cmdfifo_noempty_raw : 1; /* [9] */
unsigned int reserved_2 : 6; /* [15..10] */
unsigned int int_cfifo_rderr_raw : 1; /* [16] */
unsigned int int_dfifo_rderr_raw : 1; /* [17] */
unsigned int reserved_3 : 14; /* [31..18] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_ctrl_int_raw;
/* Define the union reg_mipi(n)_ctrl_int */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_cfifo_wrerr_st : 1; /* [0] */
unsigned int int_dfifo_wrerr_st : 1; /* [1] */
unsigned int reserved_0 : 2; /* [3..2] */
unsigned int int_vsync_st : 1; /* [4] */
unsigned int reserved_1 : 3; /* [7..5] */
unsigned int memory_noempty_write_st : 1; /* [8] */
unsigned int cmdfifo_noempty_st : 1; /* [9] */
unsigned int reserved_2 : 6; /* [15..10] */
unsigned int int_cfifo_rderr_st : 1; /* [16] */
unsigned int int_dfifo_rderr_st : 1; /* [17] */
unsigned int reserved_3 : 14; /* [31..18] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_ctrl_int;
/* Define the union reg_mipi(n)_ctrl_int_msk */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_cfifo_wrerr_msk : 1; /* [0] */
unsigned int int_dfifo_wrerr_msk : 1; /* [1] */
unsigned int reserved_0 : 2; /* [3..2] */
unsigned int int_vsync_msk : 1; /* [4] */
unsigned int reserved_1 : 3; /* [7..5] */
unsigned int memory_noempty_write_msk : 1; /* [8] */
unsigned int cmdfifo_noempty_msk : 1; /* [9] */
unsigned int reserved_2 : 6; /* [15..10] */
unsigned int int_cfifo_rderr_msk : 1; /* [16] */
unsigned int int_dfifo_rderr_msk : 1; /* [17] */
unsigned int reserved_3 : 14; /* [31..18] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_ctrl_int_msk;
/* Define the union reg_lane_id0_chn(n) */
typedef union {
/* Define the struct bits */
struct {
unsigned int lane0_id : 4; /* [3..0] */
unsigned int lane1_id : 4; /* [7..4] */
unsigned int lane2_id : 4; /* [11..8] */
unsigned int lane3_id : 4; /* [15..12] */
unsigned int reserved_0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_lane_id0_chn;
/* Define the union reg_align(n)_int_raw */
typedef union {
/* Define the struct bits */
struct {
unsigned int err_full_raw : 1; /* [0] */
unsigned int err_lane0_raw : 1; /* [1] */
unsigned int err_lane1_raw : 1; /* [2] */
unsigned int err_lane2_raw : 1; /* [3] */
unsigned int err_lane3_raw : 1; /* [4] */
unsigned int err_lane4_raw : 1; /* [5] */
unsigned int err_lane5_raw : 1; /* [6] */
unsigned int err_lane6_raw : 1; /* [7] */
unsigned int err_lane7_raw : 1; /* [8] */
unsigned int err_lane8_raw : 1; /* [9] */
unsigned int err_lane9_raw : 1; /* [10] */
unsigned int err_lane10_raw : 1; /* [11] */
unsigned int err_lane11_raw : 1; /* [12] */
unsigned int err_lane12_raw : 1; /* [13] */
unsigned int err_lane13_raw : 1; /* [14] */
unsigned int err_lane14_raw : 1; /* [15] */
unsigned int err_lane15_raw : 1; /* [16] */
unsigned int reserved_0 : 15; /* [31..17] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_align_int_raw;
/* Define the union reg_align(n)_int */
typedef union {
/* Define the struct bits */
struct {
unsigned int err_full_st : 1; /* [0] */
unsigned int err_lane0_st : 1; /* [1] */
unsigned int err_lane1_st : 1; /* [2] */
unsigned int err_lane2_st : 1; /* [3] */
unsigned int err_lane3_st : 1; /* [4] */
unsigned int err_lane4_st : 1; /* [5] */
unsigned int err_lane5_st : 1; /* [6] */
unsigned int err_lane6_st : 1; /* [7] */
unsigned int err_lane7_st : 1; /* [8] */
unsigned int err_lane8_st : 1; /* [9] */
unsigned int err_lane9_st : 1; /* [10] */
unsigned int err_lane10_st : 1; /* [11] */
unsigned int err_lane11_st : 1; /* [12] */
unsigned int err_lane12_st : 1; /* [13] */
unsigned int err_lane13_st : 1; /* [14] */
unsigned int err_lane14_st : 1; /* [15] */
unsigned int err_lane15_st : 1; /* [16] */
unsigned int reserved_0 : 15; /* [31..17] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_align_int;
/* Define the union reg_align(n)_int_msk */
typedef union {
/* Define the struct bits */
struct {
unsigned int err_full_mask : 1; /* [0] */
unsigned int err_lane0_mask : 1; /* [1] */
unsigned int err_lane1_mask : 1; /* [2] */
unsigned int err_lane2_mask : 1; /* [3] */
unsigned int err_lane3_mask : 1; /* [4] */
unsigned int err_lane4_mask : 1; /* [5] */
unsigned int err_lane5_mask : 1; /* [6] */
unsigned int err_lane6_mask : 1; /* [7] */
unsigned int err_lane7_mask : 1; /* [8] */
unsigned int err_lane8_mask : 1; /* [9] */
unsigned int err_lane9_mask : 1; /* [10] */
unsigned int err_lane10_mask : 1; /* [11] */
unsigned int err_lane11_mask : 1; /* [12] */
unsigned int err_lane12_mask : 1; /* [13] */
unsigned int err_lane13_mask : 1; /* [14] */
unsigned int err_lane14_mask : 1; /* [15] */
unsigned int err_lane15_mask : 1; /* [16] */
unsigned int reserved_0 : 15; /* [31..17] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_align_int_msk;
/* Define the union reg_d_p_swap_phy0123 */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy0_d0_swap : 1; /* [0] */
unsigned int phy0_d1_swap : 1; /* [1] */
unsigned int phy0_d2_swap : 1; /* [2] */
unsigned int phy0_d3_swap : 1; /* [3] */
unsigned int phy0_ck_swap : 1; /* [4] */
unsigned int reserved_0 : 3; /* [7..5] */
unsigned int phy1_d0_swap : 1; /* [8] */
unsigned int phy1_d1_swap : 1; /* [9] */
unsigned int phy1_d2_swap : 1; /* [10] */
unsigned int phy1_d3_swap : 1; /* [11] */
unsigned int phy1_ck_swap : 1; /* [12] */
unsigned int reserved_1 : 3; /* [15..13] */
unsigned int phy2_d0_swap : 1; /* [16] */
unsigned int phy2_d1_swap : 1; /* [17] */
unsigned int phy2_d2_swap : 1; /* [18] */
unsigned int phy2_d3_swap : 1; /* [19] */
unsigned int phy2_ck_swap : 1; /* [20] */
unsigned int reserved_2 : 3; /* [23..21] */
unsigned int phy3_d0_swap : 1; /* [24] */
unsigned int phy3_d1_swap : 1; /* [25] */
unsigned int phy3_d2_swap : 1; /* [26] */
unsigned int phy3_d3_swap : 1; /* [27] */
unsigned int phy3_ck_swap : 1; /* [28] */
unsigned int reserved_3 : 3; /* [31..29] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_d_p_swap_phy0123;
/* Define the union reg_phy_en */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy0_en : 1; /* [0] */
unsigned int phy1_en : 1; /* [1] */
unsigned int phy2_en : 1; /* [2] */
unsigned int phy3_en : 1; /* [3] */
unsigned int reserved_0 : 28; /* [31..4] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_en;
/* Define the union reg_lane_en */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy0_lane0_en : 1; /* [0] */
unsigned int phy0_lane1_en : 1; /* [1] */
unsigned int phy0_lane2_en : 1; /* [2] */
unsigned int phy0_lane3_en : 1; /* [3] */
unsigned int phy1_lane0_en : 1; /* [4] */
unsigned int phy1_lane1_en : 1; /* [5] */
unsigned int phy1_lane2_en : 1; /* [6] */
unsigned int phy1_lane3_en : 1; /* [7] */
unsigned int phy2_lane0_en : 1; /* [8] */
unsigned int phy2_lane1_en : 1; /* [9] */
unsigned int phy2_lane2_en : 1; /* [10] */
unsigned int phy2_lane3_en : 1; /* [11] */
unsigned int phy3_lane0_en : 1; /* [12] */
unsigned int phy3_lane1_en : 1; /* [13] */
unsigned int phy3_lane2_en : 1; /* [14] */
unsigned int phy3_lane3_en : 1; /* [15] */
unsigned int reserved_0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_lane_en;
/* Define the union reg_phy_cil_ctrl */
typedef union {
/* Define the struct bits */
struct {
unsigned int phycil0_cken : 1; /* [0] */
unsigned int phycil1_cken : 1; /* [1] */
unsigned int phycil2_cken : 1; /* [2] */
unsigned int phycil3_cken : 1; /* [3] */
unsigned int reserved_0 : 4; /* [7..4] */
unsigned int cil0_rst_req : 1; /* [8] */
unsigned int cil1_rst_req : 1; /* [9] */
unsigned int cil2_rst_req : 1; /* [10] */
unsigned int cil3_rst_req : 1; /* [11] */
unsigned int reserved_1 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_cil_ctrl;
/* Define the union reg_phycfg_mode */
typedef union {
/* Define the struct bits */
struct {
unsigned int phycil0_cfg_mode : 3; /* [2..0] */
unsigned int phycil0_cfg_mode_sel : 1; /* [3] */
unsigned int phycil1_cfg_mode : 3; /* [6..4] */
unsigned int phycil1_cfg_mode_sel : 1; /* [7] */
unsigned int phycil2_cfg_mode : 3; /* [10..8] */
unsigned int phycil2_cfg_mode_sel : 1; /* [11] */
unsigned int phycil3_cfg_mode : 3; /* [14..12] */
unsigned int phycil3_cfg_mode_sel : 1; /* [15] */
unsigned int reserved_0 : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phycfg_mode;
/* Define the union reg_phycfg_en */
typedef union {
/* Define the struct bits */
struct {
unsigned int phycil0_cfg_en : 1; /* [0] */
unsigned int phycil1_cfg_en : 1; /* [1] */
unsigned int phycil2_cfg_en : 1; /* [2] */
unsigned int phycil3_cfg_en : 1; /* [3] */
unsigned int reserved_0 : 28; /* [31..4] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phycfg_en;
/* Define the union reg_chn0_mem_ctrl */
typedef union {
/* Define the struct bits */
struct {
unsigned int chn0_mem_ck_gt : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int chn0_mem_emasa : 1; /* [4] */
unsigned int chn0_mem_ret1n : 1; /* [5] */
unsigned int chn0_mem_colldisn : 1; /* [6] */
unsigned int reserved_1 : 1; /* [7] */
unsigned int chn0_mem_emaa : 3; /* [10..8] */
unsigned int reserved_2 : 1; /* [11] */
unsigned int chn0_mem_emab : 3; /* [14..12] */
unsigned int reserved_3 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn0_mem_ctrl;
/* Define the union reg_chn1_mem_ctrl */
typedef union {
/* Define the struct bits */
struct {
unsigned int chn1_mem_ck_gt : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int chn1_mem_emasa : 1; /* [4] */
unsigned int chn1_mem_ret1n : 1; /* [5] */
unsigned int chn1_mem_colldisn : 1; /* [6] */
unsigned int reserved_1 : 1; /* [7] */
unsigned int chn1_mem_emaa : 3; /* [10..8] */
unsigned int reserved_2 : 1; /* [11] */
unsigned int chn1_mem_emab : 3; /* [14..12] */
unsigned int reserved_3 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn1_mem_ctrl;
/* Define the union reg_chn2_mem_ctrl */
typedef union {
/* Define the struct bits */
struct {
unsigned int chn2_mem_ck_gt : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int chn2_mem_emasa : 1; /* [4] */
unsigned int chn2_mem_ret1n : 1; /* [5] */
unsigned int chn2_mem_colldisn : 1; /* [6] */
unsigned int reserved_1 : 1; /* [7] */
unsigned int chn2_mem_emaa : 3; /* [10..8] */
unsigned int reserved_2 : 1; /* [11] */
unsigned int chn2_mem_emab : 3; /* [14..12] */
unsigned int reserved_3 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn2_mem_ctrl;
/* Define the union reg_chn3_mem_ctrl */
typedef union {
/* Define the struct bits */
struct {
unsigned int chn3_mem_ck_gt : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int chn3_mem_emasa : 1; /* [4] */
unsigned int chn3_mem_ret1n : 1; /* [5] */
unsigned int chn3_mem_colldisn : 1; /* [6] */
unsigned int reserved_1 : 1; /* [7] */
unsigned int chn3_mem_emaa : 3; /* [10..8] */
unsigned int reserved_2 : 1; /* [11] */
unsigned int chn3_mem_emab : 3; /* [14..12] */
unsigned int reserved_3 : 17; /* [31..15] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn3_mem_ctrl;
/* Define the union reg_phy_cmos_lock */
typedef union {
/* Define the struct bits */
struct {
unsigned int phy_cmos_lock : 32; /* [31..0] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_cmos_lock;
/* Define the union reg_phy_cmos_clk_mux */
typedef union {
/* Define the struct bits */
struct {
unsigned int cmos_clk_mux : 32; /* [31..0] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy_cmos_clk_mux;
/* Define the union reg_mipi_test_phy */
typedef union {
/* Define the struct bits */
struct {
unsigned int test_phy_en : 1; /* [0] */
unsigned int reserved_0 : 3; /* [3..1] */
unsigned int test_phy_srst_req : 1; /* [4] */
unsigned int reserved_1 : 27; /* [31..5] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_test_phy;
/* Define the union reg_colorbar_ctrl */
typedef union {
/* Define the struct bits */
struct {
unsigned int colorbar_en : 1; /* [0] */
unsigned int colorbar_mode : 1; /* [1] */
unsigned int colorbar_pattern : 1; /* [2] */
unsigned int colorbar_line_init : 1; /* [3] */
unsigned int colorbar_width : 10; /* [13..4] */
unsigned int reserved_0 : 18; /* [31..14] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_colorbar_ctrl;
/* Define the union reg_colorbar_init */
typedef union {
/* Define the struct bits */
struct {
unsigned int colorbar_data_init : 12; /* [11..0] */
unsigned int reserved_0 : 4; /* [15..12] */
unsigned int colorbar_data_inc : 12; /* [27..16] */
unsigned int reserved_1 : 4; /* [31..28] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_colorbar_init;
/* Define the union reg_colorbar_v_blk */
typedef union {
/* Define the struct bits */
struct {
unsigned int colorbar_vertical_blk : 20; /* [19..0] */
unsigned int reserved_0 : 12; /* [31..20] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_colorbar_v_blk;
/* Define the union reg_colorbar_h_blk */
typedef union {
/* Define the struct bits */
struct {
unsigned int colorbar_line_blk : 20; /* [19..0] */
unsigned int reserved_0 : 12; /* [31..20] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_colorbar_h_blk;
/* Define the union reg_colorbar_img_size */
typedef union {
/* Define the struct bits */
struct {
unsigned int colorbar_imgwidth : 16; /* [15..0] */
unsigned int colorbar_imgheight : 16; /* [31..16] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_colorbar_img_size;
/* Define the union reg_phy0_test_out */
typedef union {
/* Define the struct bits */
struct {
unsigned int test_phy0_resault : 4; /* [3..0] */
unsigned int test_phy0_compare : 4; /* [7..4] */
unsigned int test_phy0_done : 4; /* [11..8] */
unsigned int reserved_0 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy0_test_out;
/* Define the union reg_phy1_test_out */
typedef union {
/* Define the struct bits */
struct {
unsigned int test_phy1_resault : 4; /* [3..0] */
unsigned int test_phy1_compare : 4; /* [7..4] */
unsigned int test_phy1_done : 4; /* [11..8] */
unsigned int reserved_0 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy1_test_out;
/* Define the union reg_phy2_test_out */
typedef union {
/* Define the struct bits */
struct {
unsigned int test_phy2_resault : 4; /* [3..0] */
unsigned int test_phy2_compare : 4; /* [7..4] */
unsigned int test_phy2_done : 4; /* [11..8] */
unsigned int reserved_0 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy2_test_out;
/* Define the union reg_phy3_test_out */
typedef union {
/* Define the struct bits */
struct {
unsigned int test_phy3_resault : 4; /* [3..0] */
unsigned int test_phy3_compare : 4; /* [7..4] */
unsigned int test_phy3_done : 4; /* [11..8] */
unsigned int reserved_0 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_phy3_test_out;
/* Define the union reg_mipi_int_raw */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_phycil0_raw : 1; /* [0] */
unsigned int int_phycil1_raw : 1; /* [1] */
unsigned int int_phycil2_raw : 1; /* [2] */
unsigned int int_phycil3_raw : 1; /* [3] */
unsigned int reserved_0 : 4; /* [7..4] */
unsigned int int_chn0_raw : 1; /* [8] */
unsigned int int_chn1_raw : 1; /* [9] */
unsigned int int_chn2_raw : 1; /* [10] */
unsigned int int_chn3_raw : 1; /* [11] */
unsigned int reserved_1 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_int_raw;
/* Define the union reg_mipi_int_st */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_phycil0_st : 1; /* [0] */
unsigned int int_phycil1_st : 1; /* [1] */
unsigned int int_phycil2_st : 1; /* [2] */
unsigned int int_phycil3_st : 1; /* [3] */
unsigned int reserved_0 : 4; /* [7..4] */
unsigned int int_chn0_st : 1; /* [8] */
unsigned int int_chn1_st : 1; /* [9] */
unsigned int int_chn2_st : 1; /* [10] */
unsigned int int_chn3_st : 1; /* [11] */
unsigned int reserved_1 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_int_st;
/* Define the union reg_mipi_int_msk */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_phycil0_mask : 1; /* [0] */
unsigned int int_phycil1_mask : 1; /* [1] */
unsigned int int_phycil2_mask : 1; /* [2] */
unsigned int int_phycil3_mask : 1; /* [3] */
unsigned int reserved_0 : 4; /* [7..4] */
unsigned int int_chn0_mask : 1; /* [8] */
unsigned int int_chn1_mask : 1; /* [9] */
unsigned int int_chn2_mask : 1; /* [10] */
unsigned int int_chn3_mask : 1; /* [11] */
unsigned int reserved_1 : 20; /* [31..12] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_mipi_int_msk;
/* Define the union reg_chn(n)_int_raw */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_lvds_ctrl_raw : 1; /* [0] */
unsigned int int_mipi_csi_raw : 1; /* [1] */
unsigned int int_mipi_ctrl_raw : 1; /* [2] */
unsigned int int_data_align_raw : 1; /* [3] */
unsigned int reserved_0 : 28; /* [31..4] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn_int_raw;
/* Define the union reg_chn(n)_int */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_lvds_ctrl_st : 1; /* [0] */
unsigned int int_mipi_csi_st : 1; /* [1] */
unsigned int int_mipi_ctrl_st : 1; /* [2] */
unsigned int int_data_align_st : 1; /* [3] */
unsigned int reserved_0 : 28; /* [31..4] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn_int;
/* Define the union reg_chn(n)_int_mask */
typedef union {
/* Define the struct bits */
struct {
unsigned int int_lvds_ctrl_mask : 1; /* [0] */
unsigned int int_mipi_csi_mask : 1; /* [1] */
unsigned int int_mipi_ctrl_mask : 1; /* [2] */
unsigned int int_data_align_mask : 1; /* [3] */
unsigned int reserved_0 : 28; /* [31..4] */
} bits;
/* Define an unsigned member */
unsigned int u32;
} reg_chn_int_mask;
/* Define the global struct */
typedef struct {
volatile reg_phy_mode_link phy_mode_link; /* 0x0 */
volatile reg_phy_skew_link phy_skew_link; /* 0x4 */
volatile unsigned int reserved_0; /* 0x8 */
volatile reg_phy_en_link phy_en_link; /* 0xc */
volatile unsigned int reserved_1; /* 0x10 */
volatile reg_phy_cfg_link phy_cfg_link; /* 0x14 */
volatile reg_phy_data_link phy_data_link; /* 0x18 */
volatile reg_phy_ph_mipi_link phy_ph_mipi_link; /* 0x1c */
volatile reg_phy_data_mipi_link phy_data_mipi_link; /* 0x20 */
volatile unsigned int reserved_2[7]; /* 0x24~0x3c */
volatile reg_phy_out_valid_link phy_out_valid_link; /* 0x40 */
volatile unsigned int reserved_3[47]; /* 0x44~0xfc */
volatile reg_cil_timeout_link cil_timeout_link; /* 0x100 */
volatile reg_cil_fsm0_link cil_fsm0_link; /* 0x104 */
volatile reg_cil_fsm_st0_link cil_fsm_st0_link; /* 0x108 */
volatile reg_cil_fsm_st1_link cil_fsm_st1_link; /* 0x10c */
volatile reg_phy_st0_link phy_st0_link; /* 0x110 */
volatile reg_phy_st1_link phy_st1_link; /* 0x114 */
volatile reg_phy_st2_link phy_st2_link; /* 0x118 */
volatile reg_phy_st3_link phy_st3_link; /* 0x11c */
volatile unsigned int reserved_4[3]; /* 0x120~0x128 */
volatile reg_cil_fsm1_link cil_fsm1_link; /* 0x12c */
volatile unsigned int reserved_5[48]; /* 0x130~0x1ec */
volatile reg_mipi_cil_int_raw_link mipi_cil_int_raw_link; /* 0x1f0 */
volatile reg_mipi_cil_int_link mipi_cil_int_link; /* 0x1f4 */
volatile reg_mipi_cil_int_msk_link mipi_cil_int_msk_link; /* 0x1f8 */
volatile unsigned int reserved_6; /* 0x1fc */
} mipi_rx_phy_cfg_t;
typedef struct {
volatile reg_mipi_interlaced mipi_interlaced; /* 0x1000 */
volatile unsigned int reserved_7[3]; /* 0x1004~0x100c */
volatile reg_mipi_frame_nun0 mipi_frame_nun0; /* 0x1010 */
volatile reg_mipi_frame_nun1 mipi_frame_nun1; /* 0x1014 */
volatile unsigned int reserved_8[2]; /* 0x1018~0x101c */
volatile reg_mipi_crc_intr_raw mipi_crc_intr_raw; /* 0x1020 */
volatile reg_mipi_crc_intr_st mipi_crc_intr_st; /* 0x1024 */
volatile reg_mipi_crc_intr_msk mipi_crc_intr_msk; /* 0x1028 */
volatile unsigned int reserved_9[53]; /* 0x102c~0x10fc */
volatile reg_mipi_userdef_dt mipi_userdef_dt; /* 0x1100 */
volatile reg_mipi_user_def mipi_user_def; /* 0x1104 */
volatile reg_mipi_ctrl_mode_hs mipi_ctrl_mode_hs; /* 0x1108 */
volatile reg_mipi_vhend_delay mipi_vhend_delay; /* 0x110c */
volatile unsigned int reserved_10[64]; /* 0x1110~0x120c */
volatile reg_mipi_crop_start_vc0 mipi_crop_start_vc0; /* 0x1210 */
volatile reg_mipi_crop_start_vc1 mipi_crop_start_vc1; /* 0x1214 */
volatile reg_mipi_crop_start_vc2 mipi_crop_start_vc2; /* 0x1218 */
volatile reg_mipi_crop_start_vc3 mipi_crop_start_vc3; /* 0x121c */
volatile reg_mipi_crop_imgsize_vc0 mipi_crop_imgsize_vc0; /* 0x1220 */
volatile reg_mipi_crop_imgsize_vc1 mipi_crop_imgsize_vc1; /* 0x1224 */
volatile reg_mipi_crop_imgsize_vc2 mipi_crop_imgsize_vc2; /* 0x1228 */
volatile reg_mipi_crop_imgsize_vc3 mipi_crop_imgsize_vc3; /* 0x122c */
volatile reg_mipi_ctrl_mode_pixel mipi_ctrl_mode_pixel; /* 0x1230 */
volatile unsigned int reserved_11[3]; /* 0x1234~0x123c */
volatile reg_mipi_dummy_pix_reg mipi_dummy_pix_reg; /* 0x1240 */
volatile unsigned int reserved_12[3]; /* 0x1244~0x124c */
volatile reg_mipi_imgsize0_statis mipi_imgsize0_statis; /* 0x1250 */
volatile reg_mipi_imgsize1_statis mipi_imgsize1_statis; /* 0x1254 */
volatile reg_mipi_imgsize2_statis mipi_imgsize2_statis; /* 0x1258 */
volatile reg_mipi_imgsize3_statis mipi_imgsize3_statis; /* 0x125c */
volatile unsigned int reserved_13[36]; /* 0x1260~0x12ec */
volatile reg_mipi_ctrl_int_raw mipi_ctrl_int_raw; /* 0x12f0 */
volatile reg_mipi_ctrl_int mipi_ctrl_int; /* 0x12f4 */
volatile reg_mipi_ctrl_int_msk mipi_ctrl_int_msk; /* 0x12f8 */
volatile unsigned int reserved_14[321]; /* 0x12fc~0x17fc */
volatile reg_lane_id0_chn lane_id0_chn; /* 0x1800 */
volatile unsigned int reserved_15[59]; /* 0x1804~0x18ec */
volatile reg_align_int_raw align_int_raw; /* 0x18f0 */
volatile reg_align_int align_int; /* 0x18f4 */
volatile reg_align_int_msk align_int_msk; /* 0x18f8 */
volatile unsigned int reserved_16; /* 0x18fc */
} mipi_rx_chn_regs_t1;
typedef struct {
volatile reg_d_p_swap_phy0123 d_p_swap_phy0123; /* 0x1900 */
volatile unsigned int reserved_17; /* 0x1904 */
volatile reg_phy_en phy_en; /* 0x1908 */
volatile reg_lane_en lane_en; /* 0x190c */
volatile reg_phy_cil_ctrl phy_cil_ctrl; /* 0x1910 */
volatile unsigned int reserved_18; /* 0x1914 */
volatile reg_phycfg_mode phycfg_mode; /* 0x1918 */
volatile reg_phycfg_en phycfg_en; /* 0x191c */
volatile reg_chn0_mem_ctrl chn0_mem_ctrl; /* 0x1920 */
volatile unsigned int reserved_19; /* 0x1924 */
volatile reg_chn1_mem_ctrl chn1_mem_ctrl; /* 0x1928 */
volatile unsigned int reserved_20; /* 0x192c */
volatile reg_chn2_mem_ctrl chn2_mem_ctrl; /* 0x1930 */
volatile unsigned int reserved_21; /* 0x1934 */
volatile reg_chn3_mem_ctrl chn3_mem_ctrl; /* 0x1938 */
volatile unsigned int reserved_22[13]; /* 0x193c~0x196c */
volatile reg_phy_cmos_lock phy_cmos_lock; /* 0x1970 */
volatile unsigned int reserved_23; /* 0x1974 */
volatile reg_phy_cmos_clk_mux phy_cmos_clk_mux; /* 0x1978 */
volatile unsigned int reserved_24; /* 0x197c */
volatile reg_mipi_test_phy mipi_test_phy; /* 0x1980 */
volatile unsigned int reserved_25[31]; /* 0x1984~0x19fc */
volatile reg_colorbar_ctrl colorbar_ctrl; /* 0x1a00 */
volatile reg_colorbar_init colorbar_init; /* 0x1a04 */
volatile reg_colorbar_v_blk colorbar_v_blk; /* 0x1a08 */
volatile reg_colorbar_h_blk colorbar_h_blk; /* 0x1a0c */
volatile reg_colorbar_img_size colorbar_img_size; /* 0x1a10 */
volatile unsigned int reserved_26[59]; /* 0x1a14~0x1afc */
volatile reg_phy0_test_out phy0_test_out; /* 0x1b00 */
volatile reg_phy1_test_out phy1_test_out; /* 0x1b04 */
volatile reg_phy2_test_out phy2_test_out; /* 0x1b08 */
volatile reg_phy3_test_out phy3_test_out; /* 0x1b0c */
volatile unsigned int reserved_27[184]; /* 0x1b10~0x1dec */
volatile reg_mipi_int_raw mipi_int_raw; /* 0x1df0 */
volatile reg_mipi_int_st mipi_int_st; /* 0x1df4 */
volatile reg_mipi_int_msk mipi_int_msk; /* 0x1df8 */
volatile unsigned int reserved_28[125]; /* 0x1dfc~0x1fec */
} mipi_rx_sys_regs_t;
typedef struct {
volatile reg_chn_int_raw chn_int_raw; /* 0x1ff0 */
volatile reg_chn_int chn_int; /* 0x1ff4 */
volatile reg_chn_int_mask chn_int_mask; /* 0x1ff8 */
volatile unsigned int reserved_13; /* 0x1ffc */
}mipi_rx_chn_regs_t2;
typedef struct {
mipi_rx_chn_regs_t1 mipi_chn_regs_1; /* 0x1000 ~ 0x18fc */
mipi_rx_sys_regs_t mipi_rx_sys_regs; /* 0x1900 ~ 0x1fec */
mipi_rx_chn_regs_t2 mipi_chn_regs_2; /* 0x1FF0 ~ 0x1ffc */
} mipi_rx_ctrl_regs_t;
// ==============================================================================
/* Define the global struct */
typedef struct {
mipi_rx_phy_cfg_t mipi_rx_phy_cfg[8]; /* 0x0 ~ 0x1fc, 0x200 ~ 0x3fc, 0x400 ~ 0x5fc, 0x600 ~ 0x7fc */
/* 0x800 ~ 0x9fc, 0xa00 ~ 0xbfc, 0xc00 ~ 0xdfc, 0xe00 ~ 0xffc */
mipi_rx_ctrl_regs_t mipi_rx_chn_regs[4]; /* 0x1000 ~ 0x1ffc, 0x2000 ~ 0x2ffc */
/* 0x3000 ~ 0x3ffc, 0x4000 ~ 0x4ffc */
} mipi_rx_regs_type_t;
#endif /* __MIPI_RX_REG_H__ */