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

Go to the source code of this file.

Data Structures

struct  z_type
 
struct  dfifo_type
 
struct  bzfifo_type
 
union  fifo_area
 

Macros

#define HFCPCI_BTRANS_THRESHOLD   128
 
#define HFCPCI_BTRANS_THRESMASK   0x00
 
#define PCI_ENA_MEMIO   0x02
 
#define PCI_ENA_MASTER   0x04
 
#define HCFPCI_C_I   0x08
 
#define HFCPCI_TRxR   0x0C
 
#define HFCPCI_MON1_D   0x28
 
#define HFCPCI_MON2_D   0x2C
 
#define HFCPCI_B1_SSL   0x80
 
#define HFCPCI_B2_SSL   0x84
 
#define HFCPCI_AUX1_SSL   0x88
 
#define HFCPCI_AUX2_SSL   0x8C
 
#define HFCPCI_B1_RSL   0x90
 
#define HFCPCI_B2_RSL   0x94
 
#define HFCPCI_AUX1_RSL   0x98
 
#define HFCPCI_AUX2_RSL   0x9C
 
#define HFCPCI_B1_D   0xA0
 
#define HFCPCI_B2_D   0xA4
 
#define HFCPCI_AUX1_D   0xA8
 
#define HFCPCI_AUX2_D   0xAC
 
#define HFCPCI_MST_EMOD   0xB4
 
#define HFCPCI_MST_MODE   0xB8
 
#define HFCPCI_CONNECT   0xBC
 
#define HFCPCI_FIFO_EN   0x44
 
#define HFCPCI_TRM   0x48
 
#define HFCPCI_B_MODE   0x4C
 
#define HFCPCI_CHIP_ID   0x58
 
#define HFCPCI_CIRM   0x60
 
#define HFCPCI_CTMT   0x64
 
#define HFCPCI_INT_M1   0x68
 
#define HFCPCI_INT_M2   0x6C
 
#define HFCPCI_INT_S1   0x78
 
#define HFCPCI_INT_S2   0x7C
 
#define HFCPCI_STATUS   0x70
 
#define HFCPCI_STATES   0xC0
 
#define HFCPCI_SCTRL   0xC4
 
#define HFCPCI_SCTRL_E   0xC8
 
#define HFCPCI_SCTRL_R   0xCC
 
#define HFCPCI_SQ   0xD0
 
#define HFCPCI_CLKDEL   0xDC
 
#define HFCPCI_B1_REC   0xF0
 
#define HFCPCI_B1_SEND   0xF0
 
#define HFCPCI_B2_REC   0xF4
 
#define HFCPCI_B2_SEND   0xF4
 
#define HFCPCI_D_REC   0xF8
 
#define HFCPCI_D_SEND   0xF8
 
#define HFCPCI_E_REC   0xFC
 
#define HFCPCI_PCI_PROC   0x02
 
#define HFCPCI_NBUSY   0x04
 
#define HFCPCI_TIMER_ELAP   0x10
 
#define HFCPCI_STATINT   0x20
 
#define HFCPCI_FRAMEINT   0x40
 
#define HFCPCI_ANYINT   0x80
 
#define HFCPCI_CLTIMER   0x80
 
#define HFCPCI_TIM3_125   0x04
 
#define HFCPCI_TIM25   0x10
 
#define HFCPCI_TIM50   0x14
 
#define HFCPCI_TIM400   0x18
 
#define HFCPCI_TIM800   0x1C
 
#define HFCPCI_AUTO_TIMER   0x20
 
#define HFCPCI_TRANSB2   0x02
 
#define HFCPCI_TRANSB1   0x01
 
#define HFCPCI_AUX_MSK   0x07
 
#define HFCPCI_RESET   0x08
 
#define HFCPCI_B1_REV   0x40
 
#define HFCPCI_B2_REV   0x80
 
#define HFCPCI_INTS_B1TRANS   0x01
 
#define HFCPCI_INTS_B2TRANS   0x02
 
#define HFCPCI_INTS_DTRANS   0x04
 
#define HFCPCI_INTS_B1REC   0x08
 
#define HFCPCI_INTS_B2REC   0x10
 
#define HFCPCI_INTS_DREC   0x20
 
#define HFCPCI_INTS_L1STATE   0x40
 
#define HFCPCI_INTS_TIMER   0x80
 
#define HFCPCI_PROC_TRANS   0x01
 
#define HFCPCI_GCI_I_CHG   0x02
 
#define HFCPCI_GCI_MON_REC   0x04
 
#define HFCPCI_IRQ_ENABLE   0x08
 
#define HFCPCI_PMESEL   0x80
 
#define HFCPCI_STATE_MSK   0x0F
 
#define HFCPCI_LOAD_STATE   0x10
 
#define HFCPCI_ACTIVATE   0x20
 
#define HFCPCI_DO_ACTION   0x40
 
#define HFCPCI_NT_G2_G3   0x80
 
#define HFCPCI_MASTER   0x01
 
#define HFCPCI_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 HFCPCI_AUTO_AWAKE   0x01
 
#define HFCPCI_DBIT_1   0x04
 
#define HFCPCI_IGNORE_COL   0x08
 
#define HFCPCI_CHG_B1_B2   0x80
 
#define HFCPCI_FIFOEN_B1   0x03
 
#define HFCPCI_FIFOEN_B2   0x0C
 
#define HFCPCI_FIFOEN_DTX   0x10
 
#define HFCPCI_FIFOEN_B1TX   0x01
 
#define HFCPCI_FIFOEN_B1RX   0x02
 
#define HFCPCI_FIFOEN_B2TX   0x04
 
#define HFCPCI_FIFOEN_B2RX   0x08
 
#define MAX_D_FRAMES   15
 
#define MAX_B_FRAMES   31
 
#define B_SUB_VAL   0x200
 
#define B_FIFO_SIZE   (0x2000 - B_SUB_VAL)
 
#define D_FIFO_SIZE   512
 
#define D_FREG_MASK   0xF
 
#define Write_hfc(a, b, c)   (*(((u_char *)a->hw.hfcpci.pci_io) + b) = c)
 
#define Read_hfc(a, b)   (*(((u_char *)a->hw.hfcpci.pci_io) + b))
 

Functions

void main_irq_hcpci (struct BCState *bcs)
 
void releasehfcpci (struct IsdnCardState *cs)
 

Macro Definition Documentation

#define B_FIFO_SIZE   (0x2000 - B_SUB_VAL)

Definition at line 181 of file hfc_pci.h.

#define B_SUB_VAL   0x200

Definition at line 180 of file hfc_pci.h.

#define D_FIFO_SIZE   512

Definition at line 182 of file hfc_pci.h.

#define D_FREG_MASK   0xF

Definition at line 183 of file hfc_pci.h.

#define HCFPCI_C_I   0x08

Definition at line 30 of file hfc_pci.h.

#define HFCPCI_ACTIVATE   0x20

Definition at line 137 of file hfc_pci.h.

#define HFCPCI_ANYINT   0x80

Definition at line 98 of file hfc_pci.h.

#define HFCPCI_AUTO_AWAKE   0x01

Definition at line 158 of file hfc_pci.h.

#define HFCPCI_AUTO_TIMER   0x20

Definition at line 107 of file hfc_pci.h.

#define HFCPCI_AUX1_D   0xA8

Definition at line 51 of file hfc_pci.h.

#define HFCPCI_AUX1_RSL   0x98

Definition at line 44 of file hfc_pci.h.

#define HFCPCI_AUX1_SSL   0x88

Definition at line 40 of file hfc_pci.h.

#define HFCPCI_AUX2_D   0xAC

Definition at line 52 of file hfc_pci.h.

#define HFCPCI_AUX2_RSL   0x9C

Definition at line 45 of file hfc_pci.h.

#define HFCPCI_AUX2_SSL   0x8C

Definition at line 41 of file hfc_pci.h.

#define HFCPCI_AUX_MSK   0x07

Definition at line 112 of file hfc_pci.h.

#define HFCPCI_B1_D   0xA0

Definition at line 49 of file hfc_pci.h.

#define HFCPCI_B1_REC   0xF0

Definition at line 83 of file hfc_pci.h.

#define HFCPCI_B1_REV   0x40

Definition at line 114 of file hfc_pci.h.

#define HFCPCI_B1_RSL   0x90

Definition at line 42 of file hfc_pci.h.

#define HFCPCI_B1_SEND   0xF0

Definition at line 84 of file hfc_pci.h.

#define HFCPCI_B1_SSL   0x80

Definition at line 38 of file hfc_pci.h.

#define HFCPCI_B2_D   0xA4

Definition at line 50 of file hfc_pci.h.

#define HFCPCI_B2_REC   0xF4

Definition at line 85 of file hfc_pci.h.

#define HFCPCI_B2_REV   0x80

Definition at line 115 of file hfc_pci.h.

#define HFCPCI_B2_RSL   0x94

Definition at line 43 of file hfc_pci.h.

#define HFCPCI_B2_SEND   0xF4

Definition at line 86 of file hfc_pci.h.

#define HFCPCI_B2_SSL   0x84

Definition at line 39 of file hfc_pci.h.

#define HFCPCI_B_MODE   0x4C

Definition at line 65 of file hfc_pci.h.

#define HFCPCI_BTRANS_THRESHOLD   128

Definition at line 17 of file hfc_pci.h.

#define HFCPCI_BTRANS_THRESMASK   0x00

Definition at line 18 of file hfc_pci.h.

#define HFCPCI_CHG_B1_B2   0x80

Definition at line 161 of file hfc_pci.h.

#define HFCPCI_CHIP_ID   0x58

Definition at line 66 of file hfc_pci.h.

#define HFCPCI_CIRM   0x60

Definition at line 67 of file hfc_pci.h.

#define HFCPCI_CLKDEL   0xDC

Definition at line 82 of file hfc_pci.h.

#define HFCPCI_CLTIMER   0x80

Definition at line 101 of file hfc_pci.h.

#define HFCPCI_CONNECT   0xBC

Definition at line 58 of file hfc_pci.h.

#define HFCPCI_CTMT   0x64

Definition at line 68 of file hfc_pci.h.

#define HFCPCI_D_REC   0xF8

Definition at line 87 of file hfc_pci.h.

#define HFCPCI_D_SEND   0xF8

Definition at line 88 of file hfc_pci.h.

#define HFCPCI_DBIT_1   0x04

Definition at line 159 of file hfc_pci.h.

#define HFCPCI_DO_ACTION   0x40

Definition at line 138 of file hfc_pci.h.

#define HFCPCI_E_REC   0xFC

Definition at line 89 of file hfc_pci.h.

#define HFCPCI_FIFO_EN   0x44

Definition at line 63 of file hfc_pci.h.

#define HFCPCI_FIFOEN_B1   0x03

Definition at line 166 of file hfc_pci.h.

#define HFCPCI_FIFOEN_B1RX   0x02

Definition at line 170 of file hfc_pci.h.

#define HFCPCI_FIFOEN_B1TX   0x01

Definition at line 169 of file hfc_pci.h.

#define HFCPCI_FIFOEN_B2   0x0C

Definition at line 167 of file hfc_pci.h.

#define HFCPCI_FIFOEN_B2RX   0x08

Definition at line 172 of file hfc_pci.h.

#define HFCPCI_FIFOEN_B2TX   0x04

Definition at line 171 of file hfc_pci.h.

#define HFCPCI_FIFOEN_DTX   0x10

Definition at line 168 of file hfc_pci.h.

#define HFCPCI_FRAMEINT   0x40

Definition at line 97 of file hfc_pci.h.

#define HFCPCI_GCI_I_CHG   0x02

Definition at line 129 of file hfc_pci.h.

#define HFCPCI_GCI_MON_REC   0x04

Definition at line 130 of file hfc_pci.h.

#define HFCPCI_IGNORE_COL   0x08

Definition at line 160 of file hfc_pci.h.

#define HFCPCI_INT_M1   0x68

Definition at line 69 of file hfc_pci.h.

#define HFCPCI_INT_M2   0x6C

Definition at line 70 of file hfc_pci.h.

#define HFCPCI_INT_S1   0x78

Definition at line 71 of file hfc_pci.h.

#define HFCPCI_INT_S2   0x7C

Definition at line 72 of file hfc_pci.h.

#define HFCPCI_INTS_B1REC   0x08

Definition at line 121 of file hfc_pci.h.

#define HFCPCI_INTS_B1TRANS   0x01

Definition at line 118 of file hfc_pci.h.

#define HFCPCI_INTS_B2REC   0x10

Definition at line 122 of file hfc_pci.h.

#define HFCPCI_INTS_B2TRANS   0x02

Definition at line 119 of file hfc_pci.h.

#define HFCPCI_INTS_DREC   0x20

Definition at line 123 of file hfc_pci.h.

#define HFCPCI_INTS_DTRANS   0x04

Definition at line 120 of file hfc_pci.h.

#define HFCPCI_INTS_L1STATE   0x40

Definition at line 124 of file hfc_pci.h.

#define HFCPCI_INTS_TIMER   0x80

Definition at line 125 of file hfc_pci.h.

#define HFCPCI_IRQ_ENABLE   0x08

Definition at line 131 of file hfc_pci.h.

#define HFCPCI_LOAD_STATE   0x10

Definition at line 136 of file hfc_pci.h.

#define HFCPCI_MASTER   0x01

Definition at line 142 of file hfc_pci.h.

#define HFCPCI_MON1_D   0x28

Definition at line 32 of file hfc_pci.h.

#define HFCPCI_MON2_D   0x2C

Definition at line 33 of file hfc_pci.h.

#define HFCPCI_MST_EMOD   0xB4

Definition at line 56 of file hfc_pci.h.

#define HFCPCI_MST_MODE   0xB8

Definition at line 57 of file hfc_pci.h.

#define HFCPCI_NBUSY   0x04

Definition at line 94 of file hfc_pci.h.

#define HFCPCI_NT_G2_G3   0x80

Definition at line 139 of file hfc_pci.h.

#define HFCPCI_PCI_PROC   0x02

Definition at line 93 of file hfc_pci.h.

#define HFCPCI_PMESEL   0x80

Definition at line 132 of file hfc_pci.h.

#define HFCPCI_PROC_TRANS   0x01

Definition at line 128 of file hfc_pci.h.

#define HFCPCI_RESET   0x08

Definition at line 113 of file hfc_pci.h.

#define HFCPCI_SCTRL   0xC4

Definition at line 78 of file hfc_pci.h.

#define HFCPCI_SCTRL_E   0xC8

Definition at line 79 of file hfc_pci.h.

#define HFCPCI_SCTRL_R   0xCC

Definition at line 80 of file hfc_pci.h.

#define HFCPCI_SLAVE   0x00

Definition at line 143 of file hfc_pci.h.

#define HFCPCI_SQ   0xD0

Definition at line 81 of file hfc_pci.h.

#define HFCPCI_STATE_MSK   0x0F

Definition at line 135 of file hfc_pci.h.

#define HFCPCI_STATES   0xC0

Definition at line 77 of file hfc_pci.h.

#define HFCPCI_STATINT   0x20

Definition at line 96 of file hfc_pci.h.

#define HFCPCI_STATUS   0x70

Definition at line 73 of file hfc_pci.h.

#define HFCPCI_TIM25   0x10

Definition at line 103 of file hfc_pci.h.

#define HFCPCI_TIM3_125   0x04

Definition at line 102 of file hfc_pci.h.

#define HFCPCI_TIM400   0x18

Definition at line 105 of file hfc_pci.h.

#define HFCPCI_TIM50   0x14

Definition at line 104 of file hfc_pci.h.

#define HFCPCI_TIM800   0x1C

Definition at line 106 of file hfc_pci.h.

#define HFCPCI_TIMER_ELAP   0x10

Definition at line 95 of file hfc_pci.h.

#define HFCPCI_TRANSB1   0x01

Definition at line 109 of file hfc_pci.h.

#define HFCPCI_TRANSB2   0x02

Definition at line 108 of file hfc_pci.h.

#define HFCPCI_TRM   0x48

Definition at line 64 of file hfc_pci.h.

#define HFCPCI_TRxR   0x0C

Definition at line 31 of file hfc_pci.h.

#define MAX_B_FRAMES   31

Definition at line 179 of file hfc_pci.h.

#define MAX_D_FRAMES   15

Definition at line 178 of file hfc_pci.h.

#define PCI_ENA_MASTER   0x04

Definition at line 25 of file hfc_pci.h.

#define PCI_ENA_MEMIO   0x02

Definition at line 24 of file hfc_pci.h.

#define Read_hfc (   a,
  b 
)    (*(((u_char *)a->hw.hfcpci.pci_io) + b))

Definition at line 232 of file hfc_pci.h.

#define SCTRL_B1_ENA   0x01

Definition at line 147 of file hfc_pci.h.

#define SCTRL_B2_ENA   0x02

Definition at line 148 of file hfc_pci.h.

#define SCTRL_LOW_PRIO   0x08

Definition at line 151 of file hfc_pci.h.

#define SCTRL_MODE_NT   0x04

Definition at line 150 of file hfc_pci.h.

#define SCTRL_MODE_TE   0x00

Definition at line 149 of file hfc_pci.h.

#define SCTRL_NONE_CAP   0x40

Definition at line 154 of file hfc_pci.h.

#define SCTRL_PWR_DOWN   0x80

Definition at line 155 of file hfc_pci.h.

#define SCTRL_SQ_ENA   0x10

Definition at line 152 of file hfc_pci.h.

#define SCTRL_TEST   0x20

Definition at line 153 of file hfc_pci.h.

#define Write_hfc (   a,
  b,
  c 
)    (*(((u_char *)a->hw.hfcpci.pci_io) + b) = c)

Definition at line 231 of file hfc_pci.h.

Function Documentation

void main_irq_hcpci ( struct BCState *  bcs)
void releasehfcpci ( struct IsdnCardState *  cs)