X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/f2fcdbb5f9333a58a08f56daaca8cad7e5a95699..a6d355f1cf48f39eecb2f1bdead51817d1fd5989:/lincan/src/modparms.c diff --git a/lincan/src/modparms.c b/lincan/src/modparms.c index 1608bd2..3c79a36 100644 --- a/lincan/src/modparms.c +++ b/lincan/src/modparms.c @@ -4,15 +4,12 @@ * Rewritten for new CAN queues by Pavel Pisa - OCERA team member * email:pisa@cmp.felk.cvut.cz * This software is released under the GPL-License. - * Version lincan-0.2 9 Jul 2003 + * Version lincan-0.3 17 Jun 2004 */ -#include - -#include -#include - +#include "../include/can.h" +#include "../include/can_sysdep.h" #include "../include/main.h" #include "../include/modparms.h" @@ -22,9 +19,10 @@ int parse_mod_parms(void) const struct boardtype_t *brp; if ( (hw[0] == NULL) | (io[0] == -1) ) { - CANMSG("You must supply your type of hardware, interrupt numbers and io address.\n"); + //CANMSG("You must supply your type of hardware, interrupt numbers and io address.\n"); + CANMSG("Autodetection works only for USB devices, supply your type of hardware for PCI devices \n"); CANMSG("Example: # insmod can.o hw=pip5 irq=4 io=0x8000\n"); - return -ENODEV; + //return -ENODEV; } while ( (hw[i] != NULL) && (i < MAX_HW_CARDS) ) { @@ -39,7 +37,7 @@ int parse_mod_parms(void) /* Check wether the supplied number of io addresses is correct. */ io_needed=i; - while ( (io[io_supplied] != -1) & (io_supplied