esp-idf/components/soc/esp32c61/include/soc/gdma_struct.h

1282 lines
45 KiB
C

/**
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Group: Interrupt Registers */
/** Type of in_int_raw_chn register
* Raw interrupt status of RX channel 0
*/
typedef union {
struct {
/** in_done_chn_int_raw : R/WTC/SS; bitpos: [0]; default: 0;
* The raw interrupt status of AHB_DMA_IN_DONE_CHn_INT.
*/
uint32_t in_done_chn_int_raw:1;
/** in_suc_eof_chn_int_raw : R/WTC/SS; bitpos: [1]; default: 0;
* The raw interrupt status of AHB_DMA_IN_SUC_EOF_CHn_INT.
*/
uint32_t in_suc_eof_chn_int_raw:1;
/** in_err_eof_chn_int_raw : R/WTC/SS; bitpos: [2]; default: 0;
* The raw interrupt status of AHB_DMA_IN_ERR_EOF_CHn_INT.
*/
uint32_t in_err_eof_chn_int_raw:1;
/** in_dscr_err_chn_int_raw : R/WTC/SS; bitpos: [3]; default: 0;
* The raw interrupt status of AHB_DMA_IN_DSCR_ERR_CHn_INT.
*/
uint32_t in_dscr_err_chn_int_raw:1;
/** in_dscr_empty_chn_int_raw : R/WTC/SS; bitpos: [4]; default: 0;
* The raw interrupt status of AHB_DMA_IN_DSCR_EMPTY_CHn_INT.
*/
uint32_t in_dscr_empty_chn_int_raw:1;
/** infifo_ovf_chn_int_raw : R/WTC/SS; bitpos: [5]; default: 0;
* The raw interrupt status of AHB_DMA_INFIFO_OVF_CHn_INT.
*/
uint32_t infifo_ovf_chn_int_raw:1;
/** infifo_udf_chn_int_raw : R/WTC/SS; bitpos: [6]; default: 0;
* The raw interrupt status of AHB_DMA_INFIFO_UDF_CHn_INT.
*/
uint32_t infifo_udf_chn_int_raw:1;
uint32_t reserved_7:25;
};
uint32_t val;
} gdma_in_int_raw_chn_reg_t;
/** Type of in_int_st_chn register
* Masked interrupt status of RX channel 0
*/
typedef union {
struct {
/** in_done_chn_int_st : RO; bitpos: [0]; default: 0;
* The masked interrupt status of AHB_DMA_IN_DONE_CHn_INT.
*/
uint32_t in_done_chn_int_st:1;
/** in_suc_eof_chn_int_st : RO; bitpos: [1]; default: 0;
* The masked interrupt status of AHB_DMA_IN_SUC_EOF_CHn_INT.
*/
uint32_t in_suc_eof_chn_int_st:1;
/** in_err_eof_chn_int_st : RO; bitpos: [2]; default: 0;
* The masked interrupt status of AHB_DMA_IN_ERR_EOF_CHn_INT.
*/
uint32_t in_err_eof_chn_int_st:1;
/** in_dscr_err_chn_int_st : RO; bitpos: [3]; default: 0;
* The masked interrupt status of AHB_DMA_IN_DSCR_ERR_CHn_INT.
*/
uint32_t in_dscr_err_chn_int_st:1;
/** in_dscr_empty_chn_int_st : RO; bitpos: [4]; default: 0;
* The masked interrupt status of AHB_DMA_IN_DSCR_EMPTY_CHn_INT.
*/
uint32_t in_dscr_empty_chn_int_st:1;
/** infifo_ovf_chn_int_st : RO; bitpos: [5]; default: 0;
* The masked interrupt status of AHB_DMA_INFIFO_OVF_CHn_INT.
*/
uint32_t infifo_ovf_chn_int_st:1;
/** infifo_udf_chn_int_st : RO; bitpos: [6]; default: 0;
* The masked interrupt status of AHB_DMA_INFIFO_UDF_CHn_INT.
*/
uint32_t infifo_udf_chn_int_st:1;
uint32_t reserved_7:25;
};
uint32_t val;
} gdma_in_int_st_chn_reg_t;
/** Type of in_int_ena_chn register
* Interrupt enable bits of RX channel 0
*/
typedef union {
struct {
/** in_done_chn_int_ena : R/W; bitpos: [0]; default: 0;
* Write 1 to enable AHB_DMA_IN_DONE_CHn_INT.
*/
uint32_t in_done_chn_int_ena:1;
/** in_suc_eof_chn_int_ena : R/W; bitpos: [1]; default: 0;
* Write 1 to enable AHB_DMA_IN_SUC_EOF_CHn_INT.
*/
uint32_t in_suc_eof_chn_int_ena:1;
/** in_err_eof_chn_int_ena : R/W; bitpos: [2]; default: 0;
* Write 1 to enable AHB_DMA_IN_ERR_EOF_CHn_INT.
*/
uint32_t in_err_eof_chn_int_ena:1;
/** in_dscr_err_chn_int_ena : R/W; bitpos: [3]; default: 0;
* Write 1 to enable AHB_DMA_IN_DSCR_ERR_CHn_INT.
*/
uint32_t in_dscr_err_chn_int_ena:1;
/** in_dscr_empty_chn_int_ena : R/W; bitpos: [4]; default: 0;
* Write 1 to enable AHB_DMA_IN_DSCR_EMPTY_CHn_INT.
*/
uint32_t in_dscr_empty_chn_int_ena:1;
/** infifo_ovf_chn_int_ena : R/W; bitpos: [5]; default: 0;
* Write 1 to enable AHB_DMA_INFIFO_OVF_CHn_INT.
*/
uint32_t infifo_ovf_chn_int_ena:1;
/** infifo_udf_chn_int_ena : R/W; bitpos: [6]; default: 0;
* Write 1 to enable AHB_DMA_INFIFO_UDF_CHn_INT.
*/
uint32_t infifo_udf_chn_int_ena:1;
uint32_t reserved_7:25;
};
uint32_t val;
} gdma_in_int_ena_chn_reg_t;
/** Type of in_int_clr_chn register
* Interrupt clear bits of RX channel 0
*/
typedef union {
struct {
/** in_done_chn_int_clr : WT; bitpos: [0]; default: 0;
* Write 1 to clear AHB_DMA_IN_DONE_CHn_INT.
*/
uint32_t in_done_chn_int_clr:1;
/** in_suc_eof_chn_int_clr : WT; bitpos: [1]; default: 0;
* Write 1 to clear AHB_DMA_IN_SUC_EOF_CHn_INT.
*/
uint32_t in_suc_eof_chn_int_clr:1;
/** in_err_eof_chn_int_clr : WT; bitpos: [2]; default: 0;
* Write 1 to clear AHB_DMA_IN_ERR_EOF_CHn_INT.
*/
uint32_t in_err_eof_chn_int_clr:1;
/** in_dscr_err_chn_int_clr : WT; bitpos: [3]; default: 0;
* Write 1 to clear AHB_DMA_IN_DSCR_ERR_CHn_INT.
*/
uint32_t in_dscr_err_chn_int_clr:1;
/** in_dscr_empty_chn_int_clr : WT; bitpos: [4]; default: 0;
* Write 1 to clear AHB_DMA_IN_DSCR_EMPTY_CHn_INT.
*/
uint32_t in_dscr_empty_chn_int_clr:1;
/** infifo_ovf_chn_int_clr : WT; bitpos: [5]; default: 0;
* Write 1 to clear AHB_DMA_INFIFO_OVF_CHn_INT.
*/
uint32_t infifo_ovf_chn_int_clr:1;
/** infifo_udf_chn_int_clr : WT; bitpos: [6]; default: 0;
* Write 1 to clear AHB_DMA_INFIFO_UDF_CHn_INT.
*/
uint32_t infifo_udf_chn_int_clr:1;
uint32_t reserved_7:25;
};
uint32_t val;
} gdma_in_int_clr_chn_reg_t;
/** Type of out_int_raw_chn register
* Raw interrupt status of TX channel 0
*/
typedef union {
struct {
/** out_done_chn_int_raw : R/WTC/SS; bitpos: [0]; default: 0;
* The raw interrupt status of AHB_DMA_OUT_DONE_CHn_INT.
*/
uint32_t out_done_chn_int_raw:1;
/** out_eof_chn_int_raw : R/WTC/SS; bitpos: [1]; default: 0;
* The raw interrupt status of AHB_DMA_OUT_EOF_CHn_INT.
*/
uint32_t out_eof_chn_int_raw:1;
/** out_dscr_err_chn_int_raw : R/WTC/SS; bitpos: [2]; default: 0;
* The raw interrupt status of AHB_DMA_OUT_DSCR_ERR_CHn_INT.
*/
uint32_t out_dscr_err_chn_int_raw:1;
/** out_total_eof_chn_int_raw : R/WTC/SS; bitpos: [3]; default: 0;
* The raw interrupt status of AHB_DMA_OUT_TOTAL_EOF_CHn_INT.
*/
uint32_t out_total_eof_chn_int_raw:1;
/** outfifo_ovf_chn_int_raw : R/WTC/SS; bitpos: [4]; default: 0;
* The raw interrupt status of AHB_DMA_OUTFIFO_OVF_CHn_INT.
*/
uint32_t outfifo_ovf_chn_int_raw:1;
/** outfifo_udf_chn_int_raw : R/WTC/SS; bitpos: [5]; default: 0;
* The raw interrupt status of AHB_DMA_OUTFIFO_UDF_CHn_INT.
*/
uint32_t outfifo_udf_chn_int_raw:1;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_out_int_raw_chn_reg_t;
/** Type of out_int_st_chn register
* Masked interrupt status of TX channel 0
*/
typedef union {
struct {
/** out_done_chn_int_st : RO; bitpos: [0]; default: 0;
* The masked interrupt status of AHB_DMA_OUT_DONE_CHn_INT.
*/
uint32_t out_done_chn_int_st:1;
/** out_eof_chn_int_st : RO; bitpos: [1]; default: 0;
* The masked interrupt status of AHB_DMA_OUT_EOF_CHn_INT.
*/
uint32_t out_eof_chn_int_st:1;
/** out_dscr_err_chn_int_st : RO; bitpos: [2]; default: 0;
* The masked interrupt status of AHB_DMA_OUT_DSCR_ERR_CHn_INT.
*/
uint32_t out_dscr_err_chn_int_st:1;
/** out_total_eof_chn_int_st : RO; bitpos: [3]; default: 0;
* The masked interrupt status of AHB_DMA_OUT_TOTAL_EOF_CHn_INT.
*/
uint32_t out_total_eof_chn_int_st:1;
/** outfifo_ovf_chn_int_st : RO; bitpos: [4]; default: 0;
* The masked interrupt status of AHB_DMA_OUTFIFO_OVF_CHn_INT.
*/
uint32_t outfifo_ovf_chn_int_st:1;
/** outfifo_udf_chn_int_st : RO; bitpos: [5]; default: 0;
* The masked interrupt status of AHB_DMA_OUTFIFO_UDF_CHn_INT.
*/
uint32_t outfifo_udf_chn_int_st:1;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_out_int_st_chn_reg_t;
/** Type of out_int_ena_chn register
* Interrupt enable bits of TX channel 0
*/
typedef union {
struct {
/** out_done_chn_int_ena : R/W; bitpos: [0]; default: 0;
* Write 1 to enable AHB_DMA_OUT_DONE_CHn_INT.
*/
uint32_t out_done_chn_int_ena:1;
/** out_eof_chn_int_ena : R/W; bitpos: [1]; default: 0;
* Write 1 to enable AHB_DMA_OUT_EOF_CHn_INT.
*/
uint32_t out_eof_chn_int_ena:1;
/** out_dscr_err_chn_int_ena : R/W; bitpos: [2]; default: 0;
* Write 1 to enable AHB_DMA_OUT_DSCR_ERR_CHn_INT.
*/
uint32_t out_dscr_err_chn_int_ena:1;
/** out_total_eof_chn_int_ena : R/W; bitpos: [3]; default: 0;
* Write 1 to enable AHB_DMA_OUT_TOTAL_EOF_CHn_INT.
*/
uint32_t out_total_eof_chn_int_ena:1;
/** outfifo_ovf_chn_int_ena : R/W; bitpos: [4]; default: 0;
* Write 1 to enable AHB_DMA_OUTFIFO_OVF_CHn_INT.
*/
uint32_t outfifo_ovf_chn_int_ena:1;
/** outfifo_udf_chn_int_ena : R/W; bitpos: [5]; default: 0;
* Write 1 to enable AHB_DMA_OUTFIFO_UDF_CHn_INT.
*/
uint32_t outfifo_udf_chn_int_ena:1;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_out_int_ena_chn_reg_t;
/** Type of out_int_clr_chn register
* Interrupt clear bits of TX channel 0
*/
typedef union {
struct {
/** out_done_chn_int_clr : WT; bitpos: [0]; default: 0;
* Write 1 to clear AHB_DMA_OUT_DONE_CHn_INT.
*/
uint32_t out_done_chn_int_clr:1;
/** out_eof_chn_int_clr : WT; bitpos: [1]; default: 0;
* Write 1 to clear AHB_DMA_OUT_EOF_CHn_INT.
*/
uint32_t out_eof_chn_int_clr:1;
/** out_dscr_err_chn_int_clr : WT; bitpos: [2]; default: 0;
* Write 1 to clear AHB_DMA_OUT_DSCR_ERR_CHn_INT.
*/
uint32_t out_dscr_err_chn_int_clr:1;
/** out_total_eof_chn_int_clr : WT; bitpos: [3]; default: 0;
* Write 1 to clear AHB_DMA_OUT_TOTAL_EOF_CHn_INT.
*/
uint32_t out_total_eof_chn_int_clr:1;
/** outfifo_ovf_chn_int_clr : WT; bitpos: [4]; default: 0;
* Write 1 to clear AHB_DMA_OUTFIFO_OVF_CHn_INT.
*/
uint32_t outfifo_ovf_chn_int_clr:1;
/** outfifo_udf_chn_int_clr : WT; bitpos: [5]; default: 0;
* Write 1 to clear AHB_DMA_OUTFIFO_UDF_CHn_INT.
*/
uint32_t outfifo_udf_chn_int_clr:1;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_out_int_clr_chn_reg_t;
/** Group: Debug Registers */
/** Type of ahb_test register
* reserved
*/
typedef union {
struct {
/** ahb_testmode : R/W; bitpos: [2:0]; default: 0;
* reserved
*/
uint32_t ahb_testmode:3;
uint32_t reserved_3:1;
/** ahb_testaddr : R/W; bitpos: [5:4]; default: 0;
* reserved
*/
uint32_t ahb_testaddr:2;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_ahb_test_reg_t;
/** Group: Configuration Registers */
/** Type of misc_conf register
* Miscellaneous register
*/
typedef union {
struct {
/** ahbm_rst_inter : R/W; bitpos: [0]; default: 0;
* Write 1 and then 0 to reset the internal AHB FSM.
*/
uint32_t ahbm_rst_inter:1;
uint32_t reserved_1:1;
/** arb_pri_dis : R/W; bitpos: [2]; default: 0;
* Configures whether or not to disable the fixed-priority channel arbitration.\\0:
* Enable\\1: Disable\\
*/
uint32_t arb_pri_dis:1;
/** clk_en : R/W; bitpos: [3]; default: 0;
* Configures clock gating.\\0: Support clock only when the application writes
* registers.\\ 1: Always force the clock on for registers.\\
*/
uint32_t clk_en:1;
uint32_t reserved_4:28;
};
uint32_t val;
} gdma_misc_conf_reg_t;
/** Type of in_conf0_chn register
* Configuration register 0 of RX channel 0
*/
typedef union {
struct {
/** in_rst_chn : R/W; bitpos: [0]; default: 0;
* Write 1 and then 0 to reset AHB_DMA channel 0 RX FSM and RX FIFO pointer.
*/
uint32_t in_rst_chn:1;
/** in_loop_test_chn : R/W; bitpos: [1]; default: 0;
* Reserved.
*/
uint32_t in_loop_test_chn:1;
/** indscr_burst_en_chn : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable INCR burst transfer for RX channel n to read
* descriptors.\\0: Disable\\1: Enable\\
*/
uint32_t indscr_burst_en_chn:1;
uint32_t reserved_3:1;
/** mem_trans_en_chn : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable memory-to-memory data transfer.\\0: Disable\\1:
* Enable\\
*/
uint32_t mem_trans_en_chn:1;
/** in_etm_en_chn : R/W; bitpos: [5]; default: 0;
* Configures whether or not to enable ETM control for RX channeln.\\0: Disable\\1:
* Enable\\
*/
uint32_t in_etm_en_chn:1;
/** in_data_burst_mode_sel_chn : R/W; bitpos: [7:6]; default: 0;
* Configures max burst size for Rx channeln.\\2'b00: single\\ 2'b01: incr4\\ 2'b10:
* incr8\\ 2'b11: incr16\\
*/
uint32_t in_data_burst_mode_sel_chn:2;
uint32_t reserved_8:24;
};
uint32_t val;
} gdma_in_conf0_chn_reg_t;
/** Type of in_conf1_chn register
* Configuration register 1 of RX channel 0
*/
typedef union {
struct {
uint32_t reserved_0:12;
/** in_check_owner_chn : R/W; bitpos: [12]; default: 0;
* Configures whether or not to enable owner bit check for RX channel n.\\0:
* Disable\\1: Enable\\
*/
uint32_t in_check_owner_chn:1;
uint32_t reserved_13:19;
};
uint32_t val;
} gdma_in_conf1_chn_reg_t;
/** Type of in_pop_chn register
* Pop control register of RX channel 0
*/
typedef union {
struct {
/** infifo_rdata_chn : RO; bitpos: [11:0]; default: 2048;
* Represents the data popped from AHB_DMA FIFO.
*/
uint32_t infifo_rdata_chn:12;
/** infifo_pop_chn : WT; bitpos: [12]; default: 0;
* Configures whether or not to pop data from AHB_DMA FIFO.\\0: Invalid. No effect\\1:
* Pop\\
*/
uint32_t infifo_pop_chn:1;
uint32_t reserved_13:19;
};
uint32_t val;
} gdma_in_pop_chn_reg_t;
/** Type of in_link_chn register
* Linked list descriptor configuration and control register of RX channel 0
*/
typedef union {
struct {
/** inlink_auto_ret_chn : R/W; bitpos: [0]; default: 1;
* Configures whether or not to return to current receive descriptor's address when
* there are some errors in current receiving data.\\0: Not return\\1: Return\\
*/
uint32_t inlink_auto_ret_chn:1;
/** inlink_stop_chn : WT; bitpos: [1]; default: 0;
* Configures whether or not to stop AHB_DMA's RX channel n from receiving data.\\0:
* Invalid. No effect\\1: Stop\\
*/
uint32_t inlink_stop_chn:1;
/** inlink_start_chn : WT; bitpos: [2]; default: 0;
* Configures whether or not to enable AHB_DMA's RX channel n for data transfer.\\0:
* Disable\\1: Enable\\
*/
uint32_t inlink_start_chn:1;
/** inlink_restart_chn : WT; bitpos: [3]; default: 0;
* Configures whether or not to restart RX channel n for AHB_DMA transfer.\\0:
* Invalid. No effect\\1: Restart\\
*/
uint32_t inlink_restart_chn:1;
/** inlink_park_chn : RO; bitpos: [4]; default: 1;
* Represents the status of the receive descriptor's FSM.\\0: Running\\1: Idle\\
*/
uint32_t inlink_park_chn:1;
uint32_t reserved_5:27;
};
uint32_t val;
} gdma_in_link_chn_reg_t;
/** Type of out_conf0_ch0 register
* Configuration register 0 of TX channel 0
*/
typedef union {
struct {
/** out_rst_ch0 : R/W; bitpos: [0]; default: 0;
* Configures the reset state of AHB_DMA channel 0 TX FSM and TX FIFO pointer.\\0:
* Release reset\\1: Reset\\
*/
uint32_t out_rst_ch0:1;
/** out_loop_test_ch0 : R/W; bitpos: [1]; default: 0;
* Reserved.
*/
uint32_t out_loop_test_ch0:1;
/** out_auto_wrback_ch0 : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable automatic outlink write-back when all the data
* in TX FIFO has been transmitted.\\0: Disable\\1: Enable\\
*/
uint32_t out_auto_wrback_ch0:1;
/** out_eof_mode_ch0 : R/W; bitpos: [3]; default: 1;
* Configures when to generate EOF flag.\\0: EOF flag for TX channel 0 is generated
* when data to be transmitted has been pushed into FIFO in AHB_DMA.\\ 1: EOF flag for
* TX channel 0 is generated when data to be transmitted has been popped from FIFO in
* AHB_DMA.\\
*/
uint32_t out_eof_mode_ch0:1;
/** outdscr_burst_en_ch0 : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable INCR burst transfer for TX channel 0 reading
* descriptors.\\0: Disable\\1: Enable\\
*/
uint32_t outdscr_burst_en_ch0:1;
uint32_t reserved_5:1;
/** out_etm_en_ch0 : R/W; bitpos: [6]; default: 0;
* Configures whether or not to enable ETM control for TX channel 0.\\0: Disable\\1:
* Enable\\
*/
uint32_t out_etm_en_ch0:1;
uint32_t reserved_7:1;
/** out_data_burst_mode_sel_ch0 : R/W; bitpos: [9:8]; default: 0;
* Configures max burst size for TX channel0.\\2'b00: single\\ 2'b01: incr4\\ 2'b10:
* incr8\\ 2'b11: incr16\\
*/
uint32_t out_data_burst_mode_sel_ch0:2;
uint32_t reserved_10:22;
};
uint32_t val;
} gdma_out_conf0_ch0_reg_t;
/** Type of out_conf1_chn register
* Configuration register 1 of TX channel 0
*/
typedef union {
struct {
uint32_t reserved_0:12;
/** out_check_owner_chn : R/W; bitpos: [12]; default: 0;
* Configures whether or not to enable owner bit check for TX channel n.\\0:
* Disable\\1: Enable\\
*/
uint32_t out_check_owner_chn:1;
uint32_t reserved_13:19;
};
uint32_t val;
} gdma_out_conf1_chn_reg_t;
/** Type of out_push_chn register
* Push control register of TX channel 0
*/
typedef union {
struct {
/** outfifo_wdata_chn : R/W; bitpos: [8:0]; default: 0;
* Configures the data that need to be pushed into AHB_DMA FIFO.
*/
uint32_t outfifo_wdata_chn:9;
/** outfifo_push_chn : WT; bitpos: [9]; default: 0;
* Configures whether or not to push data into AHB_DMA FIFO.\\0: Invalid. No
* effect\\1: Push\\
*/
uint32_t outfifo_push_chn:1;
uint32_t reserved_10:22;
};
uint32_t val;
} gdma_out_push_chn_reg_t;
/** Type of out_link_chn register
* Linked list descriptor configuration and control register of TX channel 0
*/
typedef union {
struct {
/** outlink_stop_chn : WT; bitpos: [0]; default: 0;
* Configures whether or not to stop AHB_DMA's TX channel n from transmitting
* data.\\0: Invalid. No effect\\1: Stop\\
*/
uint32_t outlink_stop_chn:1;
/** outlink_start_chn : WT; bitpos: [1]; default: 0;
* Configures whether or not to enable AHB_DMA's TX channel n for data transfer.\\0:
* Disable\\1: Enable\\
*/
uint32_t outlink_start_chn:1;
/** outlink_restart_chn : WT; bitpos: [2]; default: 0;
* Configures whether or not to restart TX channel n for AHB_DMA transfer.\\0:
* Invalid. No effect\\1: Restart\\
*/
uint32_t outlink_restart_chn:1;
/** outlink_park_chn : RO; bitpos: [3]; default: 1;
* Represents the status of the transmit descriptor's FSM.\\0: Running\\1: Idle\\
*/
uint32_t outlink_park_chn:1;
uint32_t reserved_4:28;
};
uint32_t val;
} gdma_out_link_chn_reg_t;
/** Type of out_conf0_chn register
* Configuration register 0 of TX channel 1
*/
typedef union {
struct {
/** out_rst_chn : R/W; bitpos: [0]; default: 0;
* Configures the reset state of AHB_DMA channel n TX FSM and TX FIFO pointer.\\0:
* Release reset\\1: Reset\\
*/
uint32_t out_rst_chn:1;
/** out_loop_test_chn : R/W; bitpos: [1]; default: 0;
* Reserved.
*/
uint32_t out_loop_test_chn:1;
/** out_auto_wrback_chn : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable automatic outlink write-back when all the data
* in TX FIFO has been transmitted.\\0: Disable\\1: Enable\\
*/
uint32_t out_auto_wrback_chn:1;
/** out_eof_mode_chn : R/W; bitpos: [3]; default: 1;
* Configures when to generate EOF flag.\\0: EOF flag for TX channel n is generated
* when data to be transmitted has been pushed into FIFO in AHB_DMA.\\ 1: EOF flag for
* TX channel n is generated when data to be transmitted has been popped from FIFO in
* AHB_DMA.\\
*/
uint32_t out_eof_mode_chn:1;
/** outdscr_burst_en_chn : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable INCR burst transfer for TX channel n reading
* descriptors.\\0: Disable\\1: Enable\\
*/
uint32_t outdscr_burst_en_chn:1;
uint32_t reserved_5:1;
/** out_etm_en_chn : R/W; bitpos: [6]; default: 0;
* Configures whether or not to enable ETM control for TX channel n.\\0: Disable\\1:
* Enable\\
*/
uint32_t out_etm_en_chn:1;
uint32_t reserved_7:1;
/** out_data_burst_mode_sel_chn : R/W; bitpos: [9:8]; default: 0;
* Configures max burst size for TX channeln.\\2'b00: single\\ 2'b01: incr4\\ 2'b10:
* incr8\\ 2'b11: incr16\\
*/
uint32_t out_data_burst_mode_sel_chn:2;
uint32_t reserved_10:22;
};
uint32_t val;
} gdma_out_conf0_chn_reg_t;
/** Type of tx_ch_arb_weigh_chn register
* TX channel 0 arbitration weight configuration register
*/
typedef union {
struct {
/** tx_ch_arb_weigh_chn : R/W; bitpos: [3:0]; default: 0;
* Configures the weight(i.e the number of tokens) of TX channeln
*/
uint32_t tx_ch_arb_weigh_chn:4;
uint32_t reserved_4:28;
};
uint32_t val;
} gdma_tx_ch_arb_weigh_chn_reg_t;
/** Type of tx_arb_weigh_opt_dir_chn register
* TX channel 0 weight arbitration optimization enable register
*/
typedef union {
struct {
/** tx_arb_weigh_opt_dir_chn : R/W; bitpos: [0]; default: 0;
* reserved
*/
uint32_t tx_arb_weigh_opt_dir_chn:1;
uint32_t reserved_1:31;
};
uint32_t val;
} gdma_tx_arb_weigh_opt_dir_chn_reg_t;
/** Type of rx_ch_arb_weigh_chn register
* RX channel 0 arbitration weight configuration register
*/
typedef union {
struct {
/** rx_ch_arb_weigh_chn : R/W; bitpos: [3:0]; default: 0;
* Configures the weight(i.e the number of tokens) of RX channeln
*/
uint32_t rx_ch_arb_weigh_chn:4;
uint32_t reserved_4:28;
};
uint32_t val;
} gdma_rx_ch_arb_weigh_chn_reg_t;
/** Type of rx_arb_weigh_opt_dir_chn register
* RX channel 0 weight arbitration optimization enable register
*/
typedef union {
struct {
/** rx_arb_weigh_opt_dir_chn : R/W; bitpos: [0]; default: 0;
* reserved
*/
uint32_t rx_arb_weigh_opt_dir_chn:1;
uint32_t reserved_1:31;
};
uint32_t val;
} gdma_rx_arb_weigh_opt_dir_chn_reg_t;
/** Type of in_link_addr_chn register
* Link list descriptor address configuration of RX channel 0
*/
typedef union {
struct {
/** inlink_addr_chn : R/W; bitpos: [31:0]; default: 0;
* Configures the 32 bits of the first receive descriptor's address.
*/
uint32_t inlink_addr_chn:32;
};
uint32_t val;
} gdma_in_link_addr_chn_reg_t;
/** Type of out_link_addr_chn register
* Link list descriptor address configuration of TX channel 0
*/
typedef union {
struct {
/** outlink_addr_chn : R/W; bitpos: [31:0]; default: 0;
* Configures the 32 bits of the first receive descriptor's address.
*/
uint32_t outlink_addr_chn:32;
};
uint32_t val;
} gdma_out_link_addr_chn_reg_t;
/** Type of intr_mem_start_addr register
* Accessible address space start address configuration register
*/
typedef union {
struct {
/** access_intr_mem_start_addr : R/W; bitpos: [31:0]; default: 0;
* Configures the start address of accessible address space.
*/
uint32_t access_intr_mem_start_addr:32;
};
uint32_t val;
} gdma_intr_mem_start_addr_reg_t;
/** Type of intr_mem_end_addr register
* Accessible address space end address configuration register
*/
typedef union {
struct {
/** access_intr_mem_end_addr : R/W; bitpos: [31:0]; default: 4294967295;
* Configures the end address of accessible address space.
*/
uint32_t access_intr_mem_end_addr:32;
};
uint32_t val;
} gdma_intr_mem_end_addr_reg_t;
/** Type of arb_timeout_tx register
* TX arbitration timeout configuration register
*/
typedef union {
struct {
/** arb_timeout_tx : R/W; bitpos: [15:0]; default: 0;
* Configures the time slot for TX. Measurement unit: AHB bus clock cycle.
*/
uint32_t arb_timeout_tx:16;
uint32_t reserved_16:16;
};
uint32_t val;
} gdma_arb_timeout_tx_reg_t;
/** Type of arb_timeout_rx register
* RX arbitration timeout configuration register
*/
typedef union {
struct {
/** arb_timeout_rx : R/W; bitpos: [15:0]; default: 0;
* Configures the time slot for RX. Measurement unit: AHB bus clock cycle.
*/
uint32_t arb_timeout_rx:16;
uint32_t reserved_16:16;
};
uint32_t val;
} gdma_arb_timeout_rx_reg_t;
/** Type of weight_en_tx register
* TX weight arbitration enable register
*/
typedef union {
struct {
/** weight_en_tx : R/W; bitpos: [0]; default: 0;
* Configures whether to enable weight arbitration for TX.\\0: Disable\\1: Enable\\
*/
uint32_t weight_en_tx:1;
uint32_t reserved_1:31;
};
uint32_t val;
} gdma_weight_en_tx_reg_t;
/** Type of weight_en_rx register
* RX weight arbitration enable register
*/
typedef union {
struct {
/** weight_en_rx : R/W; bitpos: [0]; default: 0;
* Configures whether to enable weight arbitration for RX.\\0: Disable\\1: Enable\\
*/
uint32_t weight_en_rx:1;
uint32_t reserved_1:31;
};
uint32_t val;
} gdma_weight_en_rx_reg_t;
/** Group: Version Registers */
/** Type of date register
* Version control register
*/
typedef union {
struct {
/** date : R/W; bitpos: [31:0]; default: 36770448;
* Version control register.
*/
uint32_t date:32;
};
uint32_t val;
} gdma_date_reg_t;
/** Group: Status Registers */
/** Type of infifo_status_chn register
* Receive FIFO status of RX channel 0
*/
typedef union {
struct {
/** infifo_full_chn : RO; bitpos: [0]; default: 1;
* Represents whether or not L1 RX FIFO is full.\\0: Not Full\\1: Full\\
*/
uint32_t infifo_full_chn:1;
/** infifo_empty_chn : RO; bitpos: [1]; default: 1;
* Represents whether or not L1 RX FIFO is empty.\\0: Not empty\\1: Empty\\
*/
uint32_t infifo_empty_chn:1;
uint32_t reserved_2:6;
/** infifo_cnt_chn : RO; bitpos: [14:8]; default: 0;
* Represents the number of data bytes in L1 RX FIFO for RX channel n.
*/
uint32_t infifo_cnt_chn:7;
uint32_t reserved_15:8;
/** in_remain_under_1b_chn : RO; bitpos: [23]; default: 1;
* reserved
*/
uint32_t in_remain_under_1b_chn:1;
/** in_remain_under_2b_chn : RO; bitpos: [24]; default: 1;
* reserved
*/
uint32_t in_remain_under_2b_chn:1;
/** in_remain_under_3b_chn : RO; bitpos: [25]; default: 1;
* reserved
*/
uint32_t in_remain_under_3b_chn:1;
/** in_remain_under_4b_chn : RO; bitpos: [26]; default: 1;
* reserved
*/
uint32_t in_remain_under_4b_chn:1;
/** in_buf_hungry_chn : RO; bitpos: [27]; default: 0;
* reserved
*/
uint32_t in_buf_hungry_chn:1;
uint32_t reserved_28:4;
};
uint32_t val;
} gdma_infifo_status_chn_reg_t;
/** Type of in_state_chn register
* Receive status of RX channel 0
*/
typedef union {
struct {
/** inlink_dscr_addr_chn : RO; bitpos: [17:0]; default: 0;
* Represents the address of the lower 18 bits of the next receive descriptor to be
* processed.
*/
uint32_t inlink_dscr_addr_chn:18;
/** in_dscr_state_chn : RO; bitpos: [19:18]; default: 0;
* reserved
*/
uint32_t in_dscr_state_chn:2;
/** in_state_chn : RO; bitpos: [22:20]; default: 0;
* reserved
*/
uint32_t in_state_chn:3;
uint32_t reserved_23:9;
};
uint32_t val;
} gdma_in_state_chn_reg_t;
/** Type of in_suc_eof_des_addr_chn register
* Receive descriptor address when EOF occurs on RX channel 0
*/
typedef union {
struct {
/** in_suc_eof_des_addr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the receive descriptor when the EOF bit in this
* descriptor is 1.
*/
uint32_t in_suc_eof_des_addr_chn:32;
};
uint32_t val;
} gdma_in_suc_eof_des_addr_chn_reg_t;
/** Type of in_err_eof_des_addr_chn register
* Receive descriptor address when errors occur of RX channel 0
*/
typedef union {
struct {
/** in_err_eof_des_addr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the receive descriptor when there are some errors in the
* currently received data.
*/
uint32_t in_err_eof_des_addr_chn:32;
};
uint32_t val;
} gdma_in_err_eof_des_addr_chn_reg_t;
/** Type of in_dscr_chn register
* Current receive descriptor address of RX channel 0
*/
typedef union {
struct {
/** inlink_dscr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the next receive descriptor x+1 pointed by the current
* receive descriptor that has already been fetched.
*/
uint32_t inlink_dscr_chn:32;
};
uint32_t val;
} gdma_in_dscr_chn_reg_t;
/** Type of in_dscr_bf0_chn register
* The last receive descriptor address of RX channel 0
*/
typedef union {
struct {
/** inlink_dscr_bf0_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the current receive descriptor x that has already been
* fetched.
*/
uint32_t inlink_dscr_bf0_chn:32;
};
uint32_t val;
} gdma_in_dscr_bf0_chn_reg_t;
/** Type of in_dscr_bf1_chn register
* The second-to-last receive descriptor address of RX channel 0
*/
typedef union {
struct {
/** inlink_dscr_bf1_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the previous receive descriptor x-1 that has already been
* fetched.
*/
uint32_t inlink_dscr_bf1_chn:32;
};
uint32_t val;
} gdma_in_dscr_bf1_chn_reg_t;
/** Type of in_done_des_addr_chn register
* RX_done Inlink descriptor address of RX channel 0
*/
typedef union {
struct {
/** in_done_des_addr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the inlink descriptor when this descriptor is completed .
*/
uint32_t in_done_des_addr_chn:32;
};
uint32_t val;
} gdma_in_done_des_addr_chn_reg_t;
/** Type of outfifo_status_chn register
* Transmit FIFO status of TX channel 0
*/
typedef union {
struct {
/** outfifo_full_chn : RO; bitpos: [0]; default: 0;
* Represents whether or not L1 TX FIFO is full.\\0: Not Full\\1: Full\\
*/
uint32_t outfifo_full_chn:1;
/** outfifo_empty_chn : RO; bitpos: [1]; default: 1;
* Represents whether or not L1 TX FIFO is empty.\\0: Not empty\\1: Empty\\
*/
uint32_t outfifo_empty_chn:1;
uint32_t reserved_2:6;
/** outfifo_cnt_chn : RO; bitpos: [14:8]; default: 0;
* Represents the number of data bytes in L1 TX FIFO for TX channel n.
*/
uint32_t outfifo_cnt_chn:7;
uint32_t reserved_15:8;
/** out_remain_under_1b_chn : RO; bitpos: [23]; default: 1;
* Reserved.
*/
uint32_t out_remain_under_1b_chn:1;
/** out_remain_under_2b_chn : RO; bitpos: [24]; default: 1;
* Reserved.
*/
uint32_t out_remain_under_2b_chn:1;
/** out_remain_under_3b_chn : RO; bitpos: [25]; default: 1;
* Reserved.
*/
uint32_t out_remain_under_3b_chn:1;
/** out_remain_under_4b_chn : RO; bitpos: [26]; default: 1;
* Reserved.
*/
uint32_t out_remain_under_4b_chn:1;
uint32_t reserved_27:5;
};
uint32_t val;
} gdma_outfifo_status_chn_reg_t;
/** Type of out_state_chn register
* Transmit status of TX channel 0
*/
typedef union {
struct {
/** outlink_dscr_addr_chn : RO; bitpos: [17:0]; default: 0;
* Represents the lower 18 bits of the address of the next transmit descriptor to be
* processed.
*/
uint32_t outlink_dscr_addr_chn:18;
/** out_dscr_state_chn : RO; bitpos: [19:18]; default: 0;
* reserved
*/
uint32_t out_dscr_state_chn:2;
/** out_state_chn : RO; bitpos: [22:20]; default: 0;
* reserved
*/
uint32_t out_state_chn:3;
uint32_t reserved_23:9;
};
uint32_t val;
} gdma_out_state_chn_reg_t;
/** Type of out_eof_des_addr_chn register
* Transmit descriptor address when EOF occurs on TX channel 0
*/
typedef union {
struct {
/** out_eof_des_addr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the transmit descriptor when the EOF bit in this
* descriptor is 1.
*/
uint32_t out_eof_des_addr_chn:32;
};
uint32_t val;
} gdma_out_eof_des_addr_chn_reg_t;
/** Type of out_eof_bfr_des_addr_chn register
* The last transmit descriptor address when EOF occurs on TX channel 0
*/
typedef union {
struct {
/** out_eof_bfr_des_addr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the transmit descriptor before the last transmit
* descriptor.
*/
uint32_t out_eof_bfr_des_addr_chn:32;
};
uint32_t val;
} gdma_out_eof_bfr_des_addr_chn_reg_t;
/** Type of out_dscr_chn register
* Current transmit descriptor address of TX channel 0
*/
typedef union {
struct {
/** outlink_dscr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the next transmit descriptor y+1 pointed by the current
* transmit descriptor that has already been fetched.
*/
uint32_t outlink_dscr_chn:32;
};
uint32_t val;
} gdma_out_dscr_chn_reg_t;
/** Type of out_dscr_bf0_chn register
* The last transmit descriptor address of TX channel 0
*/
typedef union {
struct {
/** outlink_dscr_bf0_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the current transmit descriptor y that has already been
* fetched.
*/
uint32_t outlink_dscr_bf0_chn:32;
};
uint32_t val;
} gdma_out_dscr_bf0_chn_reg_t;
/** Type of out_dscr_bf1_chn register
* The second-to-last transmit descriptor address of TX channel 0
*/
typedef union {
struct {
/** outlink_dscr_bf1_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the previous transmit descriptor y-1 that has already
* been fetched.
*/
uint32_t outlink_dscr_bf1_chn:32;
};
uint32_t val;
} gdma_out_dscr_bf1_chn_reg_t;
/** Type of out_done_des_addr_chn register
* TX done outlink descriptor address of TX channel 0
*/
typedef union {
struct {
/** out_done_des_addr_chn : RO; bitpos: [31:0]; default: 0;
* Represents the address of the outlink descriptor when this descriptor is completed.
*/
uint32_t out_done_des_addr_chn:32;
};
uint32_t val;
} gdma_out_done_des_addr_chn_reg_t;
/** Group: Priority Registers */
/** Type of in_pri_chn register
* Priority register of RX channel 0
*/
typedef union {
struct {
/** rx_pri_chn : R/W; bitpos: [3:0]; default: 0;
* Configures the priority of RX channel n.The larger of the value, the higher of the
* priority.
*/
uint32_t rx_pri_chn:4;
uint32_t reserved_4:28;
};
uint32_t val;
} gdma_in_pri_chn_reg_t;
/** Type of out_pri_chn register
* Priority register of TX channel 0
*/
typedef union {
struct {
/** tx_pri_chn : R/W; bitpos: [3:0]; default: 0;
* Configures the priority of TX channel n.The larger of the value, the higher of the
* priority.
*/
uint32_t tx_pri_chn:4;
uint32_t reserved_4:28;
};
uint32_t val;
} gdma_out_pri_chn_reg_t;
/** Group: Peripheral Select Registers */
/** Type of in_peri_sel_chn register
* Peripheral selection register of RX channel 0
*/
typedef union {
struct {
/** peri_in_sel_chn : R/W; bitpos: [5:0]; default: 63;
* Configures the peripheral connected to RX channel n.\\ 0: Dummy\\ 1: SPI2\\ 2:
* UHCI0\\ 3: I2S0\\ 4: Dummy\\ 5: Dummy\\ 6: AES\\ 7: SHA\\ 8: ADC_DAC\\ 9: PARL_IO\\
* 10: Dummy\\ 11~15: Dummy\\
*/
uint32_t peri_in_sel_chn:6;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_in_peri_sel_chn_reg_t;
/** Type of out_peri_sel_chn register
* Peripheral selection register of TX channel 0
*/
typedef union {
struct {
/** peri_out_sel_chn : R/W; bitpos: [5:0]; default: 63;
* Configures the peripheral connected to TX channel n.\\ 0: Dummy\\ 1: SPI2\\ 2:
* UHCI0\\ 3: I2S0\\ 4: Dummy\\ 5: Dummy\\ 6: AES\\ 7: SHA\\ 8: ADC_DAC\\ 9: PARL_IO\\
* 10: Dummy\\ 11~15: Dummy\\
*/
uint32_t peri_out_sel_chn:6;
uint32_t reserved_6:26;
};
uint32_t val;
} gdma_out_peri_sel_chn_reg_t;
typedef struct {
volatile gdma_in_int_raw_chn_reg_t in_int_raw_ch0;
volatile gdma_in_int_st_chn_reg_t in_int_st_ch0;
volatile gdma_in_int_ena_chn_reg_t in_int_ena_ch0;
volatile gdma_in_int_clr_chn_reg_t in_int_clr_ch0;
volatile gdma_in_int_raw_chn_reg_t in_int_raw_ch1;
volatile gdma_in_int_st_chn_reg_t in_int_st_ch1;
volatile gdma_in_int_ena_chn_reg_t in_int_ena_ch1;
volatile gdma_in_int_clr_chn_reg_t in_int_clr_ch1;
uint32_t reserved_020[4];
volatile gdma_out_int_raw_chn_reg_t out_int_raw_ch0;
volatile gdma_out_int_st_chn_reg_t out_int_st_ch0;
volatile gdma_out_int_ena_chn_reg_t out_int_ena_ch0;
volatile gdma_out_int_clr_chn_reg_t out_int_clr_ch0;
volatile gdma_out_int_raw_chn_reg_t out_int_raw_ch1;
volatile gdma_out_int_st_chn_reg_t out_int_st_ch1;
volatile gdma_out_int_ena_chn_reg_t out_int_ena_ch1;
volatile gdma_out_int_clr_chn_reg_t out_int_clr_ch1;
uint32_t reserved_050[4];
volatile gdma_ahb_test_reg_t ahb_test;
volatile gdma_misc_conf_reg_t misc_conf;
volatile gdma_date_reg_t date;
uint32_t reserved_06c;
volatile gdma_in_conf0_chn_reg_t in_conf0_ch0;
volatile gdma_in_conf1_chn_reg_t in_conf1_ch0;
volatile gdma_infifo_status_chn_reg_t infifo_status_ch0;
volatile gdma_in_pop_chn_reg_t in_pop_ch0;
volatile gdma_in_link_chn_reg_t in_link_ch0;
volatile gdma_in_state_chn_reg_t in_state_ch0;
volatile gdma_in_suc_eof_des_addr_chn_reg_t in_suc_eof_des_addr_ch0;
volatile gdma_in_err_eof_des_addr_chn_reg_t in_err_eof_des_addr_ch0;
volatile gdma_in_dscr_chn_reg_t in_dscr_ch0;
volatile gdma_in_dscr_bf0_chn_reg_t in_dscr_bf0_ch0;
volatile gdma_in_dscr_bf1_chn_reg_t in_dscr_bf1_ch0;
volatile gdma_in_pri_chn_reg_t in_pri_ch0;
volatile gdma_in_peri_sel_chn_reg_t in_peri_sel_ch0;
uint32_t reserved_0a4[3];
volatile gdma_in_done_des_addr_chn_reg_t in_done_des_addr_ch0;
uint32_t reserved_0b4[7];
volatile gdma_out_conf0_ch0_reg_t out_conf0_ch0;
volatile gdma_out_conf1_chn_reg_t out_conf1_ch0;
volatile gdma_outfifo_status_chn_reg_t outfifo_status_ch0;
volatile gdma_out_push_chn_reg_t out_push_ch0;
volatile gdma_out_link_chn_reg_t out_link_ch0;
volatile gdma_out_state_chn_reg_t out_state_ch0;
volatile gdma_out_eof_des_addr_chn_reg_t out_eof_des_addr_ch0;
volatile gdma_out_eof_bfr_des_addr_chn_reg_t out_eof_bfr_des_addr_ch0;
volatile gdma_out_dscr_chn_reg_t out_dscr_ch0;
volatile gdma_out_dscr_bf0_chn_reg_t out_dscr_bf0_ch0;
volatile gdma_out_dscr_bf1_chn_reg_t out_dscr_bf1_ch0;
volatile gdma_out_pri_chn_reg_t out_pri_ch0;
volatile gdma_out_peri_sel_chn_reg_t out_peri_sel_ch0;
uint32_t reserved_104[3];
volatile gdma_out_done_des_addr_chn_reg_t out_done_des_addr_ch0;
uint32_t reserved_114[7];
volatile gdma_in_conf0_chn_reg_t in_conf0_ch1;
volatile gdma_in_conf1_chn_reg_t in_conf1_ch1;
volatile gdma_infifo_status_chn_reg_t infifo_status_ch1;
volatile gdma_in_pop_chn_reg_t in_pop_ch1;
volatile gdma_in_link_chn_reg_t in_link_ch1;
volatile gdma_in_state_chn_reg_t in_state_ch1;
volatile gdma_in_suc_eof_des_addr_chn_reg_t in_suc_eof_des_addr_ch1;
volatile gdma_in_err_eof_des_addr_chn_reg_t in_err_eof_des_addr_ch1;
volatile gdma_in_dscr_chn_reg_t in_dscr_ch1;
volatile gdma_in_dscr_bf0_chn_reg_t in_dscr_bf0_ch1;
volatile gdma_in_dscr_bf1_chn_reg_t in_dscr_bf1_ch1;
volatile gdma_in_pri_chn_reg_t in_pri_ch1;
volatile gdma_in_peri_sel_chn_reg_t in_peri_sel_ch1;
uint32_t reserved_164[3];
volatile gdma_in_done_des_addr_chn_reg_t in_done_des_addr_ch1;
uint32_t reserved_174[7];
volatile gdma_out_conf0_chn_reg_t out_conf0_ch1;
volatile gdma_out_conf1_chn_reg_t out_conf1_ch1;
volatile gdma_outfifo_status_chn_reg_t outfifo_status_ch1;
volatile gdma_out_push_chn_reg_t out_push_ch1;
volatile gdma_out_link_chn_reg_t out_link_ch1;
volatile gdma_out_state_chn_reg_t out_state_ch1;
volatile gdma_out_eof_des_addr_chn_reg_t out_eof_des_addr_ch1;
volatile gdma_out_eof_bfr_des_addr_chn_reg_t out_eof_bfr_des_addr_ch1;
volatile gdma_out_dscr_chn_reg_t out_dscr_ch1;
volatile gdma_out_dscr_bf0_chn_reg_t out_dscr_bf0_ch1;
volatile gdma_out_dscr_bf1_chn_reg_t out_dscr_bf1_ch1;
volatile gdma_out_pri_chn_reg_t out_pri_ch1;
volatile gdma_out_peri_sel_chn_reg_t out_peri_sel_ch1;
uint32_t reserved_1c4[3];
volatile gdma_out_done_des_addr_chn_reg_t out_done_des_addr_ch1;
uint32_t reserved_1d4[66];
volatile gdma_tx_ch_arb_weigh_chn_reg_t tx_ch_arb_weigh_ch0;
volatile gdma_tx_arb_weigh_opt_dir_chn_reg_t tx_arb_weigh_opt_dir_ch0;
uint32_t reserved_2e4[8];
volatile gdma_tx_ch_arb_weigh_chn_reg_t tx_ch_arb_weigh_ch1;
volatile gdma_tx_arb_weigh_opt_dir_chn_reg_t tx_arb_weigh_opt_dir_ch1;
uint32_t reserved_30c[18];
volatile gdma_rx_ch_arb_weigh_chn_reg_t rx_ch_arb_weigh_ch0;
volatile gdma_rx_arb_weigh_opt_dir_chn_reg_t rx_arb_weigh_opt_dir_ch0;
uint32_t reserved_35c[8];
volatile gdma_rx_ch_arb_weigh_chn_reg_t rx_ch_arb_weigh_ch1;
volatile gdma_rx_arb_weigh_opt_dir_chn_reg_t rx_arb_weigh_opt_dir_ch1;
uint32_t reserved_384[10];
volatile gdma_in_link_addr_chn_reg_t in_link_addr_chn[2];
uint32_t reserved_3b4;
volatile gdma_out_link_addr_chn_reg_t out_link_addr_chn[2];
uint32_t reserved_3c0;
volatile gdma_intr_mem_start_addr_reg_t intr_mem_start_addr;
volatile gdma_intr_mem_end_addr_reg_t intr_mem_end_addr;
volatile gdma_arb_timeout_tx_reg_t arb_timeout_tx;
volatile gdma_arb_timeout_rx_reg_t arb_timeout_rx;
volatile gdma_weight_en_tx_reg_t weight_en_tx;
volatile gdma_weight_en_rx_reg_t weight_en_rx;
} gdma_dev_t;
extern gdma_dev_t GDMA;
#ifndef __cplusplus
_Static_assert(sizeof(gdma_dev_t) == 0x3dc, "Invalid size of gdma_dev_t structure");
#endif
#ifdef __cplusplus
}
#endif