Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hfc_sx.h File Reference

Go to the source code of this file.

Data Structures

struct  hfcsx_extra
 

Macros

#define HFCSX_BTRANS_THRESHOLD   128
 
#define HFCSX_BTRANS_THRESMASK   0x00
 
#define HFCSX_C_I   0x02
 
#define HFCSX_TRxR   0x03
 
#define HFCSX_MON1_D   0x0A
 
#define HFCSX_MON2_D   0x0B
 
#define HFCSX_B1_SSL   0x20
 
#define HFCSX_B2_SSL   0x21
 
#define HFCSX_AUX1_SSL   0x22
 
#define HFCSX_AUX2_SSL   0x23
 
#define HFCSX_B1_RSL   0x24
 
#define HFCSX_B2_RSL   0x25
 
#define HFCSX_AUX1_RSL   0x26
 
#define HFCSX_AUX2_RSL   0x27
 
#define HFCSX_B1_D   0x28
 
#define HFCSX_B2_D   0x29
 
#define HFCSX_AUX1_D   0x2A
 
#define HFCSX_AUX2_D   0x2B
 
#define HFCSX_MST_EMOD   0x2D
 
#define HFCSX_MST_MODE   0x2E
 
#define HFCSX_CONNECT   0x2F
 
#define HFCSX_TRM   0x12
 
#define HFCSX_B_MODE   0x13
 
#define HFCSX_CHIP_ID   0x16
 
#define HFCSX_CIRM   0x18
 
#define HFCSX_CTMT   0x19
 
#define HFCSX_INT_M1   0x1A
 
#define HFCSX_INT_M2   0x1B
 
#define HFCSX_INT_S1   0x1E
 
#define HFCSX_INT_S2   0x1F
 
#define HFCSX_STATUS   0x1C
 
#define HFCSX_STATES   0x30
 
#define HFCSX_SCTRL   0x31
 
#define HFCSX_SCTRL_E   0x32
 
#define HFCSX_SCTRL_R   0x33
 
#define HFCSX_SQ   0x34
 
#define HFCSX_CLKDEL   0x37
 
#define HFCSX_B1_REC   0x3C
 
#define HFCSX_B1_SEND   0x3C
 
#define HFCSX_B2_REC   0x3D
 
#define HFCSX_B2_SEND   0x3D
 
#define HFCSX_D_REC   0x3E
 
#define HFCSX_D_SEND   0x3E
 
#define HFCSX_E_REC   0x3F
 
#define HFCSX_FIF_SEL   0x10
 
#define HFCSX_FIF_Z1L   0x80
 
#define HFCSX_FIF_Z1H   0x84
 
#define HFCSX_FIF_Z2L   0x88
 
#define HFCSX_FIF_Z2H   0x8C
 
#define HFCSX_FIF_INCF1   0xA8
 
#define HFCSX_FIF_DWR   0xAC
 
#define HFCSX_FIF_F1   0xB0
 
#define HFCSX_FIF_F2   0xB4
 
#define HFCSX_FIF_INCF2   0xB8
 
#define HFCSX_FIF_DRD   0xBC
 
#define HFCSX_SX_PROC   0x02
 
#define HFCSX_NBUSY   0x04
 
#define HFCSX_TIMER_ELAP   0x10
 
#define HFCSX_STATINT   0x20
 
#define HFCSX_FRAMEINT   0x40
 
#define HFCSX_ANYINT   0x80
 
#define HFCSX_CLTIMER   0x80
 
#define HFCSX_TIM3_125   0x04
 
#define HFCSX_TIM25   0x10
 
#define HFCSX_TIM50   0x14
 
#define HFCSX_TIM400   0x18
 
#define HFCSX_TIM800   0x1C
 
#define HFCSX_AUTO_TIMER   0x20
 
#define HFCSX_TRANSB2   0x02
 
#define HFCSX_TRANSB1   0x01
 
#define HFCSX_IRQ_SELMSK   0x07
 
#define HFCSX_IRQ_SELDIS   0x00
 
#define HFCSX_RESET   0x08
 
#define HFCSX_FIFO_RESET   0x80
 
#define HFCSX_INTS_B1TRANS   0x01
 
#define HFCSX_INTS_B2TRANS   0x02
 
#define HFCSX_INTS_DTRANS   0x04
 
#define HFCSX_INTS_B1REC   0x08
 
#define HFCSX_INTS_B2REC   0x10
 
#define HFCSX_INTS_DREC   0x20
 
#define HFCSX_INTS_L1STATE   0x40
 
#define HFCSX_INTS_TIMER   0x80
 
#define HFCSX_PROC_TRANS   0x01
 
#define HFCSX_GCI_I_CHG   0x02
 
#define HFCSX_GCI_MON_REC   0x04
 
#define HFCSX_IRQ_ENABLE   0x08
 
#define HFCSX_STATE_MSK   0x0F
 
#define HFCSX_LOAD_STATE   0x10
 
#define HFCSX_ACTIVATE   0x20
 
#define HFCSX_DO_ACTION   0x40
 
#define HFCSX_NT_G2_G3   0x80
 
#define HFCSX_MASTER   0x01
 
#define HFCSX_SLAVE   0x00
 
#define SCTRL_B1_ENA   0x01
 
#define SCTRL_B2_ENA   0x02
 
#define SCTRL_MODE_TE   0x00
 
#define SCTRL_MODE_NT   0x04
 
#define SCTRL_LOW_PRIO   0x08
 
#define SCTRL_SQ_ENA   0x10
 
#define SCTRL_TEST   0x20
 
#define SCTRL_NONE_CAP   0x40
 
#define SCTRL_PWR_DOWN   0x80
 
#define HFCSX_AUTO_AWAKE   0x01
 
#define HFCSX_DBIT_1   0x04
 
#define HFCSX_IGNORE_COL   0x08
 
#define HFCSX_CHG_B1_B2   0x80
 
#define HFCSX_SEL_D_RX   5
 
#define HFCSX_SEL_D_TX   4
 
#define HFCSX_SEL_B1_RX   1
 
#define HFCSX_SEL_B1_TX   0
 
#define HFCSX_SEL_B2_RX   3
 
#define HFCSX_SEL_B2_TX   2
 
#define MAX_D_FRAMES   15
 
#define MAX_B_FRAMES   31
 
#define B_SUB_VAL_32K   0x0200
 
#define B_FIFO_SIZE_32K   (0x2000 - B_SUB_VAL_32K)
 
#define B_SUB_VAL_8K   0x1A00
 
#define B_FIFO_SIZE_8K   (0x2000 - B_SUB_VAL_8K)
 
#define D_FIFO_SIZE   512
 
#define D_FREG_MASK   0xF
 

Functions

void main_irq_hfcsx (struct BCState *bcs)
 
void releasehfcsx (struct IsdnCardState *cs)
 

Macro Definition Documentation

#define B_FIFO_SIZE_32K   (0x2000 - B_SUB_VAL_32K)

Definition at line 182 of file hfc_sx.h.

#define B_FIFO_SIZE_8K   (0x2000 - B_SUB_VAL_8K)

Definition at line 184 of file hfc_sx.h.

#define B_SUB_VAL_32K   0x0200

Definition at line 181 of file hfc_sx.h.

#define B_SUB_VAL_8K   0x1A00

Definition at line 183 of file hfc_sx.h.

#define D_FIFO_SIZE   512

Definition at line 185 of file hfc_sx.h.

#define D_FREG_MASK   0xF

Definition at line 186 of file hfc_sx.h.

#define HFCSX_ACTIVATE   0x20

Definition at line 143 of file hfc_sx.h.

#define HFCSX_ANYINT   0x80

Definition at line 104 of file hfc_sx.h.

#define HFCSX_AUTO_AWAKE   0x01

Definition at line 164 of file hfc_sx.h.

#define HFCSX_AUTO_TIMER   0x20

Definition at line 113 of file hfc_sx.h.

#define HFCSX_AUX1_D   0x2A

Definition at line 44 of file hfc_sx.h.

#define HFCSX_AUX1_RSL   0x26

Definition at line 37 of file hfc_sx.h.

#define HFCSX_AUX1_SSL   0x22

Definition at line 33 of file hfc_sx.h.

#define HFCSX_AUX2_D   0x2B

Definition at line 45 of file hfc_sx.h.

#define HFCSX_AUX2_RSL   0x27

Definition at line 38 of file hfc_sx.h.

#define HFCSX_AUX2_SSL   0x23

Definition at line 34 of file hfc_sx.h.

#define HFCSX_B1_D   0x28

Definition at line 42 of file hfc_sx.h.

#define HFCSX_B1_REC   0x3C

Definition at line 75 of file hfc_sx.h.

#define HFCSX_B1_RSL   0x24

Definition at line 35 of file hfc_sx.h.

#define HFCSX_B1_SEND   0x3C

Definition at line 76 of file hfc_sx.h.

#define HFCSX_B1_SSL   0x20

Definition at line 31 of file hfc_sx.h.

#define HFCSX_B2_D   0x29

Definition at line 43 of file hfc_sx.h.

#define HFCSX_B2_REC   0x3D

Definition at line 77 of file hfc_sx.h.

#define HFCSX_B2_RSL   0x25

Definition at line 36 of file hfc_sx.h.

#define HFCSX_B2_SEND   0x3D

Definition at line 78 of file hfc_sx.h.

#define HFCSX_B2_SSL   0x21

Definition at line 32 of file hfc_sx.h.

#define HFCSX_B_MODE   0x13

Definition at line 57 of file hfc_sx.h.

#define HFCSX_BTRANS_THRESHOLD   128

Definition at line 18 of file hfc_sx.h.

#define HFCSX_BTRANS_THRESMASK   0x00

Definition at line 19 of file hfc_sx.h.

#define HFCSX_C_I   0x02

Definition at line 23 of file hfc_sx.h.

#define HFCSX_CHG_B1_B2   0x80

Definition at line 167 of file hfc_sx.h.

#define HFCSX_CHIP_ID   0x16

Definition at line 58 of file hfc_sx.h.

#define HFCSX_CIRM   0x18

Definition at line 59 of file hfc_sx.h.

#define HFCSX_CLKDEL   0x37

Definition at line 74 of file hfc_sx.h.

#define HFCSX_CLTIMER   0x80

Definition at line 107 of file hfc_sx.h.

#define HFCSX_CONNECT   0x2F

Definition at line 51 of file hfc_sx.h.

#define HFCSX_CTMT   0x19

Definition at line 60 of file hfc_sx.h.

#define HFCSX_D_REC   0x3E

Definition at line 79 of file hfc_sx.h.

#define HFCSX_D_SEND   0x3E

Definition at line 80 of file hfc_sx.h.

#define HFCSX_DBIT_1   0x04

Definition at line 165 of file hfc_sx.h.

#define HFCSX_DO_ACTION   0x40

Definition at line 144 of file hfc_sx.h.

#define HFCSX_E_REC   0x3F

Definition at line 81 of file hfc_sx.h.

#define HFCSX_FIF_DRD   0xBC

Definition at line 96 of file hfc_sx.h.

#define HFCSX_FIF_DWR   0xAC

Definition at line 92 of file hfc_sx.h.

#define HFCSX_FIF_F1   0xB0

Definition at line 93 of file hfc_sx.h.

#define HFCSX_FIF_F2   0xB4

Definition at line 94 of file hfc_sx.h.

#define HFCSX_FIF_INCF1   0xA8

Definition at line 91 of file hfc_sx.h.

#define HFCSX_FIF_INCF2   0xB8

Definition at line 95 of file hfc_sx.h.

#define HFCSX_FIF_SEL   0x10

Definition at line 86 of file hfc_sx.h.

#define HFCSX_FIF_Z1H   0x84

Definition at line 88 of file hfc_sx.h.

#define HFCSX_FIF_Z1L   0x80

Definition at line 87 of file hfc_sx.h.

#define HFCSX_FIF_Z2H   0x8C

Definition at line 90 of file hfc_sx.h.

#define HFCSX_FIF_Z2L   0x88

Definition at line 89 of file hfc_sx.h.

#define HFCSX_FIFO_RESET   0x80

Definition at line 121 of file hfc_sx.h.

#define HFCSX_FRAMEINT   0x40

Definition at line 103 of file hfc_sx.h.

#define HFCSX_GCI_I_CHG   0x02

Definition at line 136 of file hfc_sx.h.

#define HFCSX_GCI_MON_REC   0x04

Definition at line 137 of file hfc_sx.h.

#define HFCSX_IGNORE_COL   0x08

Definition at line 166 of file hfc_sx.h.

#define HFCSX_INT_M1   0x1A

Definition at line 61 of file hfc_sx.h.

#define HFCSX_INT_M2   0x1B

Definition at line 62 of file hfc_sx.h.

#define HFCSX_INT_S1   0x1E

Definition at line 63 of file hfc_sx.h.

#define HFCSX_INT_S2   0x1F

Definition at line 64 of file hfc_sx.h.

#define HFCSX_INTS_B1REC   0x08

Definition at line 128 of file hfc_sx.h.

#define HFCSX_INTS_B1TRANS   0x01

Definition at line 125 of file hfc_sx.h.

#define HFCSX_INTS_B2REC   0x10

Definition at line 129 of file hfc_sx.h.

#define HFCSX_INTS_B2TRANS   0x02

Definition at line 126 of file hfc_sx.h.

#define HFCSX_INTS_DREC   0x20

Definition at line 130 of file hfc_sx.h.

#define HFCSX_INTS_DTRANS   0x04

Definition at line 127 of file hfc_sx.h.

#define HFCSX_INTS_L1STATE   0x40

Definition at line 131 of file hfc_sx.h.

#define HFCSX_INTS_TIMER   0x80

Definition at line 132 of file hfc_sx.h.

#define HFCSX_IRQ_ENABLE   0x08

Definition at line 138 of file hfc_sx.h.

#define HFCSX_IRQ_SELDIS   0x00

Definition at line 119 of file hfc_sx.h.

#define HFCSX_IRQ_SELMSK   0x07

Definition at line 118 of file hfc_sx.h.

#define HFCSX_LOAD_STATE   0x10

Definition at line 142 of file hfc_sx.h.

#define HFCSX_MASTER   0x01

Definition at line 148 of file hfc_sx.h.

#define HFCSX_MON1_D   0x0A

Definition at line 25 of file hfc_sx.h.

#define HFCSX_MON2_D   0x0B

Definition at line 26 of file hfc_sx.h.

#define HFCSX_MST_EMOD   0x2D

Definition at line 49 of file hfc_sx.h.

#define HFCSX_MST_MODE   0x2E

Definition at line 50 of file hfc_sx.h.

#define HFCSX_NBUSY   0x04

Definition at line 100 of file hfc_sx.h.

#define HFCSX_NT_G2_G3   0x80

Definition at line 145 of file hfc_sx.h.

#define HFCSX_PROC_TRANS   0x01

Definition at line 135 of file hfc_sx.h.

#define HFCSX_RESET   0x08

Definition at line 120 of file hfc_sx.h.

#define HFCSX_SCTRL   0x31

Definition at line 70 of file hfc_sx.h.

#define HFCSX_SCTRL_E   0x32

Definition at line 71 of file hfc_sx.h.

#define HFCSX_SCTRL_R   0x33

Definition at line 72 of file hfc_sx.h.

#define HFCSX_SEL_B1_RX   1

Definition at line 174 of file hfc_sx.h.

#define HFCSX_SEL_B1_TX   0

Definition at line 175 of file hfc_sx.h.

#define HFCSX_SEL_B2_RX   3

Definition at line 176 of file hfc_sx.h.

#define HFCSX_SEL_B2_TX   2

Definition at line 177 of file hfc_sx.h.

#define HFCSX_SEL_D_RX   5

Definition at line 172 of file hfc_sx.h.

#define HFCSX_SEL_D_TX   4

Definition at line 173 of file hfc_sx.h.

#define HFCSX_SLAVE   0x00

Definition at line 149 of file hfc_sx.h.

#define HFCSX_SQ   0x34

Definition at line 73 of file hfc_sx.h.

#define HFCSX_STATE_MSK   0x0F

Definition at line 141 of file hfc_sx.h.

#define HFCSX_STATES   0x30

Definition at line 69 of file hfc_sx.h.

#define HFCSX_STATINT   0x20

Definition at line 102 of file hfc_sx.h.

#define HFCSX_STATUS   0x1C

Definition at line 65 of file hfc_sx.h.

#define HFCSX_SX_PROC   0x02

Definition at line 99 of file hfc_sx.h.

#define HFCSX_TIM25   0x10

Definition at line 109 of file hfc_sx.h.

#define HFCSX_TIM3_125   0x04

Definition at line 108 of file hfc_sx.h.

#define HFCSX_TIM400   0x18

Definition at line 111 of file hfc_sx.h.

#define HFCSX_TIM50   0x14

Definition at line 110 of file hfc_sx.h.

#define HFCSX_TIM800   0x1C

Definition at line 112 of file hfc_sx.h.

#define HFCSX_TIMER_ELAP   0x10

Definition at line 101 of file hfc_sx.h.

#define HFCSX_TRANSB1   0x01

Definition at line 115 of file hfc_sx.h.

#define HFCSX_TRANSB2   0x02

Definition at line 114 of file hfc_sx.h.

#define HFCSX_TRM   0x12

Definition at line 56 of file hfc_sx.h.

#define HFCSX_TRxR   0x03

Definition at line 24 of file hfc_sx.h.

#define MAX_B_FRAMES   31

Definition at line 180 of file hfc_sx.h.

#define MAX_D_FRAMES   15

Definition at line 179 of file hfc_sx.h.

#define SCTRL_B1_ENA   0x01

Definition at line 153 of file hfc_sx.h.

#define SCTRL_B2_ENA   0x02

Definition at line 154 of file hfc_sx.h.

#define SCTRL_LOW_PRIO   0x08

Definition at line 157 of file hfc_sx.h.

#define SCTRL_MODE_NT   0x04

Definition at line 156 of file hfc_sx.h.

#define SCTRL_MODE_TE   0x00

Definition at line 155 of file hfc_sx.h.

#define SCTRL_NONE_CAP   0x40

Definition at line 160 of file hfc_sx.h.

#define SCTRL_PWR_DOWN   0x80

Definition at line 161 of file hfc_sx.h.

#define SCTRL_SQ_ENA   0x10

Definition at line 158 of file hfc_sx.h.

#define SCTRL_TEST   0x20

Definition at line 159 of file hfc_sx.h.

Function Documentation

void main_irq_hfcsx ( struct BCState *  bcs)
void releasehfcsx ( struct IsdnCardState *  cs)