patch-2.2.19 linux/drivers/isdn/hisax/hfc_2bs0.c
Next file: linux/drivers/isdn/hisax/hfc_2bs0.h
Previous file: linux/drivers/isdn/hisax/hfc_2bds0.h
Back to the patch index
Back to the overall index
- Lines: 89
- Date:
Sun Mar 25 11:37:32 2001
- Orig file:
v2.2.18/drivers/isdn/hisax/hfc_2bs0.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/hisax/hfc_2bs0.c linux/drivers/isdn/hisax/hfc_2bs0.c
@@ -1,53 +1,15 @@
-/* $Id: hfc_2bs0.c,v 1.12 1999/12/19 14:17:12 keil Exp $
-
+/* $Id: hfc_2bs0.c,v 1.17 2000/11/24 17:05:37 kai Exp $
+ *
* specific routines for CCD's HFC 2BS0
*
* Author Karsten Keil (keil@isdn4linux.de)
*
- *
- * $Log: hfc_2bs0.c,v $
- * Revision 1.12 1999/12/19 14:17:12 keil
- * fix compiler warning
- *
- * Revision 1.11 1999/11/21 12:41:18 werner
- *
- * Implemented full audio support
- *
- * Revision 1.10 1999/10/14 20:25:28 keil
- * add a statistic for error monitoring
- *
- * Revision 1.9 1999/07/01 08:11:36 keil
- * Common HiSax version for 2.0, 2.1, 2.2 and 2.3 kernel
- *
- * Revision 1.8 1998/11/15 23:54:43 keil
- * changes from 2.0
- *
- * Revision 1.7 1998/09/30 22:24:46 keil
- * Fix missing line in setstack*
- *
- * Revision 1.6 1998/08/13 23:36:28 keil
- * HiSax 3.1 - don't work stable with current LinkLevel
- *
- * Revision 1.5 1998/05/25 12:57:54 keil
- * HiSax golden code from certification, Don't use !!!
- * No leased lines, no X75, but many changes.
- *
- * Revision 1.4 1998/02/12 23:07:29 keil
- * change for 2.1.86 (removing FREE_READ/FREE_WRITE from [dev]_kfree_skb()
- *
- * Revision 1.3 1997/11/06 17:13:35 keil
- * New 2.1 init code
- *
- * Revision 1.2 1997/10/29 19:04:47 keil
- * changes for 2.1
- *
- * Revision 1.1 1997/09/11 17:31:33 keil
- * Common part for HFC 2BS0 based cards
- *
+ * This file is (c) under GNU PUBLIC LICENSE
*
*/
#define __NO_VERSION__
+#include <linux/init.h>
#include "hisax.h"
#include "hfc_2bs0.h"
#include "isac.h"
@@ -242,7 +204,7 @@
ptr = skb_put(skb, count);
idx = 0;
cip = HFC_CIP | HFC_FIFO_OUT | HFC_REC | HFC_CHANNEL(bcs->channel);
- while ((idx < count - 3) && WaitNoBusy(cs)) {
+ while ((idx < count) && WaitNoBusy(cs)) {
*ptr++ = cs->BC_Read_Reg(cs, HFC_DATA_NODEB, cip);
idx++;
}
@@ -609,8 +571,8 @@
return (0);
}
-__initfunc(void
-init_send(struct BCState *bcs))
+void __init
+init_send(struct BCState *bcs)
{
int i;
@@ -623,8 +585,8 @@
bcs->hw.hfc.send[i] = 0x1fff;
}
-__initfunc(void
-inithfc(struct IsdnCardState *cs))
+void __init
+inithfc(struct IsdnCardState *cs)
{
init_send(&cs->bcs[0]);
init_send(&cs->bcs[1]);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)