Go to the documentation of this file.
28 #define HFCPCI_BTRANS_THRESHOLD 128
29 #define HFCPCI_FILLEMPTY 64
30 #define HFCPCI_BTRANS_THRESMASK 0x00
33 #define PCI_ENA_MEMIO 0x02
34 #define PCI_ENA_MASTER 0x04
37 #define HCFPCI_C_I 0x08
38 #define HFCPCI_TRxR 0x0C
39 #define HFCPCI_MON1_D 0x28
40 #define HFCPCI_MON2_D 0x2C
43 #define HFCPCI_B1_SSL 0x80
44 #define HFCPCI_B2_SSL 0x84
45 #define HFCPCI_AUX1_SSL 0x88
46 #define HFCPCI_AUX2_SSL 0x8C
47 #define HFCPCI_B1_RSL 0x90
48 #define HFCPCI_B2_RSL 0x94
49 #define HFCPCI_AUX1_RSL 0x98
50 #define HFCPCI_AUX2_RSL 0x9C
53 #define HFCPCI_B1_D 0xA0
54 #define HFCPCI_B2_D 0xA4
55 #define HFCPCI_AUX1_D 0xA8
56 #define HFCPCI_AUX2_D 0xAC
59 #define HFCPCI_MST_EMOD 0xB4
60 #define HFCPCI_MST_MODE 0xB8
61 #define HFCPCI_CONNECT 0xBC
65 #define HFCPCI_FIFO_EN 0x44
66 #define HFCPCI_TRM 0x48
67 #define HFCPCI_B_MODE 0x4C
68 #define HFCPCI_CHIP_ID 0x58
69 #define HFCPCI_CIRM 0x60
70 #define HFCPCI_CTMT 0x64
71 #define HFCPCI_INT_M1 0x68
72 #define HFCPCI_INT_M2 0x6C
73 #define HFCPCI_INT_S1 0x78
74 #define HFCPCI_INT_S2 0x7C
75 #define HFCPCI_STATUS 0x70
78 #define HFCPCI_STATES 0xC0
79 #define HFCPCI_SCTRL 0xC4
80 #define HFCPCI_SCTRL_E 0xC8
81 #define HFCPCI_SCTRL_R 0xCC
82 #define HFCPCI_SQ 0xD0
83 #define HFCPCI_CLKDEL 0xDC
84 #define HFCPCI_B1_REC 0xF0
85 #define HFCPCI_B1_SEND 0xF0
86 #define HFCPCI_B2_REC 0xF4
87 #define HFCPCI_B2_SEND 0xF4
88 #define HFCPCI_D_REC 0xF8
89 #define HFCPCI_D_SEND 0xF8
90 #define HFCPCI_E_REC 0xFC
94 #define HFCPCI_PCI_PROC 0x02
95 #define HFCPCI_NBUSY 0x04
96 #define HFCPCI_TIMER_ELAP 0x10
97 #define HFCPCI_STATINT 0x20
98 #define HFCPCI_FRAMEINT 0x40
99 #define HFCPCI_ANYINT 0x80
102 #define HFCPCI_CLTIMER 0x80
103 #define HFCPCI_TIM3_125 0x04
104 #define HFCPCI_TIM25 0x10
105 #define HFCPCI_TIM50 0x14
106 #define HFCPCI_TIM400 0x18
107 #define HFCPCI_TIM800 0x1C
108 #define HFCPCI_AUTO_TIMER 0x20
109 #define HFCPCI_TRANSB2 0x02
110 #define HFCPCI_TRANSB1 0x01
113 #define HFCPCI_AUX_MSK 0x07
114 #define HFCPCI_RESET 0x08
115 #define HFCPCI_B1_REV 0x40
116 #define HFCPCI_B2_REV 0x80
119 #define HFCPCI_INTS_B1TRANS 0x01
120 #define HFCPCI_INTS_B2TRANS 0x02
121 #define HFCPCI_INTS_DTRANS 0x04
122 #define HFCPCI_INTS_B1REC 0x08
123 #define HFCPCI_INTS_B2REC 0x10
124 #define HFCPCI_INTS_DREC 0x20
125 #define HFCPCI_INTS_L1STATE 0x40
126 #define HFCPCI_INTS_TIMER 0x80
129 #define HFCPCI_PROC_TRANS 0x01
130 #define HFCPCI_GCI_I_CHG 0x02
131 #define HFCPCI_GCI_MON_REC 0x04
132 #define HFCPCI_IRQ_ENABLE 0x08
133 #define HFCPCI_PMESEL 0x80
136 #define HFCPCI_STATE_MSK 0x0F
137 #define HFCPCI_LOAD_STATE 0x10
138 #define HFCPCI_ACTIVATE 0x20
139 #define HFCPCI_DO_ACTION 0x40
140 #define HFCPCI_NT_G2_G3 0x80
143 #define HFCPCI_MASTER 0x01
144 #define HFCPCI_SLAVE 0x00
145 #define HFCPCI_F0IO_POSITIV 0x02
146 #define HFCPCI_F0_NEGATIV 0x04
147 #define HFCPCI_F0_2C4 0x08
151 #define SCTRL_B1_ENA 0x01
152 #define SCTRL_B2_ENA 0x02
153 #define SCTRL_MODE_TE 0x00
154 #define SCTRL_MODE_NT 0x04
155 #define SCTRL_LOW_PRIO 0x08
156 #define SCTRL_SQ_ENA 0x10
157 #define SCTRL_TEST 0x20
158 #define SCTRL_NONE_CAP 0x40
159 #define SCTRL_PWR_DOWN 0x80
162 #define HFCPCI_AUTO_AWAKE 0x01
163 #define HFCPCI_DBIT_1 0x04
164 #define HFCPCI_IGNORE_COL 0x08
165 #define HFCPCI_CHG_B1_B2 0x80
168 #define HFCPCI_FIFOEN_B1 0x03
169 #define HFCPCI_FIFOEN_B2 0x0C
170 #define HFCPCI_FIFOEN_DTX 0x10
171 #define HFCPCI_FIFOEN_B1TX 0x01
172 #define HFCPCI_FIFOEN_B1RX 0x02
173 #define HFCPCI_FIFOEN_B2TX 0x04
174 #define HFCPCI_FIFOEN_B2RX 0x08
178 #define MAX_D_FRAMES 15
179 #define MAX_B_FRAMES 31
180 #define B_SUB_VAL 0x200
181 #define B_FIFO_SIZE (0x2000 - B_SUB_VAL)
182 #define D_FIFO_SIZE 512
183 #define D_FREG_MASK 0xF
227 #define Write_hfc(a, b, c) (writeb(c, (a->hw.pci_io) + b))
228 #define Read_hfc(a, b) (readb((a->hw.pci_io) + b))