Gotcha

Hello,

Managed to get the pci card detected. The problem was that I was being
stupid. I did not realize that the device did not enable memory access be
default (in PCI command register). Once I did it, it worked. You have to use
mmap_device_memory_only. mmap does not work. Thanks to all for their
valuable inputs and making me feel confident that the method was right.
Now I have bigger and last problem. The problem is how to map the Linux
sk_buff structure (declared and defined in linux/skbuff.h) to QNX. I am
seeing npkt_t structure. What should I use? The npkt_t structure seems quite
different from linux sk_buff structure!!

Thanks in advance
Regards
Moreshwar

AFAIR, mmap_device_memory() is a wrapper for mmap64(). One reason why mmap()
could fail you is because at some point QNX decided to be strict and started
treating the last argument of mmap() as signed (according to the
prototype). Anything above 0x7fffffff fails (but not for mmap64, obviously).

“Moreshwar Salpekar” <moreshwars@hotmail.com> wrote in message
news:chor0c$87i$3@inn.qnx.com

Hello,

Managed to get the pci card detected. The problem was that I was being
stupid. I did not realize that the device did not enable memory access be
default (in PCI command register). Once I did it, it worked. You have to
use
mmap_device_memory_only. mmap does not work. Thanks to all for their
valuable inputs and making me feel confident that the method was right.
Now I have bigger and last problem. The problem is how to map the Linux
sk_buff structure (declared and defined in linux/skbuff.h) to QNX. I am
seeing npkt_t structure. What should I use? The npkt_t structure seems
quite
different from linux sk_buff structure!!

Thanks in advance
Regards
Moreshwar