OpenQNX :: The QNX Community Portal

May 13, 2008 - 12:41 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 53 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ganson
Post subject: How to detect a ISA card in QNX  PostPosted: 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~~
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
drodrigueza
Post subject:   PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
evanh
Post subject:   PostPosted: 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
thuongshoo
Post subject:   PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.