
problems using comedi with PCI-9118 from adlink
Kernel 2.6.10 on Fedora3  
user:    lux-integ@btconnect.com 

===========================================================
First devices /dev/comedi0 and /dev/comedi1 are created with mknod:

[root@analog comedi]#
[root@analog comedi]# mknod -m 666 /dev/comedi0 c 98 0
[root@analog comedi]# mknod -m 666 /dev/comedi1 c 98 1
[root@analog comedi]#
[root@analog comedi]# ls /dev/comedi0
/dev/comedi0
[root@analog comedi]# ls /dev/comedi1
/dev/comedi1
[root@analog comedi]#


---------------------------------------------------------

then /prioc is probed for devices on the pci bus and iopors as follows:

[root@analog comedi]# cat /proc/pci

......
  Bus  1, device   0, function  0:
    Class 0300: PCI device 1023:8500 (rev 106).
      IRQ 5.
      Master Capable.  Latency=32.
      Non-prefetchable 32 bit memory at 0xd5800000 [0xd5ffffff].
      Non-prefetchable 32 bit memory at 0xd6000000 [0xd601ffff].
      Non-prefetchable 32 bit memory at 0xd5000000 [0xd57fffff].
[root@analog comedi]#   


------------------------------------------------------------

[root@analog comedi]# cat /proc/ioports


d800-d83f : 0000:00:08.0
dc00-dc3f : 0000:00:08.0

[root@analog comedi]#   


**so PCI-9118 uses IOports 0xd800 and 0xdc00 and IRQ 5

------------------------------------------------------------

If comedi_config is used with the name adl_pci9118 or PCI-9118 a  "device not configured" report is obained like so:


[root@analog comedi]# /usr/local/sbin/comedi_config  /dev/comedi0 adl_pci91180xd800,0xdc00,5
device not configured
[root@analog comedi]# 



[root@analog comedi]# /usr/local/sbin/comedi_config  /dev/comedi0 PCI-9118 0xd800,0xdc00,5
device not configured
[root@analog comedi]#

if the module code for the 9118 board  is loaded with modbrpobe like so

[root@analog comedi]#
[root@analog comedi]# /sbin/modprobe   adl_pci9118
[root@analog comedi]# /sbin/lsmod
Module                  Size  Used by
adl_pci9118            18694  0
comedi_fc               2944  1 adl_pci9118
comedi                 29584  2 adl_pci9118,comedi_fc
amcc_s5933              5508  1 adl_pci9118
lp                     13548  0


and comedi_config is called an error (Configure failed !)  is reported like so:-

[root@analog comedi]#
[root@analog comedi]# /usr/local/sbin/comedi_config  /dev/comedi0 adl_pci9118 0xd800,0xdc00,5
Configure failed!: Input/output error
Check kernel log for more information
Possible reasons for failure:
  Driver not found
[root@analog comedi]# 



some help would be appreciated
