21#ifndef __xwcd_ds_soc_chip_h__
22#define __xwcd_ds_soc_chip_h__
33#if defined(XWCDCFG_ds_SOC_EIRQ_ROISRT) && (1 == XWCDCFG_ds_SOC_EIRQ_ROISRT)
34# define __xwds_soc_eirq_tbl_qualifier const
36# define __xwds_soc_eirq_tbl_qualifier
39#if defined(XWCDCFG_ds_SOC_DMA_ROCBT) && (1 == XWCDCFG_ds_SOC_DMA_ROCBT)
40# define __xwds_soc_dma_tbl_qualifier const
42# define __xwds_soc_dma_tbl_qualifier
55#if defined(XWCDCFG_ds_SOC_CLK) && (1 == XWCDCFG_ds_SOC_CLK)
66#if defined(XWCDCFG_ds_SOC_PWR) && (1 == XWCDCFG_ds_SOC_PWR)
77#if defined(XWCDCFG_ds_SOC_GPIO) && (1 == XWCDCFG_ds_SOC_GPIO)
107#if defined(XWCDCFG_ds_SOC_EIRQ) && (1 == XWCDCFG_ds_SOC_EIRQ)
116#if defined(XWCDCFG_ds_SOC_DMA) && (1 == XWCDCFG_ds_SOC_DMA)
166#if (defined(XWCDCFG_ds_SOC_GPIO) && (1 == XWCDCFG_ds_SOC_GPIO))
174#if (defined(XWCDCFG_ds_SOC_CLK) && (1 == XWCDCFG_ds_SOC_CLK))
179#if (defined(XWCDCFG_ds_SOC_PWR) && (1 == XWCDCFG_ds_SOC_PWR))
184#if (defined(XWCDCFG_ds_SOC_EIRQ) && (1 == XWCDCFG_ds_SOC_EIRQ))
191#if (defined(XWCDCFG_ds_SOC_DMA) && (1 == XWCDCFG_ds_SOC_DMA))
xwer_t xwds_dma_cfg(struct xwds_soc *soc, xwid_t ch, void *cfg, xwds_dma_f cb, xwds_dma_cbarg_t arg)
XWDS API:配置DMA的通道
void xwds_soc_destruct(struct xwds_soc *soc)
XWDS API:SOC对象的析构函数
void(* xwds_eirq_f)(struct xwds_soc *, xwid_t, xwds_eirq_arg_t)
外部中断函数
xwer_t xwds_soc_grab(struct xwds_soc *soc)
XWDS API:增加对象的引用计数
void * xwds_dma_cbarg_t
DMA完成回调函数参数
void(* xwds_dma_f)(struct xwds_soc *, xwid_t, xwu32_t, xwds_dma_cbarg_t)
DMA完成回调函数类型
xwer_t xwds_soc_put(struct xwds_soc *soc)
XWDS API:减少对象的引用计数
void xwds_soc_construct(struct xwds_soc *soc)
XWDS API:SOC构造函数
xwer_t xwds_soc_get_reset_reason(struct xwds_soc *soc, xwu64_t *reason)
XWDS API:获取复位原因
#define __xwds_soc_dma_tbl_qualifier
#define __xwds_soc_eirq_tbl_qualifier
void * xwds_eirq_arg_t
外部中断函数参数
__xwcc_atomic xwsq_t atomic_xwsq_t
__xwcc_atomic xwbmp_t atomic_xwbmp_t
xwer_t(* gpio_output)(struct xwds_soc *, xwid_t, xwsq_t, xwsq_t)
xwer_t(* gpio_req)(struct xwds_soc *, xwid_t, xwsq_t)
xwer_t(* gpio_rls)(struct xwds_soc *, xwid_t, xwid_t)
xwer_t(* get_reset_reason)(struct xwds_soc *, xwu64_t *)
xwer_t(* eirq_rls)(struct xwds_soc *, xwid_t, xwsq_t, xwid_t)
xwer_t(* gpio_toggle)(struct xwds_soc *, xwid_t, xwsq_t)
xwer_t(* gpio_cfg)(struct xwds_soc *, xwid_t, xwsq_t, void *)
xwer_t(* gpio_set)(struct xwds_soc *, xwid_t, xwsq_t)
xwer_t(* gpio_input)(struct xwds_soc *, xwid_t, xwsq_t, xwsq_t *)
xwer_t(* eirq_req)(struct xwds_soc *, xwid_t, xwsq_t, xwid_t, xwsq_t)
xwer_t(* gpio_reset)(struct xwds_soc *, xwid_t, xwsq_t)
struct xwds_soc::@23 gpio
xwds_eirq_arg_t * isrargs
struct xwds_soc::@24 eirq