patch-2.2.19 linux/drivers/isdn/hisax/teleint.c
Next file: linux/drivers/isdn/hisax/teles0.c
Previous file: linux/drivers/isdn/hisax/tei.c
Back to the patch index
Back to the overall index
- Lines: 92
- Date:
Sun Mar 25 11:37:33 2001
- Orig file:
v2.2.18/drivers/isdn/hisax/teleint.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/teleint.c linux/drivers/isdn/hisax/teleint.c
@@ -1,53 +1,15 @@
-/* $Id: teleint.c,v 1.12 1999/12/19 13:09:42 keil Exp $
-
+/* $Id: teleint.c,v 1.14 2000/11/24 17:05:38 kai Exp $
+ *
* teleint.c low level stuff for TeleInt isdn cards
*
* Author Karsten Keil (keil@isdn4linux.de)
*
- *
- * $Log: teleint.c,v $
- * Revision 1.12 1999/12/19 13:09:42 keil
- * changed TASK_INTERRUPTIBLE into TASK_UNINTERRUPTIBLE for
- * signal proof delays
- *
- * Revision 1.11 1999/09/04 06:20:06 keil
- * Changes from kernel set_current_state()
- *
- * Revision 1.10 1999/08/31 11:20:27 paul
- * various spelling corrections (new checksums may be needed, Karsten!)
- *
- * Revision 1.9 1999/07/12 21:05:30 keil
- * fix race in IRQ handling
- * added watchdog for lost IRQs
- *
- * Revision 1.8 1999/07/01 08:12:12 keil
- * Common HiSax version for 2.0, 2.1, 2.2 and 2.3 kernel
- *
- * Revision 1.7 1998/11/15 23:55:26 keil
- * changes from 2.0
- *
- * Revision 1.6 1998/04/15 16:45:31 keil
- * new init code
- *
- * Revision 1.5 1998/02/02 13:40:47 keil
- * fast io
- *
- * Revision 1.4 1997/11/08 21:35:53 keil
- * new l1 init
- *
- * Revision 1.3 1997/11/06 17:09:30 keil
- * New 2.1 init code
- *
- * Revision 1.2 1997/10/29 18:55:53 keil
- * changes for 2.1.60 (irq2dev_map)
- *
- * Revision 1.1 1997/09/11 17:32:32 keil
- * new
- *
+ * This file is (c) under GNU PUBLIC LICENSE
*
*/
#define __NO_VERSION__
+#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "hfc_2bs0.h"
@@ -55,7 +17,7 @@
extern const char *CardType[];
-const char *TeleInt_revision = "$Revision: 1.12 $";
+const char *TeleInt_revision = "$Revision: 1.14 $";
#define byteout(addr,val) outb(val,addr)
#define bytein(addr) inb(addr)
@@ -264,11 +226,11 @@
byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); /* Reset On */
save_flags(flags);
sti();
- current->state = TASK_UNINTERRUPTIBLE;
+ set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout((30*HZ)/1000);
cs->hw.hfc.cirm &= ~HFC_RESET;
byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); /* Reset Off */
- current->state = TASK_UNINTERRUPTIBLE;
+ set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout((10*HZ)/1000);
restore_flags(flags);
}
@@ -299,8 +261,8 @@
return(0);
}
-__initfunc(int
-setup_TeleInt(struct IsdnCard *card))
+int __init
+setup_TeleInt(struct IsdnCard *card)
{
struct IsdnCardState *cs = card->cs;
char tmp[64];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)