basic QNX 6.2 question

Hi All,

Quick question about how to implement a driver for NI PCI-MIO-16E-1
multifunctional i/o card. Where do I go and tweak/edit files in the
resource manager? Is it in
/pkgs/repository/qnx/input-ddk/core-6.2.0/usr/src/ddk-6.2.0/input/rebuilt/us
r/include/sys or hw???

This driver is written and I just need to test to see if it recognize the
card first and then if the i/o port is working or not. Please let me know
what and where things are in QNX 6.2 to utilize this driver. Thanks in
advance.

Lloyd

Hi

Just for the sake of testing you don’t have to write a driver. There is no
difference between a driver and a process from the point of view of what
actual work they can do. A driver just exposes a common interface so that
others can also access the device (eg. by /dev/myboard/adc0 for first ADC
that clients can fopen() and fread() and /dev/myboad/dac0 for DAC and so
on).

All functionality of card can be written in your simple helloworld program
without any issues. When you’re done testing/debugging, just write glue code
to convert it to a driver (aka. resource manager).

To read/write ports, see docs of in*() (eg. in8, out8, in16, out16)
To hook ISRs see doc of InterruptAttach and InterruptAttachEvent (use
latter preferred for testing
).

Enjoy!

\

Regards

  • Akhilesh Mritunjai

URL:
http://www.me.iitb.ac.in/~mritun
http://www.qnxzone.com/~mritun
http://mritun.qnx.org.ru



are just
“lloyd” <contact@mongolloyd.com> wrote in message
news:anv9nf$mrs$1@inn.qnx.com

Hi All,

Quick question about how to implement a driver for NI PCI-MIO-16E-1
multifunctional i/o card. Where do I go and tweak/edit files in the
resource manager? Is it in

/pkgs/repository/qnx/input-ddk/core-6.2.0/usr/src/ddk-6.2.0/input/rebuilt/us
r/include/sys or hw???

This driver is written and I just need to test to see if it recognize the
card first and then if the i/o port is working or not. Please let me know
what and where things are in QNX 6.2 to utilize this driver. Thanks in
advance.

Lloyd