2 * PCBIT-D module support
4 * Copyright (C) 1996 Universidade de Lisboa
6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
8 * This software may be used and distributed according to the terms of
9 * the GNU General Public License, incorporated herein by reference.
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/string.h>
15 #include <linux/kernel.h>
16 #include <linux/skbuff.h>
18 #include <linux/isdnif.h>
21 MODULE_DESCRIPTION("ISDN4Linux: Driver for PCBIT-T card");
22 MODULE_AUTHOR("Pedro Roque Marques");
23 MODULE_LICENSE("GPL");
25 static int mem
[MAX_PCBIT_CARDS
];
26 static int irq
[MAX_PCBIT_CARDS
];
28 module_param_array(mem
, int, NULL
, 0);
29 module_param_array(irq
, int, NULL
, 0);
31 static int num_boards
;
32 struct pcbit_dev
* dev_pcbit
[MAX_PCBIT_CARDS
];
34 static int __init
pcbit_init(void)
41 "PCBIT-D device driver v 0.5-fjpc0 19991204 - "
42 "Copyright (C) 1996 Universidade de Lisboa\n");
46 for (board
=0; board
< MAX_PCBIT_CARDS
&& mem
[board
] && irq
[board
]; board
++)
53 if (pcbit_init_dev(board
, mem
[board
], irq
[board
]) == 0)
59 "pcbit_init failed for dev %d",
66 /* Hardcoded default settings detection */
71 "Trying to detect board using default settings\n");
72 if (pcbit_init_dev(0, 0xD0000, 5) == 0)
80 static void __exit
pcbit_exit(void)
85 for (board
= 0; board
< num_boards
; board
++)
86 pcbit_terminate(board
);
88 "PCBIT-D module unloaded\n");
93 #define MAX_PARA (MAX_PCBIT_CARDS * 2)
94 static int __init
pcbit_setup(char *line
)
100 str
= get_options(line
, MAX_PARA
, ints
);
105 while (argc
&& (i
<MAX_PCBIT_CARDS
)) {
121 __setup("pcbit=", pcbit_setup
);
124 module_init(pcbit_init
);
125 module_exit(pcbit_exit
);