Skip navigation.
Home
The QNX Community Portal

View topic - Event generated for insertion of PC Card (USB Mass storage)

Event generated for insertion of PC Card (USB Mass storage)

For discussion of realtime and/or embedded programming.

Event generated for insertion of PC Card (USB Mass storage)

Postby garyritu » Fri May 22, 2009 7:42 am

Hi All,
I am new to QNX environment and working on embedded device. Which has PC Card interface for storage purpose. I am working using Momentics 6.4 version and wants to know what really happens after insertion of PC Card(devb-umass) to embedded device???
What is the name of event or interrupt generated during insertion. Which system calls are called ??
garyritu
Active Member
 
Posts: 58
Joined: Fri May 22, 2009 7:09 am

RE: Event generated for insertion of PC Card (USB Mass stora

Postby maschoen » Sat May 23, 2009 5:07 pm

The insertion triggers a hardware interrupt. The driver for the Card interface wakes up, reads configuration information and based on a configuration file decides what additional drivers to launch.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: RE: Event generated for insertion of PC Card (USB Mass s

Postby garyritu » Mon May 25, 2009 2:48 pm

maschoen wrote:The insertion triggers a hardware interrupt. The driver for the Card interface wakes up, reads configuration information and based on a configuration file decides what additional drivers to launch.

Thanks for the reply.
How to handle and capture hardware interrupt in QNX6.0 and since i mentioned PC card is nothing but standard usb stograge device then can you please let me know what is the name configuration file and its path in QNX ???
Can you please provide me any sample code for detection of PC Card.
garyritu
Active Member
 
Posts: 58
Joined: Fri May 22, 2009 7:09 am

RE: Re: RE: Event generated for insertion of PC Card (USB Ma

Postby maschoen » Mon May 25, 2009 4:39 pm

You don't want to capture the hardware interrupt unless you are writing your own PC card driver. I don't know the name of the configuration file, I just recall the one from QNX 4. Do however take a look at the file /etc/umass.cfg. Also you might want to prowl around in /etc/system/enum. The PC Card driver source should be available, and it will demonstrate how the PC Card is detected.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests