diff options
Diffstat (limited to 'drivers/isdn/hisax/config.c')
-rw-r--r-- | drivers/isdn/hisax/config.c | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index c110f8679bab..b5edc0eeec06 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Author Karsten Keil | 3 | * Author Karsten Keil |
4 | * Copyright by Karsten Keil <keil@isdn4linux.de> | 4 | * Copyright by Karsten Keil <keil@isdn4linux.de> |
5 | * by Kai Germaschewski <kai.germaschewski@gmx.de> | 5 | * by Kai Germaschewski <kai.germaschewski@gmx.de> |
6 | * | 6 | * |
7 | * This software may be used and distributed according to the terms | 7 | * This software may be used and distributed according to the terms |
8 | * of the GNU General Public License, incorporated herein by reference. | 8 | * of the GNU General Public License, incorporated herein by reference. |
9 | * | 9 | * |
@@ -61,8 +61,8 @@ | |||
61 | * 24 Dr Neuhaus Niccy PnP/PCI card p0=irq p1=IO0 p2=IO1 (PnP only) | 61 | * 24 Dr Neuhaus Niccy PnP/PCI card p0=irq p1=IO0 p2=IO1 (PnP only) |
62 | * 25 Teles S0Box p0=irq p1=iobase (from isapnp setup) | 62 | * 25 Teles S0Box p0=irq p1=iobase (from isapnp setup) |
63 | * 26 AVM A1 PCMCIA (Fritz) p0=irq p1=iobase | 63 | * 26 AVM A1 PCMCIA (Fritz) p0=irq p1=iobase |
64 | * 27 AVM PnP/PCI p0=irq p1=iobase (PCI no parameter) | 64 | * 27 AVM PnP/PCI p0=irq p1=iobase (PCI no parameter) |
65 | * 28 Sedlbauer Speed Fax+ p0=irq p1=iobase (from isapnp setup) | 65 | * 28 Sedlbauer Speed Fax+ p0=irq p1=iobase (from isapnp setup) |
66 | * 29 Siemens I-Surf p0=irq p1=iobase p2=memory (from isapnp setup) | 66 | * 29 Siemens I-Surf p0=irq p1=iobase p2=memory (from isapnp setup) |
67 | * 30 ACER P10 p0=irq p1=iobase (from isapnp setup) | 67 | * 30 ACER P10 p0=irq p1=iobase (from isapnp setup) |
68 | * 31 HST Saphir p0=irq p1=iobase | 68 | * 31 HST Saphir p0=irq p1=iobase |
@@ -88,200 +88,200 @@ const char *CardType[] = { | |||
88 | "Teles PCMCIA", "ITK ix1-micro Rev.2", "Elsa PCMCIA", | 88 | "Teles PCMCIA", "ITK ix1-micro Rev.2", "Elsa PCMCIA", |
89 | "Eicon.Diehl Diva", "ISDNLink", "TeleInt", "Teles 16.3c", | 89 | "Eicon.Diehl Diva", "ISDNLink", "TeleInt", "Teles 16.3c", |
90 | "Sedlbauer Speed Card", "USR Sportster", "ith mic Linux", | 90 | "Sedlbauer Speed Card", "USR Sportster", "ith mic Linux", |
91 | "Elsa PCI", "Compaq ISA", "NETjet-S", "Teles PCI", | 91 | "Elsa PCI", "Compaq ISA", "NETjet-S", "Teles PCI", |
92 | "Sedlbauer Speed Star (PCMCIA)", "AMD 7930", "NICCY", "S0Box", | 92 | "Sedlbauer Speed Star (PCMCIA)", "AMD 7930", "NICCY", "S0Box", |
93 | "AVM A1 (PCMCIA)", "AVM Fritz PnP/PCI", "Sedlbauer Speed Fax +", | 93 | "AVM A1 (PCMCIA)", "AVM Fritz PnP/PCI", "Sedlbauer Speed Fax +", |
94 | "Siemens I-Surf", "Acer P10", "HST Saphir", "Telekom A4T", | 94 | "Siemens I-Surf", "Acer P10", "HST Saphir", "Telekom A4T", |
95 | "Scitel Quadro", "Gazel", "HFC 2BDS0 PCI", "Winbond 6692", | 95 | "Scitel Quadro", "Gazel", "HFC 2BDS0 PCI", "Winbond 6692", |
96 | "HFC 2BDS0 SX", "NETspider-U", "HFC-2BDS0-SP PCMCIA", | 96 | "HFC 2BDS0 SX", "NETspider-U", "HFC-2BDS0-SP PCMCIA", |
97 | "Hotplug", "Formula-n enter:now PCI a/b", | 97 | "Hotplug", "Formula-n enter:now PCI a/b", |
98 | }; | 98 | }; |
99 | 99 | ||
100 | #ifdef CONFIG_HISAX_ELSA | 100 | #ifdef CONFIG_HISAX_ELSA |
101 | #define DEFAULT_CARD ISDN_CTYPE_ELSA | 101 | #define DEFAULT_CARD ISDN_CTYPE_ELSA |
102 | #define DEFAULT_CFG {0,0,0,0} | 102 | #define DEFAULT_CFG {0, 0, 0, 0} |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | #ifdef CONFIG_HISAX_AVM_A1 | 105 | #ifdef CONFIG_HISAX_AVM_A1 |
106 | #undef DEFAULT_CARD | 106 | #undef DEFAULT_CARD |
107 | #undef DEFAULT_CFG | 107 | #undef DEFAULT_CFG |
108 | #define DEFAULT_CARD ISDN_CTYPE_A1 | 108 | #define DEFAULT_CARD ISDN_CTYPE_A1 |
109 | #define DEFAULT_CFG {10,0x340,0,0} | 109 | #define DEFAULT_CFG {10, 0x340, 0, 0} |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #ifdef CONFIG_HISAX_AVM_A1_PCMCIA | 112 | #ifdef CONFIG_HISAX_AVM_A1_PCMCIA |
113 | #undef DEFAULT_CARD | 113 | #undef DEFAULT_CARD |
114 | #undef DEFAULT_CFG | 114 | #undef DEFAULT_CFG |
115 | #define DEFAULT_CARD ISDN_CTYPE_A1_PCMCIA | 115 | #define DEFAULT_CARD ISDN_CTYPE_A1_PCMCIA |
116 | #define DEFAULT_CFG {11,0x170,0,0} | 116 | #define DEFAULT_CFG {11, 0x170, 0, 0} |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | #ifdef CONFIG_HISAX_FRITZPCI | 119 | #ifdef CONFIG_HISAX_FRITZPCI |
120 | #undef DEFAULT_CARD | 120 | #undef DEFAULT_CARD |
121 | #undef DEFAULT_CFG | 121 | #undef DEFAULT_CFG |
122 | #define DEFAULT_CARD ISDN_CTYPE_FRITZPCI | 122 | #define DEFAULT_CARD ISDN_CTYPE_FRITZPCI |
123 | #define DEFAULT_CFG {0,0,0,0} | 123 | #define DEFAULT_CFG {0, 0, 0, 0} |
124 | #endif | 124 | #endif |
125 | 125 | ||
126 | #ifdef CONFIG_HISAX_16_3 | 126 | #ifdef CONFIG_HISAX_16_3 |
127 | #undef DEFAULT_CARD | 127 | #undef DEFAULT_CARD |
128 | #undef DEFAULT_CFG | 128 | #undef DEFAULT_CFG |
129 | #define DEFAULT_CARD ISDN_CTYPE_16_3 | 129 | #define DEFAULT_CARD ISDN_CTYPE_16_3 |
130 | #define DEFAULT_CFG {15,0x180,0,0} | 130 | #define DEFAULT_CFG {15, 0x180, 0, 0} |
131 | #endif | 131 | #endif |
132 | 132 | ||
133 | #ifdef CONFIG_HISAX_S0BOX | 133 | #ifdef CONFIG_HISAX_S0BOX |
134 | #undef DEFAULT_CARD | 134 | #undef DEFAULT_CARD |
135 | #undef DEFAULT_CFG | 135 | #undef DEFAULT_CFG |
136 | #define DEFAULT_CARD ISDN_CTYPE_S0BOX | 136 | #define DEFAULT_CARD ISDN_CTYPE_S0BOX |
137 | #define DEFAULT_CFG {7,0x378,0,0} | 137 | #define DEFAULT_CFG {7, 0x378, 0, 0} |
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | #ifdef CONFIG_HISAX_16_0 | 140 | #ifdef CONFIG_HISAX_16_0 |
141 | #undef DEFAULT_CARD | 141 | #undef DEFAULT_CARD |
142 | #undef DEFAULT_CFG | 142 | #undef DEFAULT_CFG |
143 | #define DEFAULT_CARD ISDN_CTYPE_16_0 | 143 | #define DEFAULT_CARD ISDN_CTYPE_16_0 |
144 | #define DEFAULT_CFG {15,0xd0000,0xd80,0} | 144 | #define DEFAULT_CFG {15, 0xd0000, 0xd80, 0} |
145 | #endif | 145 | #endif |
146 | 146 | ||
147 | #ifdef CONFIG_HISAX_TELESPCI | 147 | #ifdef CONFIG_HISAX_TELESPCI |
148 | #undef DEFAULT_CARD | 148 | #undef DEFAULT_CARD |
149 | #undef DEFAULT_CFG | 149 | #undef DEFAULT_CFG |
150 | #define DEFAULT_CARD ISDN_CTYPE_TELESPCI | 150 | #define DEFAULT_CARD ISDN_CTYPE_TELESPCI |
151 | #define DEFAULT_CFG {0,0,0,0} | 151 | #define DEFAULT_CFG {0, 0, 0, 0} |
152 | #endif | 152 | #endif |
153 | 153 | ||
154 | #ifdef CONFIG_HISAX_IX1MICROR2 | 154 | #ifdef CONFIG_HISAX_IX1MICROR2 |
155 | #undef DEFAULT_CARD | 155 | #undef DEFAULT_CARD |
156 | #undef DEFAULT_CFG | 156 | #undef DEFAULT_CFG |
157 | #define DEFAULT_CARD ISDN_CTYPE_IX1MICROR2 | 157 | #define DEFAULT_CARD ISDN_CTYPE_IX1MICROR2 |
158 | #define DEFAULT_CFG {5,0x390,0,0} | 158 | #define DEFAULT_CFG {5, 0x390, 0, 0} |
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | #ifdef CONFIG_HISAX_DIEHLDIVA | 161 | #ifdef CONFIG_HISAX_DIEHLDIVA |
162 | #undef DEFAULT_CARD | 162 | #undef DEFAULT_CARD |
163 | #undef DEFAULT_CFG | 163 | #undef DEFAULT_CFG |
164 | #define DEFAULT_CARD ISDN_CTYPE_DIEHLDIVA | 164 | #define DEFAULT_CARD ISDN_CTYPE_DIEHLDIVA |
165 | #define DEFAULT_CFG {0,0x0,0,0} | 165 | #define DEFAULT_CFG {0, 0x0, 0, 0} |
166 | #endif | 166 | #endif |
167 | 167 | ||
168 | #ifdef CONFIG_HISAX_ASUSCOM | 168 | #ifdef CONFIG_HISAX_ASUSCOM |
169 | #undef DEFAULT_CARD | 169 | #undef DEFAULT_CARD |
170 | #undef DEFAULT_CFG | 170 | #undef DEFAULT_CFG |
171 | #define DEFAULT_CARD ISDN_CTYPE_ASUSCOM | 171 | #define DEFAULT_CARD ISDN_CTYPE_ASUSCOM |
172 | #define DEFAULT_CFG {5,0x200,0,0} | 172 | #define DEFAULT_CFG {5, 0x200, 0, 0} |
173 | #endif | 173 | #endif |
174 | 174 | ||
175 | #ifdef CONFIG_HISAX_TELEINT | 175 | #ifdef CONFIG_HISAX_TELEINT |
176 | #undef DEFAULT_CARD | 176 | #undef DEFAULT_CARD |
177 | #undef DEFAULT_CFG | 177 | #undef DEFAULT_CFG |
178 | #define DEFAULT_CARD ISDN_CTYPE_TELEINT | 178 | #define DEFAULT_CARD ISDN_CTYPE_TELEINT |
179 | #define DEFAULT_CFG {5,0x300,0,0} | 179 | #define DEFAULT_CFG {5, 0x300, 0, 0} |
180 | #endif | 180 | #endif |
181 | 181 | ||
182 | #ifdef CONFIG_HISAX_SEDLBAUER | 182 | #ifdef CONFIG_HISAX_SEDLBAUER |
183 | #undef DEFAULT_CARD | 183 | #undef DEFAULT_CARD |
184 | #undef DEFAULT_CFG | 184 | #undef DEFAULT_CFG |
185 | #define DEFAULT_CARD ISDN_CTYPE_SEDLBAUER | 185 | #define DEFAULT_CARD ISDN_CTYPE_SEDLBAUER |
186 | #define DEFAULT_CFG {11,0x270,0,0} | 186 | #define DEFAULT_CFG {11, 0x270, 0, 0} |
187 | #endif | 187 | #endif |
188 | 188 | ||
189 | #ifdef CONFIG_HISAX_SPORTSTER | 189 | #ifdef CONFIG_HISAX_SPORTSTER |
190 | #undef DEFAULT_CARD | 190 | #undef DEFAULT_CARD |
191 | #undef DEFAULT_CFG | 191 | #undef DEFAULT_CFG |
192 | #define DEFAULT_CARD ISDN_CTYPE_SPORTSTER | 192 | #define DEFAULT_CARD ISDN_CTYPE_SPORTSTER |
193 | #define DEFAULT_CFG {7,0x268,0,0} | 193 | #define DEFAULT_CFG {7, 0x268, 0, 0} |
194 | #endif | 194 | #endif |
195 | 195 | ||
196 | #ifdef CONFIG_HISAX_MIC | 196 | #ifdef CONFIG_HISAX_MIC |
197 | #undef DEFAULT_CARD | 197 | #undef DEFAULT_CARD |
198 | #undef DEFAULT_CFG | 198 | #undef DEFAULT_CFG |
199 | #define DEFAULT_CARD ISDN_CTYPE_MIC | 199 | #define DEFAULT_CARD ISDN_CTYPE_MIC |
200 | #define DEFAULT_CFG {12,0x3e0,0,0} | 200 | #define DEFAULT_CFG {12, 0x3e0, 0, 0} |
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | #ifdef CONFIG_HISAX_NETJET | 203 | #ifdef CONFIG_HISAX_NETJET |
204 | #undef DEFAULT_CARD | 204 | #undef DEFAULT_CARD |
205 | #undef DEFAULT_CFG | 205 | #undef DEFAULT_CFG |
206 | #define DEFAULT_CARD ISDN_CTYPE_NETJET_S | 206 | #define DEFAULT_CARD ISDN_CTYPE_NETJET_S |
207 | #define DEFAULT_CFG {0,0,0,0} | 207 | #define DEFAULT_CFG {0, 0, 0, 0} |
208 | #endif | 208 | #endif |
209 | 209 | ||
210 | #ifdef CONFIG_HISAX_HFCS | 210 | #ifdef CONFIG_HISAX_HFCS |
211 | #undef DEFAULT_CARD | 211 | #undef DEFAULT_CARD |
212 | #undef DEFAULT_CFG | 212 | #undef DEFAULT_CFG |
213 | #define DEFAULT_CARD ISDN_CTYPE_TELES3C | 213 | #define DEFAULT_CARD ISDN_CTYPE_TELES3C |
214 | #define DEFAULT_CFG {5,0x500,0,0} | 214 | #define DEFAULT_CFG {5, 0x500, 0, 0} |
215 | #endif | 215 | #endif |
216 | 216 | ||
217 | #ifdef CONFIG_HISAX_HFC_PCI | 217 | #ifdef CONFIG_HISAX_HFC_PCI |
218 | #undef DEFAULT_CARD | 218 | #undef DEFAULT_CARD |
219 | #undef DEFAULT_CFG | 219 | #undef DEFAULT_CFG |
220 | #define DEFAULT_CARD ISDN_CTYPE_HFC_PCI | 220 | #define DEFAULT_CARD ISDN_CTYPE_HFC_PCI |
221 | #define DEFAULT_CFG {0,0,0,0} | 221 | #define DEFAULT_CFG {0, 0, 0, 0} |
222 | #endif | 222 | #endif |
223 | 223 | ||
224 | #ifdef CONFIG_HISAX_HFC_SX | 224 | #ifdef CONFIG_HISAX_HFC_SX |
225 | #undef DEFAULT_CARD | 225 | #undef DEFAULT_CARD |
226 | #undef DEFAULT_CFG | 226 | #undef DEFAULT_CFG |
227 | #define DEFAULT_CARD ISDN_CTYPE_HFC_SX | 227 | #define DEFAULT_CARD ISDN_CTYPE_HFC_SX |
228 | #define DEFAULT_CFG {5,0x2E0,0,0} | 228 | #define DEFAULT_CFG {5, 0x2E0, 0, 0} |
229 | #endif | 229 | #endif |
230 | 230 | ||
231 | #ifdef CONFIG_HISAX_NICCY | 231 | #ifdef CONFIG_HISAX_NICCY |
232 | #undef DEFAULT_CARD | 232 | #undef DEFAULT_CARD |
233 | #undef DEFAULT_CFG | 233 | #undef DEFAULT_CFG |
234 | #define DEFAULT_CARD ISDN_CTYPE_NICCY | 234 | #define DEFAULT_CARD ISDN_CTYPE_NICCY |
235 | #define DEFAULT_CFG {0,0x0,0,0} | 235 | #define DEFAULT_CFG {0, 0x0, 0, 0} |
236 | #endif | 236 | #endif |
237 | 237 | ||
238 | #ifdef CONFIG_HISAX_ISURF | 238 | #ifdef CONFIG_HISAX_ISURF |
239 | #undef DEFAULT_CARD | 239 | #undef DEFAULT_CARD |
240 | #undef DEFAULT_CFG | 240 | #undef DEFAULT_CFG |
241 | #define DEFAULT_CARD ISDN_CTYPE_ISURF | 241 | #define DEFAULT_CARD ISDN_CTYPE_ISURF |
242 | #define DEFAULT_CFG {5,0x100,0xc8000,0} | 242 | #define DEFAULT_CFG {5, 0x100, 0xc8000, 0} |
243 | #endif | 243 | #endif |
244 | 244 | ||
245 | #ifdef CONFIG_HISAX_HSTSAPHIR | 245 | #ifdef CONFIG_HISAX_HSTSAPHIR |
246 | #undef DEFAULT_CARD | 246 | #undef DEFAULT_CARD |
247 | #undef DEFAULT_CFG | 247 | #undef DEFAULT_CFG |
248 | #define DEFAULT_CARD ISDN_CTYPE_HSTSAPHIR | 248 | #define DEFAULT_CARD ISDN_CTYPE_HSTSAPHIR |
249 | #define DEFAULT_CFG {5,0x250,0,0} | 249 | #define DEFAULT_CFG {5, 0x250, 0, 0} |
250 | #endif | 250 | #endif |
251 | 251 | ||
252 | #ifdef CONFIG_HISAX_BKM_A4T | 252 | #ifdef CONFIG_HISAX_BKM_A4T |
253 | #undef DEFAULT_CARD | 253 | #undef DEFAULT_CARD |
254 | #undef DEFAULT_CFG | 254 | #undef DEFAULT_CFG |
255 | #define DEFAULT_CARD ISDN_CTYPE_BKM_A4T | 255 | #define DEFAULT_CARD ISDN_CTYPE_BKM_A4T |
256 | #define DEFAULT_CFG {0,0x0,0,0} | 256 | #define DEFAULT_CFG {0, 0x0, 0, 0} |
257 | #endif | 257 | #endif |
258 | 258 | ||
259 | #ifdef CONFIG_HISAX_SCT_QUADRO | 259 | #ifdef CONFIG_HISAX_SCT_QUADRO |
260 | #undef DEFAULT_CARD | 260 | #undef DEFAULT_CARD |
261 | #undef DEFAULT_CFG | 261 | #undef DEFAULT_CFG |
262 | #define DEFAULT_CARD ISDN_CTYPE_SCT_QUADRO | 262 | #define DEFAULT_CARD ISDN_CTYPE_SCT_QUADRO |
263 | #define DEFAULT_CFG {1,0x0,0,0} | 263 | #define DEFAULT_CFG {1, 0x0, 0, 0} |
264 | #endif | 264 | #endif |
265 | 265 | ||
266 | #ifdef CONFIG_HISAX_GAZEL | 266 | #ifdef CONFIG_HISAX_GAZEL |
267 | #undef DEFAULT_CARD | 267 | #undef DEFAULT_CARD |
268 | #undef DEFAULT_CFG | 268 | #undef DEFAULT_CFG |
269 | #define DEFAULT_CARD ISDN_CTYPE_GAZEL | 269 | #define DEFAULT_CARD ISDN_CTYPE_GAZEL |
270 | #define DEFAULT_CFG {15,0x180,0,0} | 270 | #define DEFAULT_CFG {15, 0x180, 0, 0} |
271 | #endif | 271 | #endif |
272 | 272 | ||
273 | #ifdef CONFIG_HISAX_W6692 | 273 | #ifdef CONFIG_HISAX_W6692 |
274 | #undef DEFAULT_CARD | 274 | #undef DEFAULT_CARD |
275 | #undef DEFAULT_CFG | 275 | #undef DEFAULT_CFG |
276 | #define DEFAULT_CARD ISDN_CTYPE_W6692 | 276 | #define DEFAULT_CARD ISDN_CTYPE_W6692 |
277 | #define DEFAULT_CFG {0,0,0,0} | 277 | #define DEFAULT_CFG {0, 0, 0, 0} |
278 | #endif | 278 | #endif |
279 | 279 | ||
280 | #ifdef CONFIG_HISAX_NETJET_U | 280 | #ifdef CONFIG_HISAX_NETJET_U |
281 | #undef DEFAULT_CARD | 281 | #undef DEFAULT_CARD |
282 | #undef DEFAULT_CFG | 282 | #undef DEFAULT_CFG |
283 | #define DEFAULT_CARD ISDN_CTYPE_NETJET_U | 283 | #define DEFAULT_CARD ISDN_CTYPE_NETJET_U |
284 | #define DEFAULT_CFG {0,0,0,0} | 284 | #define DEFAULT_CFG {0, 0, 0, 0} |
285 | #endif | 285 | #endif |
286 | 286 | ||
287 | #ifdef CONFIG_HISAX_1TR6 | 287 | #ifdef CONFIG_HISAX_1TR6 |
@@ -306,21 +306,21 @@ const char *CardType[] = { | |||
306 | #endif | 306 | #endif |
307 | #ifndef DEFAULT_CARD | 307 | #ifndef DEFAULT_CARD |
308 | #define DEFAULT_CARD 0 | 308 | #define DEFAULT_CARD 0 |
309 | #define DEFAULT_CFG {0,0,0,0} | 309 | #define DEFAULT_CFG {0, 0, 0, 0} |
310 | #endif | 310 | #endif |
311 | 311 | ||
312 | #define FIRST_CARD { \ | 312 | #define FIRST_CARD { \ |
313 | DEFAULT_CARD, \ | 313 | DEFAULT_CARD, \ |
314 | DEFAULT_PROTO, \ | 314 | DEFAULT_PROTO, \ |
315 | DEFAULT_CFG, \ | 315 | DEFAULT_CFG, \ |
316 | NULL, \ | 316 | NULL, \ |
317 | } | 317 | } |
318 | 318 | ||
319 | struct IsdnCard cards[HISAX_MAX_CARDS] = { | 319 | struct IsdnCard cards[HISAX_MAX_CARDS] = { |
320 | FIRST_CARD, | 320 | FIRST_CARD, |
321 | }; | 321 | }; |
322 | 322 | ||
323 | #define HISAX_IDSIZE (HISAX_MAX_CARDS*8) | 323 | #define HISAX_IDSIZE (HISAX_MAX_CARDS * 8) |
324 | static char HiSaxID[HISAX_IDSIZE] = { 0, }; | 324 | static char HiSaxID[HISAX_IDSIZE] = { 0, }; |
325 | 325 | ||
326 | static char *HiSax_id = HiSaxID; | 326 | static char *HiSax_id = HiSaxID; |
@@ -400,7 +400,7 @@ static void __init HiSaxVersion(void) | |||
400 | } | 400 | } |
401 | 401 | ||
402 | #ifndef MODULE | 402 | #ifndef MODULE |
403 | #define MAX_ARG (HISAX_MAX_CARDS*5) | 403 | #define MAX_ARG (HISAX_MAX_CARDS * 5) |
404 | static int __init HiSax_setup(char *line) | 404 | static int __init HiSax_setup(char *line) |
405 | { | 405 | { |
406 | int i, j, argc; | 406 | int i, j, argc; |
@@ -441,7 +441,7 @@ static int __init HiSax_setup(char *line) | |||
441 | } | 441 | } |
442 | i++; | 442 | i++; |
443 | } | 443 | } |
444 | if (str && *str) { | 444 | if (str && *str) { |
445 | if (strlen(str) < HISAX_IDSIZE) | 445 | if (strlen(str) < HISAX_IDSIZE) |
446 | strcpy(HiSaxID, str); | 446 | strcpy(HiSaxID, str); |
447 | else | 447 | else |
@@ -813,11 +813,11 @@ static irqreturn_t card_irq(int intno, void *dev_id) | |||
813 | 813 | ||
814 | static int init_card(struct IsdnCardState *cs) | 814 | static int init_card(struct IsdnCardState *cs) |
815 | { | 815 | { |
816 | int irq_cnt, cnt = 3, ret; | 816 | int irq_cnt, cnt = 3, ret; |
817 | 817 | ||
818 | if (!cs->irq) { | 818 | if (!cs->irq) { |
819 | ret = cs->cardmsg(cs, CARD_INIT, NULL); | 819 | ret = cs->cardmsg(cs, CARD_INIT, NULL); |
820 | return(ret); | 820 | return (ret); |
821 | } | 821 | } |
822 | irq_cnt = cs->irq_cnt = 0; | 822 | irq_cnt = cs->irq_cnt = 0; |
823 | printk(KERN_INFO "%s: IRQ %d count %d\n", CardType[cs->typ], | 823 | printk(KERN_INFO "%s: IRQ %d count %d\n", CardType[cs->typ], |
@@ -1142,12 +1142,12 @@ static int hisax_cs_setup(int cardnr, struct IsdnCard *card, | |||
1142 | /* init_card only handles interrupts which are not */ | 1142 | /* init_card only handles interrupts which are not */ |
1143 | /* used here for the loadable driver */ | 1143 | /* used here for the loadable driver */ |
1144 | switch (card->typ) { | 1144 | switch (card->typ) { |
1145 | case ISDN_CTYPE_DYNAMIC: | 1145 | case ISDN_CTYPE_DYNAMIC: |
1146 | ret = 0; | 1146 | ret = 0; |
1147 | break; | 1147 | break; |
1148 | default: | 1148 | default: |
1149 | ret = init_card(cs); | 1149 | ret = init_card(cs); |
1150 | break; | 1150 | break; |
1151 | } | 1151 | } |
1152 | if (ret) { | 1152 | if (ret) { |
1153 | closecard(cardnr); | 1153 | closecard(cardnr); |
@@ -1203,10 +1203,10 @@ static int __ref checkcard(int cardnr, char *id, int *busy_flag, | |||
1203 | ret = hisax_cs_setup(cardnr, card, cs); | 1203 | ret = hisax_cs_setup(cardnr, card, cs); |
1204 | goto out; | 1204 | goto out; |
1205 | 1205 | ||
1206 | outf_cs: | 1206 | outf_cs: |
1207 | kfree(cs); | 1207 | kfree(cs); |
1208 | card->cs = NULL; | 1208 | card->cs = NULL; |
1209 | out: | 1209 | out: |
1210 | return ret; | 1210 | return ret; |
1211 | } | 1211 | } |
1212 | 1212 | ||
@@ -1256,8 +1256,8 @@ static int __init HiSax_inithardware(int *busy_flag) | |||
1256 | /* make sure we don't oops the module */ | 1256 | /* make sure we don't oops the module */ |
1257 | if (cards[i].typ > 0 && cards[i].typ <= ISDN_CTYPE_COUNT) { | 1257 | if (cards[i].typ > 0 && cards[i].typ <= ISDN_CTYPE_COUNT) { |
1258 | printk(KERN_WARNING | 1258 | printk(KERN_WARNING |
1259 | "HiSax: Card %s not installed !\n", | 1259 | "HiSax: Card %s not installed !\n", |
1260 | CardType[cards[i].typ]); | 1260 | CardType[cards[i].typ]); |
1261 | } | 1261 | } |
1262 | HiSax_shiftcards(i); | 1262 | HiSax_shiftcards(i); |
1263 | nrcards--; | 1263 | nrcards--; |
@@ -1521,15 +1521,15 @@ static int __init HiSax_init(void) | |||
1521 | return -ENODEV; | 1521 | return -ENODEV; |
1522 | return 0; | 1522 | return 0; |
1523 | 1523 | ||
1524 | out_tei: | 1524 | out_tei: |
1525 | TeiFree(); | 1525 | TeiFree(); |
1526 | out_isdnl2: | 1526 | out_isdnl2: |
1527 | Isdnl2Free(); | 1527 | Isdnl2Free(); |
1528 | out_isdnl3: | 1528 | out_isdnl3: |
1529 | Isdnl3Free(); | 1529 | Isdnl3Free(); |
1530 | out_callc: | 1530 | out_callc: |
1531 | CallcFree(); | 1531 | CallcFree(); |
1532 | out: | 1532 | out: |
1533 | return retval; | 1533 | return retval; |
1534 | } | 1534 | } |
1535 | 1535 | ||
@@ -1614,7 +1614,7 @@ int hisax_register(struct hisax_d_if *hisax_d_if, struct hisax_b_if *b_if[], | |||
1614 | sprintf(id, "%s%d", name, i); | 1614 | sprintf(id, "%s%d", name, i); |
1615 | nrcards++; | 1615 | nrcards++; |
1616 | retval = checkcard(i, id, NULL, hisax_d_if->owner, | 1616 | retval = checkcard(i, id, NULL, hisax_d_if->owner, |
1617 | hisax_setup_card_dynamic); | 1617 | hisax_setup_card_dynamic); |
1618 | if (retval == 0) { // yuck | 1618 | if (retval == 0) { // yuck |
1619 | cards[i].typ = 0; | 1619 | cards[i].typ = 0; |
1620 | nrcards--; | 1620 | nrcards--; |
@@ -1637,7 +1637,7 @@ int hisax_register(struct hisax_d_if *hisax_d_if, struct hisax_b_if *b_if[], | |||
1637 | hisax_d_if->ifc.l1l2 = hisax_d_l1l2; | 1637 | hisax_d_if->ifc.l1l2 = hisax_d_l1l2; |
1638 | skb_queue_head_init(&hisax_d_if->erq); | 1638 | skb_queue_head_init(&hisax_d_if->erq); |
1639 | clear_bit(0, &hisax_d_if->ph_state); | 1639 | clear_bit(0, &hisax_d_if->ph_state); |
1640 | 1640 | ||
1641 | return 0; | 1641 | return 0; |
1642 | } | 1642 | } |
1643 | 1643 | ||
@@ -1674,7 +1674,7 @@ static void hisax_bh(struct work_struct *work) | |||
1674 | pr = PH_DEACTIVATE | INDICATION; | 1674 | pr = PH_DEACTIVATE | INDICATION; |
1675 | for (st = cs->stlist; st; st = st->next) | 1675 | for (st = cs->stlist; st; st = st->next) |
1676 | st->l1.l1l2(st, pr, NULL); | 1676 | st->l1.l1l2(st, pr, NULL); |
1677 | 1677 | ||
1678 | } | 1678 | } |
1679 | } | 1679 | } |
1680 | 1680 | ||
@@ -1764,7 +1764,7 @@ static void hisax_b_l1l2(struct hisax_if *ifc, int pr, void *arg) | |||
1764 | break; | 1764 | break; |
1765 | case PH_DATA | CONFIRM: | 1765 | case PH_DATA | CONFIRM: |
1766 | bcs->tx_cnt -= (long)arg; | 1766 | bcs->tx_cnt -= (long)arg; |
1767 | if (test_bit(FLG_LLI_L1WAKEUP,&bcs->st->lli.flag)) { | 1767 | if (test_bit(FLG_LLI_L1WAKEUP, &bcs->st->lli.flag)) { |
1768 | u_long flags; | 1768 | u_long flags; |
1769 | spin_lock_irqsave(&bcs->aclock, flags); | 1769 | spin_lock_irqsave(&bcs->aclock, flags); |
1770 | bcs->ackcnt += (long)arg; | 1770 | bcs->ackcnt += (long)arg; |