| Author |
Message |
|
|
Post subject: How to detect a ISA card in QNX
Posted: Jan 30, 2004 - 08:25 AM
|
|
Active Member
Joined: Dec 14, 2003
Posts: 10
|
|
Hi...all~~
Now I wanna wirte a program of a motion contorl card of ISA bus.While I use "pci -v "command,there is no information about this card. I am not sure QNX system can detect this card or not.Then i write a simple program to test this card.I just write some data to the port of the card.
I use the out16() function. While I run the program,QNX show the message "Memorry fault (core dumped)".Now I don't know how to solve this problem. Could someone give me any suggestion?Thanks a lot~~ |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 30, 2004 - 10:13 AM
|
|
Active Member
Joined: Jul 24, 2002
Posts: 92
Location: Madrid, Spain
|
|
First you need to use ThreadCtl function and to have root privileges to access to the base address. Look at the information about the function.
After that, use the mmap_device_io function to access to the device with
the base address of your ISA card (you dont need to use pci -v).
After doing all of that you can use the out and in functions.
I hope it helps. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 30, 2004 - 11:46 AM
|
|
QNX Master
Joined: Feb 01, 2003
Posts: 737
|
|
| PCI has auto-config as a feature, ISA does not. The pci command has no way to find an ISA card. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 25, 2008 - 04:34 AM
|
|
Active Member
Joined: Feb 20, 2008
Posts: 12
|
|
I have just found a QNX' utility which is similar pci utility.
-Open Terminal and type :
enum-pnpisa |
|
|
| |
|
|
|
 |
|
|
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group Credits |
|
|