- From: Calin A. Culianu <calin_at_ajvar.org>
- Date: Wed, 24 Sep 2003 14:30:38 -0400 (EDT)
Actually.. it seems that starting on line 319 of ni_atmio.c the
following curiosity emerges:
#undef __ISAPNP__
#ifdef __ISAPNP__
static struct isapnp_device_id device_ids[] = {
{ ISAPNP_DEVICE_SINGLE('N','I','C',0x1900,'N','I','C',0x0000), },
{ ISAPNP_DEVICE_SINGLE('N','I','C',0x2400,'N','I','C',0x2400), },
{ ISAPNP_DEVICE_SINGLE('N','I','C',0x2700,'N','I','C',0x2700), },
{ ISAPNP_DEVICE_SINGLE_END, },
};
MODULE_DEVICE_TABLE(isapnp, device_ids);
#endif
Thus, for the rest of the .c file __ISAPNP__ is undefined and thus kernel
isapnp support is disabled in this driver. Is isapnp in the kernel broken
for this driver? Is that why someone added that #undef __ISAPNP__? It
seemed to be working fine in CVS a few months back...
Or is this just a minor source bug?
-Calin
On Wed, 24 Sep 2003, Calin A. Culianu wrote:
>
> Hi all... I got the new comedi and was trying to get the ni_atmio driver
> to work with it. I see that it tries to use kernel isa support for the
> boards, however this driver has trouble seeing my board for some reason.
>
> I looked at the sources to ni_atmio.c and I don't understand what the
> problem could be. My kernel see the NI-ATMIO-16E-10 device that I have..
> here is output from /proc/isapnp:
>
> Card 1 'NIC2400:National Instruments, AT-MIO-16E-10' PnP version 1.0
> Logical device 0 'NIC2400:Unknown'
> Supported registers 0x2
> Device is not active
> Active port 0x100
> Active IRQ 5 [0x2]
> Active DMA 5,6
> Resources 0
> Priority acceptable
> Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
> IRQ 3,4,5,7,10,11,12,15 High-Edge
> DMA 5,6,7 16-bit word-count compatible
> DMA 5,6,7 16-bit word-count compatible
> Alternate resources 0:1
> Priority acceptable
> Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
> IRQ 3,4,5,7,10,11,12,15 High-Edge
> DMA 5,6,7 16-bit word-count compatible
> Alternate resources 0:2
> Priority acceptable
> Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
> IRQ 3,4,5,7,10,11,12,15 High-Edge
> Alternate resources 0:3
> Priority acceptable
> Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
> IRQ <none> High-Edge
> Logical device 1 'NIC2400:Unknown'
> Device is not active
> Resources 0
> Priority acceptable
> DMA 5,6,7 16-bit word-count compatible
> Alternate resources 0:1
> Priority acceptable
> DMA <none> 16-bit word-count compatible
>
>
> I _did_ notice that the driver has an #ifdef __ISAPNP__ that might be the
> culprit. Where does this get defined? My kernel's config has all isapnp
> turned on, so comedi might have a problem in the build system..
>
>
> Any ideas?
>
> -Calin
>
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>
Received on 2003-09-24Z17:30:38