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

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *
 * isar.h   ISAR (Siemens PSB 7110) specific defines
 *
 * Author Karsten Keil ([email protected])
 *
 * Copyright 2009  by Karsten Keil <[email protected]>
 */

#include "iohelper.h"

struct isar_hw;

struct isar_ch {};

struct isar_hw {};

#define ISAR_IRQMSK
#define ISAR_IRQSTA
#define ISAR_IRQBIT
#define ISAR_CTRL_H
#define ISAR_CTRL_L
#define ISAR_IIS
#define ISAR_IIA
#define ISAR_HIS
#define ISAR_HIA
#define ISAR_MBOX
#define ISAR_WADR
#define ISAR_RADR

#define ISAR_HIS_VNR
#define ISAR_HIS_DKEY
#define ISAR_HIS_FIRM
#define ISAR_HIS_STDSP
#define ISAR_HIS_DIAG
#define ISAR_HIS_P0CFG
#define ISAR_HIS_P12CFG
#define ISAR_HIS_SARTCFG
#define ISAR_HIS_PUMPCFG
#define ISAR_HIS_PUMPCTRL
#define ISAR_HIS_IOM2CFG
#define ISAR_HIS_IOM2REQ
#define ISAR_HIS_IOM2CTRL
#define ISAR_HIS_BSTREQ
#define ISAR_HIS_PSTREQ
#define ISAR_HIS_SDATA
#define ISAR_HIS_DPS1
#define ISAR_HIS_DPS2
#define SET_DPS(x)

#define ISAR_IIS_MSCMSD
#define ISAR_IIS_VNR
#define ISAR_IIS_DKEY
#define ISAR_IIS_FIRM
#define ISAR_IIS_STDSP
#define ISAR_IIS_DIAG
#define ISAR_IIS_GSTEV
#define ISAR_IIS_BSTEV
#define ISAR_IIS_BSTRSP
#define ISAR_IIS_PSTRSP
#define ISAR_IIS_PSTEV
#define ISAR_IIS_IOM2RSP
#define ISAR_IIS_RDATA
#define ISAR_IIS_INVMSG

#define ISAR_CTRL_SWVER
#define ISAR_CTRL_STST

#define ISAR_MSG_HWVER

#define ISAR_DP1_USE
#define ISAR_DP2_USE
#define ISAR_RATE_REQ

#define PMOD_DISABLE
#define PMOD_FAX
#define PMOD_DATAMODEM
#define PMOD_HALFDUPLEX
#define PMOD_V110
#define PMOD_DTMF
#define PMOD_DTMF_TRANS
#define PMOD_BYPASS

#define PCTRL_ORIG
#define PV32P2_V23R
#define PV32P2_V22A
#define PV32P2_V22B
#define PV32P2_V22C
#define PV32P2_V21
#define PV32P2_BEL

/* LSB MSB in ISAR doc wrong !!! Arghhh */
#define PV32P3_AMOD
#define PV32P3_V32B
#define PV32P3_V23B
#define PV32P4_48
#define PV32P5_48
#define PV32P4_UT48
#define PV32P5_UT48
#define PV32P4_96
#define PV32P5_96
#define PV32P4_UT96
#define PV32P5_UT96
#define PV32P4_B96
#define PV32P5_B96
#define PV32P4_UTB96
#define PV32P5_UTB96
#define PV32P4_120
#define PV32P5_120
#define PV32P4_UT120
#define PV32P5_UT120
#define PV32P4_144
#define PV32P5_144
#define PV32P4_UT144
#define PV32P5_UT144
#define PV32P6_CTN
#define PV32P6_ATN

#define PFAXP2_CTN
#define PFAXP2_ATN

#define PSEV_10MS_TIMER
#define PSEV_CON_ON
#define PSEV_CON_OFF
#define PSEV_V24_OFF
#define PSEV_CTS_ON
#define PSEV_CTS_OFF
#define PSEV_DCD_ON
#define PSEV_DCD_OFF
#define PSEV_DSR_ON
#define PSEV_DSR_OFF
#define PSEV_REM_RET
#define PSEV_REM_REN
#define PSEV_GSTN_CLR

#define PSEV_RSP_READY
#define PSEV_LINE_TX_H
#define PSEV_LINE_TX_B
#define PSEV_LINE_RX_H
#define PSEV_LINE_RX_B
#define PSEV_RSP_CONN
#define PSEV_RSP_DISC
#define PSEV_RSP_FCERR
#define PSEV_RSP_SILDET
#define PSEV_RSP_SILOFF
#define PSEV_FLAGS_DET

#define PCTRL_CMD_TDTMF

#define PCTRL_CMD_FTH
#define PCTRL_CMD_FRH
#define PCTRL_CMD_FTM
#define PCTRL_CMD_FRM
#define PCTRL_CMD_SILON
#define PCTRL_CMD_CONT
#define PCTRL_CMD_ESC
#define PCTRL_CMD_SILOFF
#define PCTRL_CMD_HALT

#define PCTRL_LOC_RET
#define PCTRL_LOC_REN

#define SMODE_DISABLE
#define SMODE_V14
#define SMODE_HDLC
#define SMODE_BINARY
#define SMODE_FSK_V14

#define SCTRL_HDMC_BOTH
#define SCTRL_HDMC_DTX
#define SCTRL_HDMC_DRX
#define S_P1_OVSP
#define S_P1_SNP
#define S_P1_EOP
#define S_P1_EDP
#define S_P1_NSB
#define S_P1_CHS_8
#define S_P1_CHS_7
#define S_P1_CHS_6
#define S_P1_CHS_5

#define S_P2_BFT_DEF

#define IOM_CTRL_ENA
#define IOM_CTRL_NOPCM
#define IOM_CTRL_ALAW
#define IOM_CTRL_ULAW
#define IOM_CTRL_RCV

#define IOM_P1_TXD

#define HDLC_FED
#define HDLC_FSD
#define HDLC_FST
#define HDLC_ERROR
#define HDLC_ERR_FAD
#define HDLC_ERR_RER
#define HDLC_ERR_CER
#define SART_NMD

#define BSTAT_RDM0
#define BSTAT_RDM1
#define BSTAT_RDM2
#define BSTAT_RDM3
#define BSTEV_TBO
#define BSTEV_RBO

/* FAX State Machine */
#define STFAX_NULL
#define STFAX_READY
#define STFAX_LINE
#define STFAX_CONT
#define STFAX_ACTIV
#define STFAX_ESCAPE
#define STFAX_SILDET

extern u32 mISDNisar_init(struct isar_hw *, void *);
extern void mISDNisar_irq(struct isar_hw *);