writing PCI 1724 driver in 2.6 kernel

8 views
Skip to first unread message

babu

unread,
Jun 25, 2009, 2:19:09 AM6/25/09
to Comedi: Linux Control and Measurement Device Interface
I am presently having PCI 1724 card 2.4 kernel driver . I want to
write driver for it in 2.6 kernel.For that i have taken adv_pci1710.c
file in comedi distribution and changed device id ,vendor id and
iorange details in that file like this below.
{"pci1720", 0x1724,
IORANGE_1720, 0, TYPE_PCI1720,
0, 0, 32, 0, 0, 0, 0x0000, 0x3fff,
NULL, NULL, &range_pci1720,
0, 0},
After that i inserted the module,i observed that it is detecting the
board and also giving board detials also.Now i want to write analog
output function in normal mode using control register.Can anybody help
me out how to proceed to achieve this task
babu

mario

unread,
Jul 24, 2009, 7:53:28 AM7/24/09
to Comedi: Linux Control and Measurement Device Interface
For Advantech PCI 1724 AO card, the only clue I could find for normal
mode, was the function "pci171x_ao_mode0" in the file pci1710.c
present in the Advantech own distribution (comedi-0.7.60).
What if you start with adv_pci1723.c instead of adv_pci1710.c for the
1724 - 2.6 kernel driver?



Reply all
Reply to author
Forward
0 new messages