patch-2.0.26 linux/include/linux/isdnif.h
Next file: linux/include/linux/major.h
Previous file: linux/include/linux/isdn.h
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Wed Nov 13 08:36:20 1996
- Orig file:
v2.0.25/linux/include/linux/isdnif.h
- Orig date:
Fri Jun 7 16:02:43 1996
diff -u --recursive --new-file v2.0.25/linux/include/linux/isdnif.h linux/include/linux/isdnif.h
@@ -1,4 +1,4 @@
-/* $Id: isdnif.h,v 1.9 1996/06/06 21:24:24 fritz Exp $
+/* $Id: isdnif.h,v 1.13 1996/11/13 02:39:59 fritz Exp $
*
* Linux ISDN subsystem
*
@@ -22,6 +22,18 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: isdnif.h,v $
+ * Revision 1.13 1996/11/13 02:39:59 fritz
+ * More compatibility changes.
+ *
+ * Revision 1.12 1996/11/06 17:38:48 keil
+ * more changes for 2.1.X
+ *
+ * Revision 1.11 1996/10/23 11:59:42 fritz
+ * More compatibility changes.
+ *
+ * Revision 1.10 1996/10/22 23:14:19 fritz
+ * Changes for compatibility to 2.0.X and 2.1.X kernels.
+ *
* Revision 1.9 1996/06/06 21:24:24 fritz
* Started adding support for suspend/resume.
*
@@ -301,6 +313,30 @@
*
*/
extern int register_isdn(isdn_if*);
+
+/* Compatibility Linux-2.0.X <-> Linux-2.1.X */
+
+#ifndef LINUX_VERSION_CODE
+#include <linux/version.h>
+#endif
+#if (LINUX_VERSION_CODE < 0x020100)
+#include <linux/mm.h>
+#define copy_from_user memcpy_fromfs
+#define copy_to_user memcpy_tofs
+#define GET_USER(x, addr) ( x = get_user(addr) )
+#define RWTYPE int
+#define LSTYPE int
+#define RWARG int
+#define LSARG off_t
+#else
+#include <asm/uaccess.h>
+#define GET_USER get_user
+#define PUT_USER put_user
+#define RWTYPE long
+#define LSTYPE long long
+#define RWARG unsigned long
+#define LSARG long long
+#endif
#endif /* __KERNEL__ */
#endif /* isdnif_h */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov