- From: David Schleef <ds_at_schleef.org>
- Date: Mon, 9 Sep 2002 12:03:16 -0700
On Mon, Sep 09, 2002 at 09:58:29AM -0700, Ha, Huy (Space Systems) wrote:
> Hi,
>
> I did a 'comedi_config /dev/comedi0 ni_pcimio 4,5' and
> 'comedi_config /dev/comedi1 ni_pcimio 4,6'.
> Both above commands were fine. I was able to communicate with both
> hardware.
> But when I did a 'comedi_config /dev/comedi2 ni_pcidio 2,6', I get the
> following error:
>
> Configure failed!: Input/output error
> Check kernal log for more information
> Possible reasons for failure:
> Driver not found
>
> I'm running RH 7.2 (kernal 2.4.7-10), comedi-0.7.63-2, and
> comedilib-0.7.18-1.
> Any advice would be greatly appreciated.
Silly bug in ni_pcidio. Not many of us have that many PCI busses
and cards (!). Patch follows.
dave...
Index: ni_pcidio.c
===================================================================
RCS file: /var/cvs/comedi/comedi/drivers/ni_pcidio.c,v
retrieving revision 1.54
diff -u -r1.54 ni_pcidio.c
--- ni_pcidio.c 25 Jul 2002 23:45:33 -0000 1.54
+++ ni_pcidio.c 9 Sep 2002 18:57:25 -0000
_at__at_ -1026,7 +1026,7 _at__at_
for(mite=mite_devices;mite;mite=mite->next){
if(mite->used)continue;
if(bus || slot){
- if(bus!=(mite->pcidev->bus->number<<8) ||
+ if(bus!=mite->pcidev->bus->number ||
slot!=PCI_SLOT(mite->pcidev->devfn))
continue;
}
Received on 2002-09-09Z18:03:16