linux/sound/pci/hda/ca0132_regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * HD audio interface patch for Creative CA0132 chip.
 * CA0132 registers defines.
 *
 * Copyright (c) 2011, Creative Technology Ltd.
 */

#ifndef __CA0132_REGS_H
#define __CA0132_REGS_H

#define DSP_CHIP_OFFSET
#define DSP_DBGCNTL_MODULE_OFFSET
#define DSP_DBGCNTL_INST_OFFSET

#define DSP_DBGCNTL_EXEC_LOBIT
#define DSP_DBGCNTL_EXEC_HIBIT
#define DSP_DBGCNTL_EXEC_MASK

#define DSP_DBGCNTL_SS_LOBIT
#define DSP_DBGCNTL_SS_HIBIT
#define DSP_DBGCNTL_SS_MASK

#define DSP_DBGCNTL_STATE_LOBIT
#define DSP_DBGCNTL_STATE_HIBIT
#define DSP_DBGCNTL_STATE_MASK

#define XRAM_CHIP_OFFSET
#define XRAM_XRAM_CHANNEL_COUNT
#define XRAM_XRAM_MODULE_OFFSET
#define XRAM_XRAM_CHAN_INCR
#define XRAM_XRAM_INST_OFFSET(_chan)

#define YRAM_CHIP_OFFSET
#define YRAM_YRAM_CHANNEL_COUNT
#define YRAM_YRAM_MODULE_OFFSET
#define YRAM_YRAM_CHAN_INCR
#define YRAM_YRAM_INST_OFFSET(_chan)

#define UC_CHIP_OFFSET
#define UC_UC_CHANNEL_COUNT
#define UC_UC_MODULE_OFFSET
#define UC_UC_CHAN_INCR
#define UC_UC_INST_OFFSET(_chan)

#define AXRAM_CHIP_OFFSET
#define AXRAM_AXRAM_CHANNEL_COUNT
#define AXRAM_AXRAM_MODULE_OFFSET
#define AXRAM_AXRAM_CHAN_INCR
#define AXRAM_AXRAM_INST_OFFSET(_chan)

#define AYRAM_CHIP_OFFSET
#define AYRAM_AYRAM_CHANNEL_COUNT
#define AYRAM_AYRAM_MODULE_OFFSET
#define AYRAM_AYRAM_CHAN_INCR
#define AYRAM_AYRAM_INST_OFFSET(_chan)

#define DSPDMAC_CHIP_OFFSET
#define DSPDMAC_DMA_CFG_CHANNEL_COUNT
#define DSPDMAC_DMACFG_MODULE_OFFSET
#define DSPDMAC_DMACFG_CHAN_INCR
#define DSPDMAC_DMACFG_INST_OFFSET(_chan)

#define DSPDMAC_DMACFG_DBADR_LOBIT
#define DSPDMAC_DMACFG_DBADR_HIBIT
#define DSPDMAC_DMACFG_DBADR_MASK
#define DSPDMAC_DMACFG_LP_LOBIT
#define DSPDMAC_DMACFG_LP_HIBIT
#define DSPDMAC_DMACFG_LP_MASK

#define DSPDMAC_DMACFG_AINCR_LOBIT
#define DSPDMAC_DMACFG_AINCR_HIBIT
#define DSPDMAC_DMACFG_AINCR_MASK

#define DSPDMAC_DMACFG_DWR_LOBIT
#define DSPDMAC_DMACFG_DWR_HIBIT
#define DSPDMAC_DMACFG_DWR_MASK

#define DSPDMAC_DMACFG_AJUMP_LOBIT
#define DSPDMAC_DMACFG_AJUMP_HIBIT
#define DSPDMAC_DMACFG_AJUMP_MASK

#define DSPDMAC_DMACFG_AMODE_LOBIT
#define DSPDMAC_DMACFG_AMODE_HIBIT
#define DSPDMAC_DMACFG_AMODE_MASK

#define DSPDMAC_DMACFG_LK_LOBIT
#define DSPDMAC_DMACFG_LK_HIBIT
#define DSPDMAC_DMACFG_LK_MASK

#define DSPDMAC_DMACFG_AICS_LOBIT
#define DSPDMAC_DMACFG_AICS_HIBIT
#define DSPDMAC_DMACFG_AICS_MASK

#define DSPDMAC_DMACFG_LP_SINGLE
#define DSPDMAC_DMACFG_LP_LOOPING

#define DSPDMAC_DMACFG_AINCR_XANDY
#define DSPDMAC_DMACFG_AINCR_XORY

#define DSPDMAC_DMACFG_DWR_DMA_RD
#define DSPDMAC_DMACFG_DWR_DMA_WR

#define DSPDMAC_DMACFG_AMODE_LINEAR
#define DSPDMAC_DMACFG_AMODE_RSV1
#define DSPDMAC_DMACFG_AMODE_WINTLV
#define DSPDMAC_DMACFG_AMODE_GINTLV

#define DSPDMAC_DSP_ADR_OFS_CHANNEL_COUNT
#define DSPDMAC_DSPADROFS_MODULE_OFFSET
#define DSPDMAC_DSPADROFS_CHAN_INCR
#define DSPDMAC_DSPADROFS_INST_OFFSET(_chan)

#define DSPDMAC_DSPADROFS_COFS_LOBIT
#define DSPDMAC_DSPADROFS_COFS_HIBIT
#define DSPDMAC_DSPADROFS_COFS_MASK

#define DSPDMAC_DSPADROFS_BOFS_LOBIT
#define DSPDMAC_DSPADROFS_BOFS_HIBIT
#define DSPDMAC_DSPADROFS_BOFS_MASK

#define DSPDMAC_DSP_ADR_WOFS_CHANNEL_COUNT
#define DSPDMAC_DSPADRWOFS_MODULE_OFFSET
#define DSPDMAC_DSPADRWOFS_CHAN_INCR

#define DSPDMAC_DSPADRWOFS_INST_OFFSET(_chan)

#define DSPDMAC_DSPADRWOFS_WCOFS_LOBIT
#define DSPDMAC_DSPADRWOFS_WCOFS_HIBIT
#define DSPDMAC_DSPADRWOFS_WCOFS_MASK

#define DSPDMAC_DSPADRWOFS_WCBFR_LOBIT
#define DSPDMAC_DSPADRWOFS_WCBFR_HIBIT
#define DSPDMAC_DSPADRWOFS_WCBFR_MASK

#define DSPDMAC_DSPADRWOFS_WBOFS_LOBIT
#define DSPDMAC_DSPADRWOFS_WBOFS_HIBIT
#define DSPDMAC_DSPADRWOFS_WBOFS_MASK

#define DSPDMAC_DSPADRWOFS_WBBFR_LOBIT
#define DSPDMAC_DSPADRWOFS_WBBFR_HIBIT
#define DSPDMAC_DSPADRWOFS_WBBFR_MASK

#define DSPDMAC_DSP_ADR_GOFS_CHANNEL_COUNT
#define DSPDMAC_DSPADRGOFS_MODULE_OFFSET
#define DSPDMAC_DSPADRGOFS_CHAN_INCR
#define DSPDMAC_DSPADRGOFS_INST_OFFSET(_chan)

#define DSPDMAC_DSPADRGOFS_GCOFS_LOBIT
#define DSPDMAC_DSPADRGOFS_GCOFS_HIBIT
#define DSPDMAC_DSPADRGOFS_GCOFS_MASK

#define DSPDMAC_DSPADRGOFS_GCS_LOBIT
#define DSPDMAC_DSPADRGOFS_GCS_HIBIT
#define DSPDMAC_DSPADRGOFS_GCS_MASK

#define DSPDMAC_DSPADRGOFS_GCBFR_LOBIT
#define DSPDMAC_DSPADRGOFS_GCBFR_HIBIT
#define DSPDMAC_DSPADRGOFS_GCBFR_MASK

#define DSPDMAC_DSPADRGOFS_GBOFS_LOBIT
#define DSPDMAC_DSPADRGOFS_GBOFS_HIBIT
#define DSPDMAC_DSPADRGOFS_GBOFS_MASK

#define DSPDMAC_DSPADRGOFS_GBS_LOBIT
#define DSPDMAC_DSPADRGOFS_GBS_HIBIT
#define DSPDMAC_DSPADRGOFS_GBS_MASK

#define DSPDMAC_DSPADRGOFS_GBBFR_LOBIT
#define DSPDMAC_DSPADRGOFS_GBBFR_HIBIT
#define DSPDMAC_DSPADRGOFS_GBBFR_MASK

#define DSPDMAC_XFR_CNT_CHANNEL_COUNT
#define DSPDMAC_XFRCNT_MODULE_OFFSET
#define DSPDMAC_XFRCNT_CHAN_INCR

#define DSPDMAC_XFRCNT_INST_OFFSET(_chan)

#define DSPDMAC_XFRCNT_CCNT_LOBIT
#define DSPDMAC_XFRCNT_CCNT_HIBIT
#define DSPDMAC_XFRCNT_CCNT_MASK

#define DSPDMAC_XFRCNT_BCNT_LOBIT
#define DSPDMAC_XFRCNT_BCNT_HIBIT
#define DSPDMAC_XFRCNT_BCNT_MASK

#define DSPDMAC_IRQ_CNT_CHANNEL_COUNT
#define DSPDMAC_IRQCNT_MODULE_OFFSET
#define DSPDMAC_IRQCNT_CHAN_INCR
#define DSPDMAC_IRQCNT_INST_OFFSET(_chan)

#define DSPDMAC_IRQCNT_CICNT_LOBIT
#define DSPDMAC_IRQCNT_CICNT_HIBIT
#define DSPDMAC_IRQCNT_CICNT_MASK

#define DSPDMAC_IRQCNT_BICNT_LOBIT
#define DSPDMAC_IRQCNT_BICNT_HIBIT
#define DSPDMAC_IRQCNT_BICNT_MASK

#define DSPDMAC_AUD_CHSEL_CHANNEL_COUNT
#define DSPDMAC_AUDCHSEL_MODULE_OFFSET
#define DSPDMAC_AUDCHSEL_CHAN_INCR
#define DSPDMAC_AUDCHSEL_INST_OFFSET(_chan)

#define DSPDMAC_AUDCHSEL_ACS_LOBIT
#define DSPDMAC_AUDCHSEL_ACS_HIBIT
#define DSPDMAC_AUDCHSEL_ACS_MASK

#define DSPDMAC_CHNLSTART_MODULE_OFFSET
#define DSPDMAC_CHNLSTART_INST_OFFSET

#define DSPDMAC_CHNLSTART_EN_LOBIT
#define DSPDMAC_CHNLSTART_EN_HIBIT
#define DSPDMAC_CHNLSTART_EN_MASK

#define DSPDMAC_CHNLSTART_VAI1_LOBIT
#define DSPDMAC_CHNLSTART_VAI1_HIBIT
#define DSPDMAC_CHNLSTART_VAI1_MASK

#define DSPDMAC_CHNLSTART_DIS_LOBIT
#define DSPDMAC_CHNLSTART_DIS_HIBIT
#define DSPDMAC_CHNLSTART_DIS_MASK

#define DSPDMAC_CHNLSTART_VAI2_LOBIT
#define DSPDMAC_CHNLSTART_VAI2_HIBIT
#define DSPDMAC_CHNLSTART_VAI2_MASK

#define DSPDMAC_CHNLSTATUS_MODULE_OFFSET
#define DSPDMAC_CHNLSTATUS_INST_OFFSET

#define DSPDMAC_CHNLSTATUS_ISC_LOBIT
#define DSPDMAC_CHNLSTATUS_ISC_HIBIT
#define DSPDMAC_CHNLSTATUS_ISC_MASK

#define DSPDMAC_CHNLSTATUS_AOO_LOBIT
#define DSPDMAC_CHNLSTATUS_AOO_HIBIT
#define DSPDMAC_CHNLSTATUS_AOO_MASK

#define DSPDMAC_CHNLSTATUS_AOU_LOBIT
#define DSPDMAC_CHNLSTATUS_AOU_HIBIT
#define DSPDMAC_CHNLSTATUS_AOU_MASK

#define DSPDMAC_CHNLSTATUS_AIO_LOBIT
#define DSPDMAC_CHNLSTATUS_AIO_HIBIT
#define DSPDMAC_CHNLSTATUS_AIO_MASK

#define DSPDMAC_CHNLSTATUS_AIU_LOBIT
#define DSPDMAC_CHNLSTATUS_AIU_HIBIT
#define DSPDMAC_CHNLSTATUS_AIU_MASK

#define DSPDMAC_CHNLSTATUS_IEN_LOBIT
#define DSPDMAC_CHNLSTATUS_IEN_HIBIT
#define DSPDMAC_CHNLSTATUS_IEN_MASK

#define DSPDMAC_CHNLSTATUS_VAI0_LOBIT
#define DSPDMAC_CHNLSTATUS_VAI0_HIBIT
#define DSPDMAC_CHNLSTATUS_VAI0_MASK

#define DSPDMAC_CHNLPROP_MODULE_OFFSET
#define DSPDMAC_CHNLPROP_INST_OFFSET

#define DSPDMAC_CHNLPROP_DCON_LOBIT
#define DSPDMAC_CHNLPROP_DCON_HIBIT
#define DSPDMAC_CHNLPROP_DCON_MASK

#define DSPDMAC_CHNLPROP_FFS_LOBIT
#define DSPDMAC_CHNLPROP_FFS_HIBIT
#define DSPDMAC_CHNLPROP_FFS_MASK

#define DSPDMAC_CHNLPROP_NAJ_LOBIT
#define DSPDMAC_CHNLPROP_NAJ_HIBIT
#define DSPDMAC_CHNLPROP_NAJ_MASK

#define DSPDMAC_CHNLPROP_ENH_LOBIT
#define DSPDMAC_CHNLPROP_ENH_HIBIT
#define DSPDMAC_CHNLPROP_ENH_MASK

#define DSPDMAC_CHNLPROP_MSPCE_LOBIT
#define DSPDMAC_CHNLPROP_MSPCE_HIBIT
#define DSPDMAC_CHNLPROP_MSPCE_MASK

#define DSPDMAC_CHNLPROP_AC_LOBIT
#define DSPDMAC_CHNLPROP_AC_HIBIT
#define DSPDMAC_CHNLPROP_AC_MASK

#define DSPDMAC_ACTIVE_MODULE_OFFSET
#define DSPDMAC_ACTIVE_INST_OFFSET

#define DSPDMAC_ACTIVE_AAR_LOBIT
#define DSPDMAC_ACTIVE_AAR_HIBIT
#define DSPDMAC_ACTIVE_AAR_MASK

#define DSPDMAC_ACTIVE_WFR_LOBIT
#define DSPDMAC_ACTIVE_WFR_HIBIT
#define DSPDMAC_ACTIVE_WFR_MASK

#define DSP_AUX_MEM_BASE
#define INVALID_CHIP_ADDRESS

#define X_SIZE
#define Y_SIZE
#define AX_SIZE
#define AY_SIZE
#define UC_SIZE

#define XEXT_SIZE
#define YEXT_SIZE

#define U64K

#define X_END
#define X_EXT
#define AX_END

#define Y_END
#define Y_EXT
#define AY_END

#define UC_END

#define X_RANGE_MAIN(a, s)
#define X_RANGE_AUX(a, s)
#define X_RANGE_EXT(a, s)
#define X_RANGE_ALL(a, s)

#define Y_RANGE_MAIN(a, s)
#define Y_RANGE_AUX(a, s)
#define Y_RANGE_EXT(a, s)
#define Y_RANGE_ALL(a, s)

#define UC_RANGE(a, s)

#define X_OFF(a)
#define AX_OFF(a)

#define Y_OFF(a)
#define AY_OFF(a)

#define UC_OFF(a)

#define X_EXT_MAIN_SIZE(a)
#define X_EXT_AUX_SIZE(a, s)

#define Y_EXT_MAIN_SIZE(a)
#define Y_EXT_AUX_SIZE(a, s)

#endif