*** empty log message ***
authorppisa <ppisa>
Mon, 25 Aug 2003 03:56:03 +0000 (03:56 +0000)
committerppisa <ppisa>
Mon, 25 Aug 2003 03:56:03 +0000 (03:56 +0000)
lincan/src/temp.c [deleted file]

diff --git a/lincan/src/temp.c b/lincan/src/temp.c
deleted file mode 100644 (file)
index dceec0c..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-{
-       int i=0;
-
-       DEBUGMSG("Resetting smartcan hardware ...\n");
-       outb(0x00,candevices_p[card]->res_addr);
-       while (i < 1000000) {
-               i++;
-               outb(0x01,candevices_p[card]->res_addr);
-       }
-       outb(0x00,candevices_p[card]->res_addr); 
-
-       /* Check hardware reset status */
-       i=0;
-       outb(candevices_p[card]->io_addr+iCPU,candevices_p[card]->io_addr);
-       while ( (inb(candevices_p[card]->io_addr+1)&0x80) && (i<=15) ) {
-               udelay(20000);
-               i++;
-       }
-       if (i>=15) {
-               CANMSG("Reset status timeout!\n");
-               CANMSG("Please check your hardware.\n");
-               return -ENODEV;
-       }
-       else
-               DEBUGMSG("Chip0 reset status ok.\n");
-
-       return 0;
-}