12 #include <linux/module.h>
13 #include <linux/kernel.h>
30 static char *
revision =
"$Revision: 1.1.2.2 $";
58 static char *b1pcmcia_procinfo(
struct capi_ctr *ctrl);
60 static int b1pcmcia_add_card(
unsigned int port,
unsigned irq,
79 default:
sprintf(card->
name,
"b1pcmcia-%x", port);
break;
103 cinfo->
capi_ctrl.driver_name =
"b1pcmcia";
110 cinfo->
capi_ctrl.procinfo = b1pcmcia_procinfo;
120 case avm_m1: cardname =
"M1";
break;
121 case avm_m2: cardname =
"M2";
break;
122 default: cardname =
"B1 PCMCIA";
break;
128 list_add(&card->
list, &cards);
141 static char *b1pcmcia_procinfo(
struct capi_ctr *ctrl)
150 cinfo->
card ? cinfo->
card->port : 0x0,
152 cinfo->
card ? cinfo->
card->revision : 0
166 return b1pcmcia_add_card(port, irq,
avm_m1);
171 return b1pcmcia_add_card(port, irq,
avm_m2);
181 if (card->
port == port && card->
irq == irq) {
182 b1pcmcia_remove_ctr(&card->
ctrlinfo[0].capi_ctrl);
199 static int __init b1pcmcia_init(
void)
206 if ((p =
strchr(rev,
'$')) !=
NULL && p > rev)
218 static void __exit b1pcmcia_exit(
void)