OpenQNX :: The QNX Community Portal

May 13, 2008 - 12:46 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 63 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
pgbidkar
Post subject: Device Driver beginner  PostPosted: Mar 27, 2008 - 07:20 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

Hi,
I am beginner in device drivers! Rolling Eyes
Please help me writing a Network device driver for QNX4, or provide me with doument or document link where I can refer?

Thanks,
Pavan
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Device Driver beginner  PostPosted: Mar 27, 2008 - 09:49 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

As I told you in a different post all there is a file Net.fd under /etc/readme/technotes/. ( from memory)

If you are a beginner you are probably going to find this extremely challenging.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rgallen
Post subject: Re: RE: Device Driver beginner  PostPosted: Mar 27, 2008 - 04:01 PM
QNX Master


Joined: Jul 11, 2002
Posts: 557

mario wrote:
As I told you in a different post all there is a file Net.fd under /etc/readme/technotes/. ( from memory)

If you are a beginner you are probably going to find this extremely challenging.


Especially since QNX4 is a 18 year old legacy O/S with only sustaining support (i.e. no new dev support).
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mario
Post subject: RE: Re: RE: Device Driver beginner  PostPosted: Mar 27, 2008 - 04:54 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

I know of only 2 people ( I heard rumor of a third) that wrote a Net.fd driver. Of course that doesn't mean that more people did it. But that gives you an idea of what you are getting into.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Re: RE: Device Driver beginner  PostPosted: Mar 27, 2008 - 06:01 PM
QNX Master


Joined: Jun 25, 2003
Posts: 974

Mario,

Was I one of the ones you were thinking of? I did write a Net.fd driver at one time, but I can't even remember what the hardware was. Maybe parallel? Not very practical for the odd reason that the cable had to be custom made, so that the interface was symmetric. In any case, the non-hardware aspects of the driver were close to trivial. Read and Write, and not much else. Still you are write that it would be challenging for a newbie to get it working.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
mario
Post subject: RE: Re: RE: Device Driver beginner  PostPosted: Mar 27, 2008 - 08:42 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

Yes it was you, the other one is me (it was for a wireless network card) and the third one I heard of was some inside a company that did one.

That being said this is not something I'd be willing to help anybody with mainly a newbie, through something like a forum or email... Just pointless
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maschoen
Post subject: RE: Re: RE: Device Driver beginner  PostPosted: Mar 28, 2008 - 04:20 AM
QNX Master


Joined: Jun 25, 2003
Posts: 974

Well, you did point him in the right direction.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
pgbidkar
Post subject: Thanks!  PostPosted: Mar 28, 2008 - 09:02 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

Hi,
Thanks for the Inputs!
I found pci_device_attach() and pci_attach() methods to attach driver to pci device. I guess methos are for QNX6, can you please help me in finding similer methoda for QNX4?

Thanks,
pavan
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Thanks!  PostPosted: Mar 28, 2008 - 09:33 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

Check for functions that start with CI_PCI_... or something like that ( from memory)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pgbidkar
Post subject: Ethernet driver  PostPosted: Apr 03, 2008 - 05:15 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

Hi,
I looked into Net.fd file, not helped much.
Does any one worked on writing ethernet driver for QNX4. If you have open source link for QNX, please provide me.

Thanks,
Pavan
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Ethernet driver  PostPosted: Apr 03, 2008 - 06:31 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

QNX4 is not open source. The Net.fd file in the readme directory is all you will get.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pgbidkar
Post subject: Ethernet Driver  PostPosted: Apr 04, 2008 - 06:57 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

Thanks!.
Is it possible to get the sample code for ethernet driver in QNX6.
It will be great If U could help me!

Thanks,
Pavan
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: Ethernet Driver  PostPosted: Apr 04, 2008 - 07:29 AM
QNX Master


Joined: Jun 25, 2003
Posts: 974

You can down load it, but it won't help you with QNX 4.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
pgbidkar
Post subject:   PostPosted: Apr 04, 2008 - 07:36 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

From where I can download?
 
 View user's profile Send private message  
Reply with quote Back to top
pgbidkar
Post subject:   PostPosted: Apr 04, 2008 - 09:22 AM
Active Member


Joined: Mar 25, 2008
Posts: 11

Do we have <sys/io-net.h> header file compatible with QNX4.
Please help me Question
 
 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.