Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
isar.h File Reference
#include "iohelper.h"

Go to the source code of this file.

Data Structures

struct  isar_ch
 
struct  isar_hw
 

Macros

#define ISAR_IRQMSK   0x04
 
#define ISAR_IRQSTA   0x04
 
#define ISAR_IRQBIT   0x75
 
#define ISAR_CTRL_H   0x61
 
#define ISAR_CTRL_L   0x60
 
#define ISAR_IIS   0x58
 
#define ISAR_IIA   0x58
 
#define ISAR_HIS   0x50
 
#define ISAR_HIA   0x50
 
#define ISAR_MBOX   0x4c
 
#define ISAR_WADR   0x4a
 
#define ISAR_RADR   0x48
 
#define ISAR_HIS_VNR   0x14
 
#define ISAR_HIS_DKEY   0x02
 
#define ISAR_HIS_FIRM   0x1e
 
#define ISAR_HIS_STDSP   0x08
 
#define ISAR_HIS_DIAG   0x05
 
#define ISAR_HIS_P0CFG   0x3c
 
#define ISAR_HIS_P12CFG   0x24
 
#define ISAR_HIS_SARTCFG   0x25
 
#define ISAR_HIS_PUMPCFG   0x26
 
#define ISAR_HIS_PUMPCTRL   0x2a
 
#define ISAR_HIS_IOM2CFG   0x27
 
#define ISAR_HIS_IOM2REQ   0x07
 
#define ISAR_HIS_IOM2CTRL   0x2b
 
#define ISAR_HIS_BSTREQ   0x0c
 
#define ISAR_HIS_PSTREQ   0x0e
 
#define ISAR_HIS_SDATA   0x20
 
#define ISAR_HIS_DPS1   0x40
 
#define ISAR_HIS_DPS2   0x80
 
#define SET_DPS(x)   ((x << 6) & 0xc0)
 
#define ISAR_IIS_MSCMSD   0x3f
 
#define ISAR_IIS_VNR   0x15
 
#define ISAR_IIS_DKEY   0x03
 
#define ISAR_IIS_FIRM   0x1f
 
#define ISAR_IIS_STDSP   0x09
 
#define ISAR_IIS_DIAG   0x25
 
#define ISAR_IIS_GSTEV   0x00
 
#define ISAR_IIS_BSTEV   0x28
 
#define ISAR_IIS_BSTRSP   0x2c
 
#define ISAR_IIS_PSTRSP   0x2e
 
#define ISAR_IIS_PSTEV   0x2a
 
#define ISAR_IIS_IOM2RSP   0x27
 
#define ISAR_IIS_RDATA   0x20
 
#define ISAR_IIS_INVMSG   0x3f
 
#define ISAR_CTRL_SWVER   0x10
 
#define ISAR_CTRL_STST   0x40
 
#define ISAR_MSG_HWVER   0x20
 
#define ISAR_DP1_USE   1
 
#define ISAR_DP2_USE   2
 
#define ISAR_RATE_REQ   3
 
#define PMOD_DISABLE   0
 
#define PMOD_FAX   1
 
#define PMOD_DATAMODEM   2
 
#define PMOD_HALFDUPLEX   3
 
#define PMOD_V110   4
 
#define PMOD_DTMF   5
 
#define PMOD_DTMF_TRANS   6
 
#define PMOD_BYPASS   7
 
#define PCTRL_ORIG   0x80
 
#define PV32P2_V23R   0x40
 
#define PV32P2_V22A   0x20
 
#define PV32P2_V22B   0x10
 
#define PV32P2_V22C   0x08
 
#define PV32P2_V21   0x02
 
#define PV32P2_BEL   0x01
 
#define PV32P3_AMOD   0x80
 
#define PV32P3_V32B   0x02
 
#define PV32P3_V23B   0x01
 
#define PV32P4_48   0x11
 
#define PV32P5_48   0x05
 
#define PV32P4_UT48   0x11
 
#define PV32P5_UT48   0x0d
 
#define PV32P4_96   0x11
 
#define PV32P5_96   0x03
 
#define PV32P4_UT96   0x11
 
#define PV32P5_UT96   0x0f
 
#define PV32P4_B96   0x91
 
#define PV32P5_B96   0x0b
 
#define PV32P4_UTB96   0xd1
 
#define PV32P5_UTB96   0x0f
 
#define PV32P4_120   0xb1
 
#define PV32P5_120   0x09
 
#define PV32P4_UT120   0xf1
 
#define PV32P5_UT120   0x0f
 
#define PV32P4_144   0x99
 
#define PV32P5_144   0x09
 
#define PV32P4_UT144   0xf9
 
#define PV32P5_UT144   0x0f
 
#define PV32P6_CTN   0x01
 
#define PV32P6_ATN   0x02
 
#define PFAXP2_CTN   0x01
 
#define PFAXP2_ATN   0x04
 
#define PSEV_10MS_TIMER   0x02
 
#define PSEV_CON_ON   0x18
 
#define PSEV_CON_OFF   0x19
 
#define PSEV_V24_OFF   0x20
 
#define PSEV_CTS_ON   0x21
 
#define PSEV_CTS_OFF   0x22
 
#define PSEV_DCD_ON   0x23
 
#define PSEV_DCD_OFF   0x24
 
#define PSEV_DSR_ON   0x25
 
#define PSEV_DSR_OFF   0x26
 
#define PSEV_REM_RET   0xcc
 
#define PSEV_REM_REN   0xcd
 
#define PSEV_GSTN_CLR   0xd4
 
#define PSEV_RSP_READY   0xbc
 
#define PSEV_LINE_TX_H   0xb3
 
#define PSEV_LINE_TX_B   0xb2
 
#define PSEV_LINE_RX_H   0xb1
 
#define PSEV_LINE_RX_B   0xb0
 
#define PSEV_RSP_CONN   0xb5
 
#define PSEV_RSP_DISC   0xb7
 
#define PSEV_RSP_FCERR   0xb9
 
#define PSEV_RSP_SILDET   0xbe
 
#define PSEV_RSP_SILOFF   0xab
 
#define PSEV_FLAGS_DET   0xba
 
#define PCTRL_CMD_TDTMF   0x5a
 
#define PCTRL_CMD_FTH   0xa7
 
#define PCTRL_CMD_FRH   0xa5
 
#define PCTRL_CMD_FTM   0xa8
 
#define PCTRL_CMD_FRM   0xa6
 
#define PCTRL_CMD_SILON   0xac
 
#define PCTRL_CMD_CONT   0xa2
 
#define PCTRL_CMD_ESC   0xa4
 
#define PCTRL_CMD_SILOFF   0xab
 
#define PCTRL_CMD_HALT   0xa9
 
#define PCTRL_LOC_RET   0xcf
 
#define PCTRL_LOC_REN   0xce
 
#define SMODE_DISABLE   0
 
#define SMODE_V14   2
 
#define SMODE_HDLC   3
 
#define SMODE_BINARY   4
 
#define SMODE_FSK_V14   5
 
#define SCTRL_HDMC_BOTH   0x00
 
#define SCTRL_HDMC_DTX   0x80
 
#define SCTRL_HDMC_DRX   0x40
 
#define S_P1_OVSP   0x40
 
#define S_P1_SNP   0x20
 
#define S_P1_EOP   0x10
 
#define S_P1_EDP   0x08
 
#define S_P1_NSB   0x04
 
#define S_P1_CHS_8   0x03
 
#define S_P1_CHS_7   0x02
 
#define S_P1_CHS_6   0x01
 
#define S_P1_CHS_5   0x00
 
#define S_P2_BFT_DEF   0x10
 
#define IOM_CTRL_ENA   0x80
 
#define IOM_CTRL_NOPCM   0x00
 
#define IOM_CTRL_ALAW   0x02
 
#define IOM_CTRL_ULAW   0x04
 
#define IOM_CTRL_RCV   0x01
 
#define IOM_P1_TXD   0x10
 
#define HDLC_FED   0x40
 
#define HDLC_FSD   0x20
 
#define HDLC_FST   0x20
 
#define HDLC_ERROR   0x1c
 
#define HDLC_ERR_FAD   0x10
 
#define HDLC_ERR_RER   0x08
 
#define HDLC_ERR_CER   0x04
 
#define SART_NMD   0x01
 
#define BSTAT_RDM0   0x1
 
#define BSTAT_RDM1   0x2
 
#define BSTAT_RDM2   0x4
 
#define BSTAT_RDM3   0x8
 
#define BSTEV_TBO   0x1f
 
#define BSTEV_RBO   0x2f
 
#define STFAX_NULL   0
 
#define STFAX_READY   1
 
#define STFAX_LINE   2
 
#define STFAX_CONT   3
 
#define STFAX_ACTIV   4
 
#define STFAX_ESCAPE   5
 
#define STFAX_SILDET   6
 

Functions

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

Macro Definition Documentation

#define BSTAT_RDM0   0x1

Definition at line 252 of file isar.h.

#define BSTAT_RDM1   0x2

Definition at line 253 of file isar.h.

#define BSTAT_RDM2   0x4

Definition at line 254 of file isar.h.

#define BSTAT_RDM3   0x8

Definition at line 255 of file isar.h.

#define BSTEV_RBO   0x2f

Definition at line 257 of file isar.h.

#define BSTEV_TBO   0x1f

Definition at line 256 of file isar.h.

#define HDLC_ERR_CER   0x04

Definition at line 249 of file isar.h.

#define HDLC_ERR_FAD   0x10

Definition at line 247 of file isar.h.

#define HDLC_ERR_RER   0x08

Definition at line 248 of file isar.h.

#define HDLC_ERROR   0x1c

Definition at line 246 of file isar.h.

#define HDLC_FED   0x40

Definition at line 243 of file isar.h.

#define HDLC_FSD   0x20

Definition at line 244 of file isar.h.

#define HDLC_FST   0x20

Definition at line 245 of file isar.h.

#define IOM_CTRL_ALAW   0x02

Definition at line 237 of file isar.h.

#define IOM_CTRL_ENA   0x80

Definition at line 235 of file isar.h.

#define IOM_CTRL_NOPCM   0x00

Definition at line 236 of file isar.h.

#define IOM_CTRL_RCV   0x01

Definition at line 239 of file isar.h.

#define IOM_CTRL_ULAW   0x04

Definition at line 238 of file isar.h.

#define IOM_P1_TXD   0x10

Definition at line 241 of file isar.h.

#define ISAR_CTRL_H   0x61

Definition at line 72 of file isar.h.

#define ISAR_CTRL_L   0x60

Definition at line 73 of file isar.h.

#define ISAR_CTRL_STST   0x40

Definition at line 118 of file isar.h.

#define ISAR_CTRL_SWVER   0x10

Definition at line 117 of file isar.h.

#define ISAR_DP1_USE   1

Definition at line 122 of file isar.h.

#define ISAR_DP2_USE   2

Definition at line 123 of file isar.h.

#define ISAR_HIA   0x50

Definition at line 77 of file isar.h.

#define ISAR_HIS   0x50

Definition at line 76 of file isar.h.

#define ISAR_HIS_BSTREQ   0x0c

Definition at line 95 of file isar.h.

#define ISAR_HIS_DIAG   0x05

Definition at line 86 of file isar.h.

#define ISAR_HIS_DKEY   0x02

Definition at line 83 of file isar.h.

#define ISAR_HIS_DPS1   0x40

Definition at line 98 of file isar.h.

#define ISAR_HIS_DPS2   0x80

Definition at line 99 of file isar.h.

#define ISAR_HIS_FIRM   0x1e

Definition at line 84 of file isar.h.

#define ISAR_HIS_IOM2CFG   0x27

Definition at line 92 of file isar.h.

#define ISAR_HIS_IOM2CTRL   0x2b

Definition at line 94 of file isar.h.

#define ISAR_HIS_IOM2REQ   0x07

Definition at line 93 of file isar.h.

#define ISAR_HIS_P0CFG   0x3c

Definition at line 87 of file isar.h.

#define ISAR_HIS_P12CFG   0x24

Definition at line 88 of file isar.h.

#define ISAR_HIS_PSTREQ   0x0e

Definition at line 96 of file isar.h.

#define ISAR_HIS_PUMPCFG   0x26

Definition at line 90 of file isar.h.

#define ISAR_HIS_PUMPCTRL   0x2a

Definition at line 91 of file isar.h.

#define ISAR_HIS_SARTCFG   0x25

Definition at line 89 of file isar.h.

#define ISAR_HIS_SDATA   0x20

Definition at line 97 of file isar.h.

#define ISAR_HIS_STDSP   0x08

Definition at line 85 of file isar.h.

#define ISAR_HIS_VNR   0x14

Definition at line 82 of file isar.h.

#define ISAR_IIA   0x58

Definition at line 75 of file isar.h.

#define ISAR_IIS   0x58

Definition at line 74 of file isar.h.

#define ISAR_IIS_BSTEV   0x28

Definition at line 109 of file isar.h.

#define ISAR_IIS_BSTRSP   0x2c

Definition at line 110 of file isar.h.

#define ISAR_IIS_DIAG   0x25

Definition at line 107 of file isar.h.

#define ISAR_IIS_DKEY   0x03

Definition at line 104 of file isar.h.

#define ISAR_IIS_FIRM   0x1f

Definition at line 105 of file isar.h.

#define ISAR_IIS_GSTEV   0x00

Definition at line 108 of file isar.h.

#define ISAR_IIS_INVMSG   0x3f

Definition at line 115 of file isar.h.

#define ISAR_IIS_IOM2RSP   0x27

Definition at line 113 of file isar.h.

#define ISAR_IIS_MSCMSD   0x3f

Definition at line 102 of file isar.h.

#define ISAR_IIS_PSTEV   0x2a

Definition at line 112 of file isar.h.

#define ISAR_IIS_PSTRSP   0x2e

Definition at line 111 of file isar.h.

#define ISAR_IIS_RDATA   0x20

Definition at line 114 of file isar.h.

#define ISAR_IIS_STDSP   0x09

Definition at line 106 of file isar.h.

#define ISAR_IIS_VNR   0x15

Definition at line 103 of file isar.h.

#define ISAR_IRQBIT   0x75

Definition at line 71 of file isar.h.

#define ISAR_IRQMSK   0x04

Definition at line 69 of file isar.h.

#define ISAR_IRQSTA   0x04

Definition at line 70 of file isar.h.

#define ISAR_MBOX   0x4c

Definition at line 78 of file isar.h.

#define ISAR_MSG_HWVER   0x20

Definition at line 120 of file isar.h.

#define ISAR_RADR   0x48

Definition at line 80 of file isar.h.

#define ISAR_RATE_REQ   3

Definition at line 124 of file isar.h.

#define ISAR_WADR   0x4a

Definition at line 79 of file isar.h.

#define PCTRL_CMD_CONT   0xa2

Definition at line 206 of file isar.h.

#define PCTRL_CMD_ESC   0xa4

Definition at line 207 of file isar.h.

#define PCTRL_CMD_FRH   0xa5

Definition at line 202 of file isar.h.

#define PCTRL_CMD_FRM   0xa6

Definition at line 204 of file isar.h.

#define PCTRL_CMD_FTH   0xa7

Definition at line 201 of file isar.h.

#define PCTRL_CMD_FTM   0xa8

Definition at line 203 of file isar.h.

#define PCTRL_CMD_HALT   0xa9

Definition at line 209 of file isar.h.

#define PCTRL_CMD_SILOFF   0xab

Definition at line 208 of file isar.h.

#define PCTRL_CMD_SILON   0xac

Definition at line 205 of file isar.h.

#define PCTRL_CMD_TDTMF   0x5a

Definition at line 199 of file isar.h.

#define PCTRL_LOC_REN   0xce

Definition at line 212 of file isar.h.

#define PCTRL_LOC_RET   0xcf

Definition at line 211 of file isar.h.

#define PCTRL_ORIG   0x80

Definition at line 135 of file isar.h.

#define PFAXP2_ATN   0x04

Definition at line 171 of file isar.h.

#define PFAXP2_CTN   0x01

Definition at line 170 of file isar.h.

#define PMOD_BYPASS   7

Definition at line 133 of file isar.h.

#define PMOD_DATAMODEM   2

Definition at line 128 of file isar.h.

#define PMOD_DISABLE   0

Definition at line 126 of file isar.h.

#define PMOD_DTMF   5

Definition at line 131 of file isar.h.

#define PMOD_DTMF_TRANS   6

Definition at line 132 of file isar.h.

#define PMOD_FAX   1

Definition at line 127 of file isar.h.

#define PMOD_HALFDUPLEX   3

Definition at line 129 of file isar.h.

#define PMOD_V110   4

Definition at line 130 of file isar.h.

#define PSEV_10MS_TIMER   0x02

Definition at line 173 of file isar.h.

#define PSEV_CON_OFF   0x19

Definition at line 175 of file isar.h.

#define PSEV_CON_ON   0x18

Definition at line 174 of file isar.h.

#define PSEV_CTS_OFF   0x22

Definition at line 178 of file isar.h.

#define PSEV_CTS_ON   0x21

Definition at line 177 of file isar.h.

#define PSEV_DCD_OFF   0x24

Definition at line 180 of file isar.h.

#define PSEV_DCD_ON   0x23

Definition at line 179 of file isar.h.

#define PSEV_DSR_OFF   0x26

Definition at line 182 of file isar.h.

#define PSEV_DSR_ON   0x25

Definition at line 181 of file isar.h.

#define PSEV_FLAGS_DET   0xba

Definition at line 197 of file isar.h.

#define PSEV_GSTN_CLR   0xd4

Definition at line 185 of file isar.h.

#define PSEV_LINE_RX_B   0xb0

Definition at line 191 of file isar.h.

#define PSEV_LINE_RX_H   0xb1

Definition at line 190 of file isar.h.

#define PSEV_LINE_TX_B   0xb2

Definition at line 189 of file isar.h.

#define PSEV_LINE_TX_H   0xb3

Definition at line 188 of file isar.h.

#define PSEV_REM_REN   0xcd

Definition at line 184 of file isar.h.

#define PSEV_REM_RET   0xcc

Definition at line 183 of file isar.h.

#define PSEV_RSP_CONN   0xb5

Definition at line 192 of file isar.h.

#define PSEV_RSP_DISC   0xb7

Definition at line 193 of file isar.h.

#define PSEV_RSP_FCERR   0xb9

Definition at line 194 of file isar.h.

#define PSEV_RSP_READY   0xbc

Definition at line 187 of file isar.h.

#define PSEV_RSP_SILDET   0xbe

Definition at line 195 of file isar.h.

#define PSEV_RSP_SILOFF   0xab

Definition at line 196 of file isar.h.

#define PSEV_V24_OFF   0x20

Definition at line 176 of file isar.h.

#define PV32P2_BEL   0x01

Definition at line 141 of file isar.h.

#define PV32P2_V21   0x02

Definition at line 140 of file isar.h.

#define PV32P2_V22A   0x20

Definition at line 137 of file isar.h.

#define PV32P2_V22B   0x10

Definition at line 138 of file isar.h.

#define PV32P2_V22C   0x08

Definition at line 139 of file isar.h.

#define PV32P2_V23R   0x40

Definition at line 136 of file isar.h.

#define PV32P3_AMOD   0x80

Definition at line 144 of file isar.h.

#define PV32P3_V23B   0x01

Definition at line 146 of file isar.h.

#define PV32P3_V32B   0x02

Definition at line 145 of file isar.h.

#define PV32P4_120   0xb1

Definition at line 159 of file isar.h.

#define PV32P4_144   0x99

Definition at line 163 of file isar.h.

#define PV32P4_48   0x11

Definition at line 147 of file isar.h.

#define PV32P4_96   0x11

Definition at line 151 of file isar.h.

#define PV32P4_B96   0x91

Definition at line 155 of file isar.h.

#define PV32P4_UT120   0xf1

Definition at line 161 of file isar.h.

#define PV32P4_UT144   0xf9

Definition at line 165 of file isar.h.

#define PV32P4_UT48   0x11

Definition at line 149 of file isar.h.

#define PV32P4_UT96   0x11

Definition at line 153 of file isar.h.

#define PV32P4_UTB96   0xd1

Definition at line 157 of file isar.h.

#define PV32P5_120   0x09

Definition at line 160 of file isar.h.

#define PV32P5_144   0x09

Definition at line 164 of file isar.h.

#define PV32P5_48   0x05

Definition at line 148 of file isar.h.

#define PV32P5_96   0x03

Definition at line 152 of file isar.h.

#define PV32P5_B96   0x0b

Definition at line 156 of file isar.h.

#define PV32P5_UT120   0x0f

Definition at line 162 of file isar.h.

#define PV32P5_UT144   0x0f

Definition at line 166 of file isar.h.

#define PV32P5_UT48   0x0d

Definition at line 150 of file isar.h.

#define PV32P5_UT96   0x0f

Definition at line 154 of file isar.h.

#define PV32P5_UTB96   0x0f

Definition at line 158 of file isar.h.

#define PV32P6_ATN   0x02

Definition at line 168 of file isar.h.

#define PV32P6_CTN   0x01

Definition at line 167 of file isar.h.

#define S_P1_CHS_5   0x00

Definition at line 231 of file isar.h.

#define S_P1_CHS_6   0x01

Definition at line 230 of file isar.h.

#define S_P1_CHS_7   0x02

Definition at line 229 of file isar.h.

#define S_P1_CHS_8   0x03

Definition at line 228 of file isar.h.

#define S_P1_EDP   0x08

Definition at line 226 of file isar.h.

#define S_P1_EOP   0x10

Definition at line 225 of file isar.h.

#define S_P1_NSB   0x04

Definition at line 227 of file isar.h.

#define S_P1_OVSP   0x40

Definition at line 223 of file isar.h.

#define S_P1_SNP   0x20

Definition at line 224 of file isar.h.

#define S_P2_BFT_DEF   0x10

Definition at line 233 of file isar.h.

#define SART_NMD   0x01

Definition at line 250 of file isar.h.

#define SCTRL_HDMC_BOTH   0x00

Definition at line 220 of file isar.h.

#define SCTRL_HDMC_DRX   0x40

Definition at line 222 of file isar.h.

#define SCTRL_HDMC_DTX   0x80

Definition at line 221 of file isar.h.

#define SET_DPS (   x)    ((x << 6) & 0xc0)

Definition at line 100 of file isar.h.

#define SMODE_BINARY   4

Definition at line 217 of file isar.h.

#define SMODE_DISABLE   0

Definition at line 214 of file isar.h.

#define SMODE_FSK_V14   5

Definition at line 218 of file isar.h.

#define SMODE_HDLC   3

Definition at line 216 of file isar.h.

#define SMODE_V14   2

Definition at line 215 of file isar.h.

#define STFAX_ACTIV   4

Definition at line 264 of file isar.h.

#define STFAX_CONT   3

Definition at line 263 of file isar.h.

#define STFAX_ESCAPE   5

Definition at line 265 of file isar.h.

#define STFAX_LINE   2

Definition at line 262 of file isar.h.

#define STFAX_NULL   0

Definition at line 260 of file isar.h.

#define STFAX_READY   1

Definition at line 261 of file isar.h.

#define STFAX_SILDET   6

Definition at line 266 of file isar.h.

Function Documentation

u32 mISDNisar_init ( struct isar_hw ,
void  
)

Definition at line 1667 of file mISDNisar.c.

void mISDNisar_irq ( struct isar_hw )

Definition at line 1050 of file mISDNisar.c.