port

hi,all

I have some questions about QNX.would you give me an answer please?

1.Can Qnx directly manipulate the memory address on a A/D card or a port
without a driver.How?

2.What is the diffrence beteween the debuggingdebug a QNX driver and an
ordinary QNX programm?

Do your have some exmples? Could you recommend me some reference book or
resources?



Thanks!


Caoyuan

“ycao” <ycao@mail.ipp.ac.cn> wrote in message
news:9eis47$efv$1@inn.qnx.com

hi,all

I have some questions about QNX.would you give me an answer please?

1.Can Qnx directly manipulate the memory address on a A/D card or a
port
without a driver.How?

A driver under QNX is just like any other program. Check out
mmap_* (), in*() out8() and ThreadCtrl()

2.What is the diffrence beteween the debuggingdebug a QNX driver and an
ordinary QNX programm?

NONE!!!

Do your have some exmples? Could you recommend me some reference book or
resources?

The online help is a very nice reference, just go through it all and you
should have
a pretty good base. There is also a Robert’s book www.parse.com

Thanks!


Caoyuan

Thank you, mario!


I also have many questions!

A driver under QNX is just like any other program. Check out
mmap_* (), in*() out8() and ThreadCtrl()
I search these functions from online help,but i didn’t find them except the

mmap().Even the linux has the function
inb()\inw()\inl(),outb()\outw()\outl(),readb\readw()\readl(),writeb()\writew
()\writel().

2.What is the diffrence beteween the debugging a QNX driver and an
ordinary QNX programm?

NONE!!!

I learn that in linux a drive can be written in “user space” or in " kernel

space".Is Qnx the same?And if you could write a drive in a “kernel space”
,how will you debug it ?



Caoyuan

“ycao” <ycao@mail.ipp.ac.cn> wrote in message
news:9eja6r$nar$1@inn.qnx.com

Thank you, mario!

You are welcome:

I also have many questions!

That’s what this newsgroup is for :wink:

A driver under QNX is just like any other program. Check out
mmap_* (), in*() out8() and ThreadCtrl()

I search these functions from online help,but i didn’t find them except
the
mmap().

Unclick the “match whole works” in the help viewer and type mmap_.
Also look at shm_open.

Even the linux has the function

inb()\inw()\inl(),outb()\outw()\outl(),readb\readw()\readl(),writeb()\writew
()\writel()

It’s all there but under different name, in8() , in8s(), in16(), in16s() …

2.What is the diffrence beteween the debugging a QNX driver and an
ordinary QNX programm?

NONE!!!

I learn that in linux a drive can be written in “user space” or in "
kernel
space".Is Qnx the same?

No it’s not. You got to let go of some of Linux concept :wink:

And if you could write a drive in a “kernel space” ,how will you debug it
?

You can’t, there is no such thing a kernel space. A “driver” is just like
any other driver, aside from being required to be launch by user root, if
it has to access hardware directly.

Caoyuan