How to reset a PC CARD on QNX ?

Hi,

I developed a device driver for a wireless LAN pc card. But the driver
execute only once. When I slay the io-net then execute again, it fails. If I
remove the card from the PCMCIA socket and insert it again, the device
driver works fine…

What is the problem ?
Can resetting the pc card fix the problem ?
How to reset the pc card on QNX ?
Is QNX’s pccard service a card service or socket service ?

Thank you very much.

Best regards,
Stanley Kuo

“Stanley Kuo” <stkuo@hotmail.com> wrote in message
news:9vnofd$ir8$1@nntp.qnx.com

Hi,

I developed a device driver for a wireless LAN pc card. But the driver
execute only once. When I slay the io-net then execute again, it fails. If
I
remove the card from the PCMCIA socket and insert it again, the device
driver works fine…

That probably means the initialisation process of your PC card isn’t
doing a complete initialisation. Some register may be need to be
set to their default value or something like that.

Note that you should have to slay io-net. I think unmounting your device
should be sufficient.

What is the problem ?
Can resetting the pc card fix the problem ?
How to reset the pc card on QNX ?
Is QNX’s pccard service a card service or socket service ?

Thank you very much.

Best regards,
Stanley Kuo

Hi,

Thanks for your reply.

What is that mean “unmounting your device should be sufficient.” ?

What I slay the io-net, io-net will call a shutdown function in the driver
module to wiat for the transmission to complete, release all the resources
and reset the pc card. Do you mean to add the function to unmount the device
in the shutdown function ? How ?

Thank you very much.

Stanley Kuo



“Mario Charest” <mcharest@clipzinformatic.com> ¼¶¼g©ó¶l¥ó
news:9vnq0t$2jf$1@inn.qnx.com

“Stanley Kuo” <> stkuo@hotmail.com> > wrote in message
news:9vnofd$ir8$> 1@nntp.qnx.com> …
Hi,

I developed a device driver for a wireless LAN pc card. But the driver
execute only once. When I slay the io-net then execute again, it fails.
If
I
remove the card from the PCMCIA socket and insert it again, the device
driver works fine…

That probably means the initialisation process of your PC card isn’t
doing a complete initialisation. Some register may be need to be
set to their default value or something like that.

Note that you should have to slay io-net. I think unmounting your device
should be sufficient.


What is the problem ?
Can resetting the pc card fix the problem ?
How to reset the pc card on QNX ?
Is QNX’s pccard service a card service or socket service ?

Thank you very much.

Best regards,
Stanley Kuo

\

“Stanley Kuo” <stkuo@hotmail.com> wrote in message
news:9vnt8n$m8s$1@nntp.qnx.com

Hi,

Thanks for your reply.

What is that mean “unmounting your device should be sufficient.” ?

Why slay io-net? You loose TCP/IP, Qnet, everything. Why not

just unmount your driver: From memory

umount /dev/io-net/en0

io-ne will then call the dll shutdown procedure and unload the it.

What I slay the io-net, io-net will call a shutdown function in the driver
module to wiat for the transmission to complete, release all the resources
and reset the pc card.

I’m not sure about that. Slaying is unfriendly. Unless io-net specificaly
handles that signal to perform a clean exit it may not call the shutdown
function. I would not really on this.

Do you mean to add the function to unmount the device
in the shutdown function ? How ?

Thank you very much.

Stanley Kuo



“Mario Charest” <> mcharest@clipzinformatic.com> > ¼¶¼g©ó¶l¥ó
news:9vnq0t$2jf$> 1@inn.qnx.com> …

“Stanley Kuo” <> stkuo@hotmail.com> > wrote in message
news:9vnofd$ir8$> 1@nntp.qnx.com> …
Hi,

I developed a device driver for a wireless LAN pc card. But the driver
execute only once. When I slay the io-net then execute again, it
fails.
If
I
remove the card from the PCMCIA socket and insert it again, the device
driver works fine…

That probably means the initialisation process of your PC card isn’t
doing a complete initialisation. Some register may be need to be
set to their default value or something like that.

Note that you should have to slay io-net. I think unmounting your
device
should be sufficient.


What is the problem ?
Can resetting the pc card fix the problem ?
How to reset the pc card on QNX ?
Is QNX’s pccard service a card service or socket service ?

Thank you very much.

Best regards,
Stanley Kuo



\

Stanley Kuo <stkuo@hotmail.com> wrote:
: Hi,

: Thanks for your reply.

: What is that mean “unmounting your device should be sufficient.” ?

: What I slay the io-net, io-net will call a shutdown function in the driver
: module to wiat for the transmission to complete, release all the resources
: and reset the pc card. Do you mean to add the function to unmount the device

io-net doesn’t reset / shutdown the card. It’s up to you to do that
in your shutdown functions.

-seanb

: in the shutdown function ? How ?

: Thank you very much.

: Stanley Kuo



: “Mario Charest” <mcharest@clipzinformatic.com> ¼¶¼g©ó¶l¥ó
: news:9vnq0t$2jf$1@inn.qnx.com
:>
:> “Stanley Kuo” <stkuo@hotmail.com> wrote in message
:> news:9vnofd$ir8$1@nntp.qnx.com
:> > Hi,
:> >
:> > I developed a device driver for a wireless LAN pc card. But the driver
:> > execute only once. When I slay the io-net then execute again, it fails.
: If
:> I
:> > remove the card from the PCMCIA socket and insert it again, the device
:> > driver works fine…
:>
:> That probably means the initialisation process of your PC card isn’t
:> doing a complete initialisation. Some register may be need to be
:> set to their default value or something like that.
:>
:> Note that you should have to slay io-net. I think unmounting your device
:> should be sufficient.
:>
:> >
:> > What is the problem ?
:> > Can resetting the pc card fix the problem ?
:> > How to reset the pc card on QNX ?
:> > Is QNX’s pccard service a card service or socket service ?
:> >
:> > Thank you very much.
:> >
:> > Best regards,
:> > Stanley Kuo
:> >
:> >
:> >
:>
:>