patch-2.1.27 linux/drivers/isdn/teles/mod.c
Next file: linux/drivers/isdn/teles/q931.c
Previous file: linux/drivers/isdn/teles/llglue.c
Back to the patch index
Back to the overall index
- Lines: 69
- Date:
Tue Feb 25 17:12:50 1997
- Orig file:
v2.1.26/linux/drivers/isdn/teles/mod.c
- Orig date:
Fri Dec 27 02:03:22 1996
diff -u --recursive --new-file v2.1.26/linux/drivers/isdn/teles/mod.c linux/drivers/isdn/teles/mod.c
@@ -1,6 +1,12 @@
-/* $Id: mod.c,v 1.1 1996/04/13 10:27:02 fritz Exp $
+/* $Id: mod.c,v 1.3 1997/02/14 12:23:31 fritz Exp $
*
* $Log: mod.c,v $
+ * Revision 1.3 1997/02/14 12:23:31 fritz
+ * Added support for new insmod parameter handling.
+ *
+ * Revision 1.2 1997/02/10 11:45:14 fritz
+ * More changes for Kernel 2.1.X compatibility.
+ *
* Revision 1.1 1996/04/13 10:27:02 fritz
* Initial revision
*
@@ -14,7 +20,7 @@
int nrcards;
typedef struct {
- unsigned int membase;
+ byte *membase;
int interrupt;
unsigned int iobase;
unsigned int protocol;
@@ -40,6 +46,13 @@
{0, 0, 0, 0},
};
+#ifdef MODULE
+#if (LINUX_VERSION_CODE > 0x020111)
+MODULE_PARM(io, "1-64i");
+MODULE_PARM(teles_id, "s");
+#endif
+#endif
+
void
teles_mod_dec_use_count(void)
{
@@ -53,7 +66,6 @@
}
#ifdef MODULE
-EXPORT_NO_SYMBOLS;
#define teles_init init_module
#else
void teles_setup(char *str, int *ints)
@@ -74,7 +86,7 @@
j++; argc--;
}
if (argc) {
- io[i].membase = ints[j];
+ io[i].membase = (byte *)ints[j];
j++; argc--;
}
if (argc) {
@@ -116,7 +128,14 @@
CallcNew();
ll_init();
+ /* No symbols to export, hide all symbols */
+
#ifdef MODULE
+#if (LINUX_VERSION_CODE < 0x020111)
+ register_symtab(NULL);
+#else
+ EXPORT_NO_SYMBOLS;
+#endif
printk(KERN_NOTICE "Teles module installed\n");
#endif
return (0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov