patch-2.2.19 linux/drivers/isdn/avmb1/capiutil.c
Next file: linux/drivers/isdn/avmb1/capiutil.h
Previous file: linux/drivers/isdn/avmb1/capifs.h
Back to the patch index
Back to the overall index
- Lines: 99
- Date:
Sun Mar 25 11:37:32 2001
- Orig file:
v2.2.18/drivers/isdn/avmb1/capiutil.c
- Orig date:
Sun Mar 25 11:13:07 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/isdn/avmb1/capiutil.c linux/drivers/isdn/avmb1/capiutil.c
@@ -1,5 +1,5 @@
/*
- * $Id: capiutil.c,v 1.10 1999/08/31 11:19:54 paul Exp $
+ * $Id: capiutil.c,v 1.13.6.1 2001/02/13 11:43:29 kai Exp $
*
* CAPI 2.0 convert capi message to capi message struct
*
@@ -7,6 +7,29 @@
* Rewritten for Linux 1996 by Carsten Paeth (calle@calle.in-berlin.de)
*
* $Log: capiutil.c,v $
+ * Revision 1.13.6.1 2001/02/13 11:43:29 kai
+ * more compatility changes for 2.2.19
+ *
+ * Revision 1.13 2000/11/23 20:45:14 kai
+ * fixed module_init/exit stuff
+ * Note: compiled-in kernel doesn't work pre 2.2.18 anymore.
+ *
+ * Revision 1.12 2000/11/01 14:05:02 calle
+ * - use module_init/module_exit from linux/init.h.
+ * - all static struct variables are initialized with "membername:" now.
+ * - avm_cs.c, let it work with newer pcmcia-cs.
+ *
+ * Revision 1.11 2000/03/03 15:50:42 calle
+ * - kernel CAPI:
+ * - Changed parameter "param" in capi_signal from __u32 to void *.
+ * - rewrote notifier handling in kcapi.c
+ * - new notifier NCCI_UP and NCCI_DOWN
+ * - User CAPI:
+ * - /dev/capi20 is now a cloning device.
+ * - middleware extentions prepared.
+ * - capidrv.c
+ * - locking of list operations and module count updates.
+ *
* Revision 1.10 1999/08/31 11:19:54 paul
* various spelling corrections (new checksums may be needed, Karsten!)
*
@@ -70,6 +93,7 @@
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/init.h>
#include <asm/segment.h>
#include <linux/config.h>
@@ -794,7 +818,7 @@
/*15 */ "Class",
/*16 */ "ConnectedNumber",
/*17 */ "ConnectedSubaddress",
- /*18 */ "Data",
+ /*18 */ "Data32",
/*19 */ "DataHandle",
/*1a */ "DataLength",
/*1b */ "FacilityConfirmationParameter",
@@ -892,13 +916,7 @@
cmsg->l += 2;
break;
case _CDWORD:
- if (strcmp(NAME, "Data") == 0) {
- bufprint("%-*s = ", slen, NAME);
- printstructlen((__u8 *) * (__u32 *) (cmsg->m + cmsg->l),
- *(__u16 *) (cmsg->m + cmsg->l + sizeof(__u32)));
- bufprint("\n");
- } else
- bufprint("%-*s = 0x%lx\n", slen, NAME, *(__u32 *) (cmsg->m + cmsg->l));
+ bufprint("%-*s = 0x%lx\n", slen, NAME, *(__u32 *) (cmsg->m + cmsg->l));
cmsg->l += 4;
break;
case _CSTRUCT:
@@ -973,7 +991,6 @@
return buf;
}
-
EXPORT_SYMBOL(capi_cmsg2message);
EXPORT_SYMBOL(capi_message2cmsg);
EXPORT_SYMBOL(capi_cmsg_header);
@@ -982,15 +999,14 @@
EXPORT_SYMBOL(capi_message2str);
EXPORT_SYMBOL(capi_info2str);
-#ifdef MODULE
-
-int init_module(void)
-{
- return 0;
+static int __init capiutil_init(void)
+{
+ return 0;
}
-void cleanup_module(void)
+static void capiutil_exit(void)
{
}
-#endif
+module_init(capiutil_init);
+module_exit(capiutil_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)