diff options
author | Joe Perches <joe@perches.com> | 2012-02-19 22:52:38 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2012-02-21 12:04:01 -0500 |
commit | 475be4d85a274d0961593db41cf85689db1d583c (patch) | |
tree | b2b8931eb747794730522c3cf1898e46948527b9 /drivers/isdn/hardware/avm/avmcard.h | |
parent | 0b0a635f79f91f3755b6518627ea06dd0dbfd523 (diff) |
isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
Update the coding style used on a per-line basis
so that git diff -w shows only elided blank lines
at EOF.
Done with emacs and some scripts and some typing.
Built x86 allyesconfig.
No detected change in objdump -d or size.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/isdn/hardware/avm/avmcard.h')
-rw-r--r-- | drivers/isdn/hardware/avm/avmcard.h | 286 |
1 files changed, 143 insertions, 143 deletions
diff --git a/drivers/isdn/hardware/avm/avmcard.h b/drivers/isdn/hardware/avm/avmcard.h index a70e8854461d..c95712dbfa9f 100644 --- a/drivers/isdn/hardware/avm/avmcard.h +++ b/drivers/isdn/hardware/avm/avmcard.h | |||
@@ -44,16 +44,16 @@ enum avmcardtype { | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | typedef struct avmcard_dmabuf { | 46 | typedef struct avmcard_dmabuf { |
47 | long size; | 47 | long size; |
48 | u8 *dmabuf; | 48 | u8 *dmabuf; |
49 | dma_addr_t dmaaddr; | 49 | dma_addr_t dmaaddr; |
50 | } avmcard_dmabuf; | 50 | } avmcard_dmabuf; |
51 | 51 | ||
52 | typedef struct avmcard_dmainfo { | 52 | typedef struct avmcard_dmainfo { |
53 | u32 recvlen; | 53 | u32 recvlen; |
54 | avmcard_dmabuf recvbuf; | 54 | avmcard_dmabuf recvbuf; |
55 | 55 | ||
56 | avmcard_dmabuf sendbuf; | 56 | avmcard_dmabuf sendbuf; |
57 | struct sk_buff_head send_queue; | 57 | struct sk_buff_head send_queue; |
58 | 58 | ||
59 | struct pci_dev *pcidev; | 59 | struct pci_dev *pcidev; |
@@ -61,22 +61,22 @@ typedef struct avmcard_dmainfo { | |||
61 | 61 | ||
62 | typedef struct avmctrl_info { | 62 | typedef struct avmctrl_info { |
63 | char cardname[32]; | 63 | char cardname[32]; |
64 | 64 | ||
65 | int versionlen; | 65 | int versionlen; |
66 | char versionbuf[1024]; | 66 | char versionbuf[1024]; |
67 | char *version[AVM_MAXVERSION]; | 67 | char *version[AVM_MAXVERSION]; |
68 | 68 | ||
69 | char infobuf[128]; /* for function procinfo */ | 69 | char infobuf[128]; /* for function procinfo */ |
70 | 70 | ||
71 | struct avmcard *card; | 71 | struct avmcard *card; |
72 | struct capi_ctr capi_ctrl; | 72 | struct capi_ctr capi_ctrl; |
73 | 73 | ||
74 | struct list_head ncci_head; | 74 | struct list_head ncci_head; |
75 | } avmctrl_info; | 75 | } avmctrl_info; |
76 | 76 | ||
77 | typedef struct avmcard { | 77 | typedef struct avmcard { |
78 | char name[32]; | 78 | char name[32]; |
79 | 79 | ||
80 | spinlock_t lock; | 80 | spinlock_t lock; |
81 | unsigned int port; | 81 | unsigned int port; |
82 | unsigned irq; | 82 | unsigned irq; |
@@ -103,95 +103,95 @@ typedef struct avmcard { | |||
103 | extern int b1_irq_table[16]; | 103 | extern int b1_irq_table[16]; |
104 | 104 | ||
105 | /* | 105 | /* |
106 | * LLI Messages to the ISDN-ControllerISDN Controller | 106 | * LLI Messages to the ISDN-ControllerISDN Controller |
107 | */ | 107 | */ |
108 | 108 | ||
109 | #define SEND_POLL 0x72 /* | 109 | #define SEND_POLL 0x72 /* |
110 | * after load <- RECEIVE_POLL | 110 | * after load <- RECEIVE_POLL |
111 | */ | 111 | */ |
112 | #define SEND_INIT 0x11 /* | 112 | #define SEND_INIT 0x11 /* |
113 | * first message <- RECEIVE_INIT | 113 | * first message <- RECEIVE_INIT |
114 | * int32 NumApplications int32 | 114 | * int32 NumApplications int32 |
115 | * NumNCCIs int32 BoardNumber | 115 | * NumNCCIs int32 BoardNumber |
116 | */ | 116 | */ |
117 | #define SEND_REGISTER 0x12 /* | 117 | #define SEND_REGISTER 0x12 /* |
118 | * register an application int32 | 118 | * register an application int32 |
119 | * ApplIDId int32 NumMessages | 119 | * ApplIDId int32 NumMessages |
120 | * int32 NumB3Connections int32 | 120 | * int32 NumB3Connections int32 |
121 | * NumB3Blocks int32 B3Size | 121 | * NumB3Blocks int32 B3Size |
122 | * | 122 | * |
123 | * AnzB3Connection != 0 && | 123 | * AnzB3Connection != 0 && |
124 | * AnzB3Blocks >= 1 && B3Size >= 1 | 124 | * AnzB3Blocks >= 1 && B3Size >= 1 |
125 | */ | 125 | */ |
126 | #define SEND_RELEASE 0x14 /* | 126 | #define SEND_RELEASE 0x14 /* |
127 | * deregister an application int32 | 127 | * deregister an application int32 |
128 | * ApplID | 128 | * ApplID |
129 | */ | 129 | */ |
130 | #define SEND_MESSAGE 0x15 /* | 130 | #define SEND_MESSAGE 0x15 /* |
131 | * send capi-message int32 length | 131 | * send capi-message int32 length |
132 | * capi-data ... | 132 | * capi-data ... |
133 | */ | 133 | */ |
134 | #define SEND_DATA_B3_REQ 0x13 /* | 134 | #define SEND_DATA_B3_REQ 0x13 /* |
135 | * send capi-data-message int32 | 135 | * send capi-data-message int32 |
136 | * MsgLength capi-data ... int32 | 136 | * MsgLength capi-data ... int32 |
137 | * B3Length data .... | 137 | * B3Length data .... |
138 | */ | 138 | */ |
139 | 139 | ||
140 | #define SEND_CONFIG 0x21 /* | 140 | #define SEND_CONFIG 0x21 /* |
141 | */ | 141 | */ |
142 | 142 | ||
143 | #define SEND_POLLACK 0x73 /* T1 Watchdog */ | 143 | #define SEND_POLLACK 0x73 /* T1 Watchdog */ |
144 | 144 | ||
145 | /* | 145 | /* |
146 | * LLI Messages from the ISDN-ControllerISDN Controller | 146 | * LLI Messages from the ISDN-ControllerISDN Controller |
147 | */ | 147 | */ |
148 | 148 | ||
149 | #define RECEIVE_POLL 0x32 /* | 149 | #define RECEIVE_POLL 0x32 /* |
150 | * <- after SEND_POLL | 150 | * <- after SEND_POLL |
151 | */ | 151 | */ |
152 | #define RECEIVE_INIT 0x27 /* | 152 | #define RECEIVE_INIT 0x27 /* |
153 | * <- after SEND_INIT int32 length | 153 | * <- after SEND_INIT int32 length |
154 | * byte total length b1struct board | 154 | * byte total length b1struct board |
155 | * driver revision b1struct card | 155 | * driver revision b1struct card |
156 | * type b1struct reserved b1struct | 156 | * type b1struct reserved b1struct |
157 | * serial number b1struct driver | 157 | * serial number b1struct driver |
158 | * capability b1struct d-channel | 158 | * capability b1struct d-channel |
159 | * protocol b1struct CAPI-2.0 | 159 | * protocol b1struct CAPI-2.0 |
160 | * profile b1struct capi version | 160 | * profile b1struct capi version |
161 | */ | 161 | */ |
162 | #define RECEIVE_MESSAGE 0x21 /* | 162 | #define RECEIVE_MESSAGE 0x21 /* |
163 | * <- after SEND_MESSAGE int32 | 163 | * <- after SEND_MESSAGE int32 |
164 | * AppllID int32 Length capi-data | 164 | * AppllID int32 Length capi-data |
165 | * .... | 165 | * .... |
166 | */ | 166 | */ |
167 | #define RECEIVE_DATA_B3_IND 0x22 /* | 167 | #define RECEIVE_DATA_B3_IND 0x22 /* |
168 | * received data int32 AppllID | 168 | * received data int32 AppllID |
169 | * int32 Length capi-data ... | 169 | * int32 Length capi-data ... |
170 | * int32 B3Length data ... | 170 | * int32 B3Length data ... |
171 | */ | 171 | */ |
172 | #define RECEIVE_START 0x23 /* | 172 | #define RECEIVE_START 0x23 /* |
173 | * Handshake | 173 | * Handshake |
174 | */ | 174 | */ |
175 | #define RECEIVE_STOP 0x24 /* | 175 | #define RECEIVE_STOP 0x24 /* |
176 | * Handshake | 176 | * Handshake |
177 | */ | 177 | */ |
178 | #define RECEIVE_NEW_NCCI 0x25 /* | 178 | #define RECEIVE_NEW_NCCI 0x25 /* |
179 | * int32 AppllID int32 NCCI int32 | 179 | * int32 AppllID int32 NCCI int32 |
180 | * WindowSize | 180 | * WindowSize |
181 | */ | 181 | */ |
182 | #define RECEIVE_FREE_NCCI 0x26 /* | 182 | #define RECEIVE_FREE_NCCI 0x26 /* |
183 | * int32 AppllID int32 NCCI | 183 | * int32 AppllID int32 NCCI |
184 | */ | 184 | */ |
185 | #define RECEIVE_RELEASE 0x26 /* | 185 | #define RECEIVE_RELEASE 0x26 /* |
186 | * int32 AppllID int32 0xffffffff | 186 | * int32 AppllID int32 0xffffffff |
187 | */ | 187 | */ |
188 | #define RECEIVE_TASK_READY 0x31 /* | 188 | #define RECEIVE_TASK_READY 0x31 /* |
189 | * int32 tasknr | 189 | * int32 tasknr |
190 | * int32 Length Taskname ... | 190 | * int32 Length Taskname ... |
191 | */ | 191 | */ |
192 | #define RECEIVE_DEBUGMSG 0x71 /* | 192 | #define RECEIVE_DEBUGMSG 0x71 /* |
193 | * int32 Length message | 193 | * int32 Length message |
194 | * | 194 | * |
195 | */ | 195 | */ |
196 | #define RECEIVE_POLLDWORD 0x75 /* t1pci in dword mode */ | 196 | #define RECEIVE_POLLDWORD 0x75 /* t1pci in dword mode */ |
197 | 197 | ||
@@ -264,7 +264,7 @@ static inline void b1_put_byte(unsigned int base, unsigned char val) | |||
264 | static inline int b1_save_put_byte(unsigned int base, unsigned char val) | 264 | static inline int b1_save_put_byte(unsigned int base, unsigned char val) |
265 | { | 265 | { |
266 | unsigned long stop = jiffies + 2 * HZ; | 266 | unsigned long stop = jiffies + 2 * HZ; |
267 | while (!b1_tx_empty(base) && time_before(jiffies,stop)); | 267 | while (!b1_tx_empty(base) && time_before(jiffies, stop)); |
268 | if (!b1_tx_empty(base)) return -1; | 268 | if (!b1_tx_empty(base)) return -1; |
269 | b1outp(base, B1_WRITE, val); | 269 | b1outp(base, B1_WRITE, val); |
270 | return 0; | 270 | return 0; |
@@ -298,21 +298,21 @@ static inline void b1_put_slice(unsigned int base, | |||
298 | } | 298 | } |
299 | 299 | ||
300 | static void b1_wr_reg(unsigned int base, | 300 | static void b1_wr_reg(unsigned int base, |
301 | unsigned int reg, | 301 | unsigned int reg, |
302 | unsigned int value) | 302 | unsigned int value) |
303 | { | 303 | { |
304 | b1_put_byte(base, WRITE_REGISTER); | 304 | b1_put_byte(base, WRITE_REGISTER); |
305 | b1_put_word(base, reg); | 305 | b1_put_word(base, reg); |
306 | b1_put_word(base, value); | 306 | b1_put_word(base, value); |
307 | } | 307 | } |
308 | 308 | ||
309 | static inline unsigned int b1_rd_reg(unsigned int base, | 309 | static inline unsigned int b1_rd_reg(unsigned int base, |
310 | unsigned int reg) | 310 | unsigned int reg) |
311 | { | 311 | { |
312 | b1_put_byte(base, READ_REGISTER); | 312 | b1_put_byte(base, READ_REGISTER); |
313 | b1_put_word(base, reg); | 313 | b1_put_word(base, reg); |
314 | return b1_get_word(base); | 314 | return b1_get_word(base); |
315 | 315 | ||
316 | } | 316 | } |
317 | 317 | ||
318 | static inline void b1_reset(unsigned int base) | 318 | static inline void b1_reset(unsigned int base) |
@@ -338,13 +338,13 @@ static inline void b1_set_test_bit(unsigned int base, | |||
338 | enum avmcardtype cardtype, | 338 | enum avmcardtype cardtype, |
339 | int onoff) | 339 | int onoff) |
340 | { | 340 | { |
341 | b1_wr_reg(base, B1_STAT0(cardtype), onoff ? 0x21 : 0x20); | 341 | b1_wr_reg(base, B1_STAT0(cardtype), onoff ? 0x21 : 0x20); |
342 | } | 342 | } |
343 | 343 | ||
344 | static inline int b1_get_test_bit(unsigned int base, | 344 | static inline int b1_get_test_bit(unsigned int base, |
345 | enum avmcardtype cardtype) | 345 | enum avmcardtype cardtype) |
346 | { | 346 | { |
347 | return (b1_rd_reg(base, B1_STAT0(cardtype)) & 0x01) != 0; | 347 | return (b1_rd_reg(base, B1_STAT0(cardtype)) & 0x01) != 0; |
348 | } | 348 | } |
349 | 349 | ||
350 | /* ---------------------------------------------------------------- */ | 350 | /* ---------------------------------------------------------------- */ |
@@ -391,7 +391,7 @@ static inline void t1outp(unsigned int base, | |||
391 | } | 391 | } |
392 | 392 | ||
393 | static inline unsigned char t1inp(unsigned int base, | 393 | static inline unsigned char t1inp(unsigned int base, |
394 | unsigned short offset) | 394 | unsigned short offset) |
395 | { | 395 | { |
396 | return inb(base + offset); | 396 | return inb(base + offset); |
397 | } | 397 | } |
@@ -415,42 +415,42 @@ static inline unsigned int t1_get_slice(unsigned int base, | |||
415 | #endif | 415 | #endif |
416 | 416 | ||
417 | len = i = b1_get_word(base); | 417 | len = i = b1_get_word(base); |
418 | if (t1_isfastlink(base)) { | 418 | if (t1_isfastlink(base)) { |
419 | int status; | 419 | int status; |
420 | while (i > 0) { | 420 | while (i > 0) { |
421 | status = t1_fifostatus(base) & (T1F_IREADY|T1F_IHALF); | 421 | status = t1_fifostatus(base) & (T1F_IREADY | T1F_IHALF); |
422 | if (i >= FIFO_INPBSIZE) status |= T1F_IFULL; | 422 | if (i >= FIFO_INPBSIZE) status |= T1F_IFULL; |
423 | 423 | ||
424 | switch (status) { | 424 | switch (status) { |
425 | case T1F_IREADY|T1F_IHALF|T1F_IFULL: | 425 | case T1F_IREADY | T1F_IHALF | T1F_IFULL: |
426 | insb(base+B1_READ, dp, FIFO_INPBSIZE); | 426 | insb(base + B1_READ, dp, FIFO_INPBSIZE); |
427 | dp += FIFO_INPBSIZE; | 427 | dp += FIFO_INPBSIZE; |
428 | i -= FIFO_INPBSIZE; | 428 | i -= FIFO_INPBSIZE; |
429 | #ifdef FASTLINK_DEBUG | 429 | #ifdef FASTLINK_DEBUG |
430 | wcnt += FIFO_INPBSIZE; | 430 | wcnt += FIFO_INPBSIZE; |
431 | #endif | 431 | #endif |
432 | break; | 432 | break; |
433 | case T1F_IREADY|T1F_IHALF: | 433 | case T1F_IREADY | T1F_IHALF: |
434 | insb(base+B1_READ,dp, i); | 434 | insb(base + B1_READ, dp, i); |
435 | #ifdef FASTLINK_DEBUG | 435 | #ifdef FASTLINK_DEBUG |
436 | wcnt += i; | 436 | wcnt += i; |
437 | #endif | 437 | #endif |
438 | dp += i; | 438 | dp += i; |
439 | i = 0; | 439 | i = 0; |
440 | break; | 440 | break; |
441 | default: | 441 | default: |
442 | *dp++ = b1_get_byte(base); | 442 | *dp++ = b1_get_byte(base); |
443 | i--; | 443 | i--; |
444 | #ifdef FASTLINK_DEBUG | 444 | #ifdef FASTLINK_DEBUG |
445 | bcnt++; | 445 | bcnt++; |
446 | #endif | 446 | #endif |
447 | break; | 447 | break; |
448 | } | 448 | } |
449 | } | 449 | } |
450 | #ifdef FASTLINK_DEBUG | 450 | #ifdef FASTLINK_DEBUG |
451 | if (wcnt) | 451 | if (wcnt) |
452 | printk(KERN_DEBUG "b1lli(0x%x): get_slice l=%d w=%d b=%d\n", | 452 | printk(KERN_DEBUG "b1lli(0x%x): get_slice l=%d w=%d b=%d\n", |
453 | base, len, wcnt, bcnt); | 453 | base, len, wcnt, bcnt); |
454 | #endif | 454 | #endif |
455 | } else { | 455 | } else { |
456 | while (i-- > 0) | 456 | while (i-- > 0) |
@@ -464,26 +464,26 @@ static inline void t1_put_slice(unsigned int base, | |||
464 | { | 464 | { |
465 | unsigned i = len; | 465 | unsigned i = len; |
466 | b1_put_word(base, i); | 466 | b1_put_word(base, i); |
467 | if (t1_isfastlink(base)) { | 467 | if (t1_isfastlink(base)) { |
468 | int status; | 468 | int status; |
469 | while (i > 0) { | 469 | while (i > 0) { |
470 | status = t1_fifostatus(base) & (T1F_OREADY|T1F_OHALF); | 470 | status = t1_fifostatus(base) & (T1F_OREADY | T1F_OHALF); |
471 | if (i >= FIFO_OUTBSIZE) status |= T1F_OEMPTY; | 471 | if (i >= FIFO_OUTBSIZE) status |= T1F_OEMPTY; |
472 | switch (status) { | 472 | switch (status) { |
473 | case T1F_OREADY|T1F_OHALF|T1F_OEMPTY: | 473 | case T1F_OREADY | T1F_OHALF | T1F_OEMPTY: |
474 | outsb(base+B1_WRITE, dp, FIFO_OUTBSIZE); | 474 | outsb(base + B1_WRITE, dp, FIFO_OUTBSIZE); |
475 | dp += FIFO_OUTBSIZE; | 475 | dp += FIFO_OUTBSIZE; |
476 | i -= FIFO_OUTBSIZE; | 476 | i -= FIFO_OUTBSIZE; |
477 | break; | 477 | break; |
478 | case T1F_OREADY|T1F_OHALF: | 478 | case T1F_OREADY | T1F_OHALF: |
479 | outsb(base+B1_WRITE, dp, i); | 479 | outsb(base + B1_WRITE, dp, i); |
480 | dp += i; | 480 | dp += i; |
481 | i = 0; | 481 | i = 0; |
482 | break; | 482 | break; |
483 | default: | 483 | default: |
484 | b1_put_byte(base, *dp++); | 484 | b1_put_byte(base, *dp++); |
485 | i--; | 485 | i--; |
486 | break; | 486 | break; |
487 | } | 487 | } |
488 | } | 488 | } |
489 | } else { | 489 | } else { |
@@ -494,18 +494,18 @@ static inline void t1_put_slice(unsigned int base, | |||
494 | 494 | ||
495 | static inline void t1_disable_irq(unsigned int base) | 495 | static inline void t1_disable_irq(unsigned int base) |
496 | { | 496 | { |
497 | t1outp(base, T1_IRQMASTER, 0x00); | 497 | t1outp(base, T1_IRQMASTER, 0x00); |
498 | } | 498 | } |
499 | 499 | ||
500 | static inline void t1_reset(unsigned int base) | 500 | static inline void t1_reset(unsigned int base) |
501 | { | 501 | { |
502 | /* reset T1 Controller */ | 502 | /* reset T1 Controller */ |
503 | b1_reset(base); | 503 | b1_reset(base); |
504 | /* disable irq on HEMA */ | 504 | /* disable irq on HEMA */ |
505 | t1outp(base, B1_INSTAT, 0x00); | 505 | t1outp(base, B1_INSTAT, 0x00); |
506 | t1outp(base, B1_OUTSTAT, 0x00); | 506 | t1outp(base, B1_OUTSTAT, 0x00); |
507 | t1outp(base, T1_IRQMASTER, 0x00); | 507 | t1outp(base, T1_IRQMASTER, 0x00); |
508 | /* reset HEMA board configuration */ | 508 | /* reset HEMA board configuration */ |
509 | t1outp(base, T1_RESETBOARD, 0xf); | 509 | t1outp(base, T1_RESETBOARD, 0xf); |
510 | } | 510 | } |
511 | 511 | ||
@@ -513,29 +513,29 @@ static inline void b1_setinterrupt(unsigned int base, unsigned irq, | |||
513 | enum avmcardtype cardtype) | 513 | enum avmcardtype cardtype) |
514 | { | 514 | { |
515 | switch (cardtype) { | 515 | switch (cardtype) { |
516 | case avm_t1isa: | 516 | case avm_t1isa: |
517 | t1outp(base, B1_INSTAT, 0x00); | 517 | t1outp(base, B1_INSTAT, 0x00); |
518 | t1outp(base, B1_INSTAT, 0x02); | 518 | t1outp(base, B1_INSTAT, 0x02); |
519 | t1outp(base, T1_IRQMASTER, 0x08); | 519 | t1outp(base, T1_IRQMASTER, 0x08); |
520 | break; | 520 | break; |
521 | case avm_b1isa: | 521 | case avm_b1isa: |
522 | b1outp(base, B1_INSTAT, 0x00); | 522 | b1outp(base, B1_INSTAT, 0x00); |
523 | b1outp(base, B1_RESET, b1_irq_table[irq]); | 523 | b1outp(base, B1_RESET, b1_irq_table[irq]); |
524 | b1outp(base, B1_INSTAT, 0x02); | 524 | b1outp(base, B1_INSTAT, 0x02); |
525 | break; | 525 | break; |
526 | default: | 526 | default: |
527 | case avm_m1: | 527 | case avm_m1: |
528 | case avm_m2: | 528 | case avm_m2: |
529 | case avm_b1pci: | 529 | case avm_b1pci: |
530 | b1outp(base, B1_INSTAT, 0x00); | 530 | b1outp(base, B1_INSTAT, 0x00); |
531 | b1outp(base, B1_RESET, 0xf0); | 531 | b1outp(base, B1_RESET, 0xf0); |
532 | b1outp(base, B1_INSTAT, 0x02); | 532 | b1outp(base, B1_INSTAT, 0x02); |
533 | break; | 533 | break; |
534 | case avm_c4: | 534 | case avm_c4: |
535 | case avm_t1pci: | 535 | case avm_t1pci: |
536 | b1outp(base, B1_RESET, 0xf0); | 536 | b1outp(base, B1_RESET, 0xf0); |
537 | break; | 537 | break; |
538 | } | 538 | } |
539 | } | 539 | } |
540 | 540 | ||
541 | /* b1.c */ | 541 | /* b1.c */ |
@@ -543,14 +543,14 @@ avmcard *b1_alloc_card(int nr_controllers); | |||
543 | void b1_free_card(avmcard *card); | 543 | void b1_free_card(avmcard *card); |
544 | int b1_detect(unsigned int base, enum avmcardtype cardtype); | 544 | int b1_detect(unsigned int base, enum avmcardtype cardtype); |
545 | void b1_getrevision(avmcard *card); | 545 | void b1_getrevision(avmcard *card); |
546 | int b1_load_t4file(avmcard *card, capiloaddatapart * t4file); | 546 | int b1_load_t4file(avmcard *card, capiloaddatapart *t4file); |
547 | int b1_load_config(avmcard *card, capiloaddatapart * config); | 547 | int b1_load_config(avmcard *card, capiloaddatapart *config); |
548 | int b1_loaded(avmcard *card); | 548 | int b1_loaded(avmcard *card); |
549 | 549 | ||
550 | int b1_load_firmware(struct capi_ctr *ctrl, capiloaddata *data); | 550 | int b1_load_firmware(struct capi_ctr *ctrl, capiloaddata *data); |
551 | void b1_reset_ctr(struct capi_ctr *ctrl); | 551 | void b1_reset_ctr(struct capi_ctr *ctrl); |
552 | void b1_register_appl(struct capi_ctr *ctrl, u16 appl, | 552 | void b1_register_appl(struct capi_ctr *ctrl, u16 appl, |
553 | capi_register_params *rp); | 553 | capi_register_params *rp); |
554 | void b1_release_appl(struct capi_ctr *ctrl, u16 appl); | 554 | void b1_release_appl(struct capi_ctr *ctrl, u16 appl); |
555 | u16 b1_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); | 555 | u16 b1_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); |
556 | void b1_parse_version(avmctrl_info *card); | 556 | void b1_parse_version(avmctrl_info *card); |
@@ -572,8 +572,8 @@ int b1dma_load_firmware(struct capi_ctr *ctrl, capiloaddata *data); | |||
572 | void b1dma_reset_ctr(struct capi_ctr *ctrl); | 572 | void b1dma_reset_ctr(struct capi_ctr *ctrl); |
573 | void b1dma_remove_ctr(struct capi_ctr *ctrl); | 573 | void b1dma_remove_ctr(struct capi_ctr *ctrl); |
574 | void b1dma_register_appl(struct capi_ctr *ctrl, | 574 | void b1dma_register_appl(struct capi_ctr *ctrl, |
575 | u16 appl, | 575 | u16 appl, |
576 | capi_register_params *rp); | 576 | capi_register_params *rp); |
577 | void b1dma_release_appl(struct capi_ctr *ctrl, u16 appl); | 577 | void b1dma_release_appl(struct capi_ctr *ctrl, u16 appl); |
578 | u16 b1dma_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); | 578 | u16 b1dma_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); |
579 | extern const struct file_operations b1dmactl_proc_fops; | 579 | extern const struct file_operations b1dmactl_proc_fops; |