linux/drivers/isdn/hardware/mISDN/w6692.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Winbond W6692 specific defines
 *
 * Author       Karsten Keil <[email protected]>
 *		based on the w6692 I4L driver from Petr Novak <[email protected]>
 *
 * Copyright 2009  by Karsten Keil <[email protected]>
 */

/* Specifications of W6692 registers */

#define W_D_RFIFO
#define W_D_XFIFO
#define W_D_CMDR
#define W_D_MODE
#define W_D_TIMR
#define W_ISTA
#define W_IMASK
#define W_D_EXIR
#define W_D_EXIM
#define W_D_STAR
#define W_D_RSTA
#define W_D_SAM
#define W_D_SAP1
#define W_D_SAP2
#define W_D_TAM
#define W_D_TEI1
#define W_D_TEI2
#define W_D_RBCH
#define W_D_RBCL
#define W_TIMR2
#define W_L1_RC
#define W_D_CTL
#define W_CIR
#define W_CIX
#define W_SQR
#define W_SQX
#define W_PCTL
#define W_MOR
#define W_MOX
#define W_MOSR
#define W_MOCR
#define W_GCR

#define W_B_RFIFO
#define W_B_XFIFO
#define W_B_CMDR
#define W_B_MODE
#define W_B_EXIR
#define W_B_EXIM
#define W_B_STAR
#define W_B_ADM1
#define W_B_ADM2
#define W_B_ADR1
#define W_B_ADR2
#define W_B_RBCL
#define W_B_RBCH

#define W_XADDR
#define W_XDATA
#define W_EPCTL

/* W6692 register bits */

#define W_D_CMDR_XRST
#define W_D_CMDR_XME
#define W_D_CMDR_XMS
#define W_D_CMDR_STT
#define W_D_CMDR_RRST
#define W_D_CMDR_RACK

#define W_D_MODE_RLP
#define W_D_MODE_DLP
#define W_D_MODE_MFD
#define W_D_MODE_TEE
#define W_D_MODE_TMS
#define W_D_MODE_RACT
#define W_D_MODE_MMS

#define W_INT_B2_EXI
#define W_INT_B1_EXI
#define W_INT_D_EXI
#define W_INT_XINT0
#define W_INT_XINT1
#define W_INT_D_XFR
#define W_INT_D_RME
#define W_INT_D_RMR

#define W_D_EXI_WEXP
#define W_D_EXI_TEXP
#define W_D_EXI_ISC
#define W_D_EXI_MOC
#define W_D_EXI_TIN2
#define W_D_EXI_XCOL
#define W_D_EXI_XDUN
#define W_D_EXI_RDOV

#define W_D_STAR_DRDY
#define W_D_STAR_XBZ
#define W_D_STAR_XDOW

#define W_D_RSTA_RMB
#define W_D_RSTA_CRCE
#define W_D_RSTA_RDOV

#define W_D_CTL_SRST

#define W_CIR_SCC
#define W_CIR_ICC
#define W_CIR_COD_MASK

#define W_PCTL_PCX
#define W_PCTL_XMODE
#define W_PCTL_OE0
#define W_PCTL_OE1
#define W_PCTL_OE2
#define W_PCTL_OE3
#define W_PCTL_OE4
#define W_PCTL_OE5

#define W_B_CMDR_XRST
#define W_B_CMDR_XME
#define W_B_CMDR_XMS
#define W_B_CMDR_RACT
#define W_B_CMDR_RRST
#define W_B_CMDR_RACK

#define W_B_MODE_FTS0
#define W_B_MODE_FTS1
#define W_B_MODE_SW56
#define W_B_MODE_BSW0
#define W_B_MODE_BSW1
#define W_B_MODE_EPCM
#define W_B_MODE_ITF
#define W_B_MODE_MMS

#define W_B_EXI_XDUN
#define W_B_EXI_XFR
#define W_B_EXI_RDOV
#define W_B_EXI_RME
#define W_B_EXI_RMR

#define W_B_STAR_XBZ
#define W_B_STAR_XDOW
#define W_B_STAR_RMB
#define W_B_STAR_CRCE
#define W_B_STAR_RDOV

#define W_B_RBCH_LOV

/* W6692 Layer1 commands */

#define W_L1CMD_ECK
#define W_L1CMD_RST
#define W_L1CMD_SCP
#define W_L1CMD_SSP
#define W_L1CMD_AR8
#define W_L1CMD_AR10
#define W_L1CMD_EAL
#define W_L1CMD_DRC

/* W6692 Layer1 indications */

#define W_L1IND_CE
#define W_L1IND_DRD
#define W_L1IND_LD
#define W_L1IND_ARD
#define W_L1IND_TI
#define W_L1IND_ATI
#define W_L1IND_AI8
#define W_L1IND_AI10
#define W_L1IND_CD

/* FIFO thresholds */
#define W_D_FIFO_THRESH
#define W_B_FIFO_THRESH