I have network driver and it always register as en0. If I have more
network card in system how register my driver as en2?
Tom
Tom
You’re supposed to use the ‘endpoint’ io-net gives you.
ion->reg( , , , , &endpoint);
-seanb
tom <tomasz.walenczak@radmor.com.pl> wrote:
I have network driver and it always register as en0. If I have more
network card in system how register my driver as en2?Tom
U¿ytkownik Sean Boudreau napisa³:
You’re supposed to use the ‘endpoint’ io-net gives you.
ion->reg( , , , , &endpoint);
I have two more network cards and when I call ion->reg(… )system back
Tom
tom <tomasz.walenczak@radmor.com.pl> wrote in message
news:b61dn2$cic$2@inn.qnx.com…
U¿ytkownik Sean Boudreau napisa³:
You’re supposed to use the ‘endpoint’ io-net gives you.ion->reg( , , , , &endpoint);
I have two more network cards and when I call ion->reg(… )system back
me endpoint =0. probably i make some mistake in my driver. Can someone
send me an example driver?
You need to call ion->reg() twice for your 2 cards.
-xtang
Dnia 03/28/2003 03:11 PM, U¿ytkownik Xiaodan Tang napisa³:
tom <> tomasz.walenczak@radmor.com.pl> > wrote in message
news:b61dn2$cic$> 2@inn.qnx.com> …U¿ytkownik Sean Boudreau napisa³:
You’re supposed to use the ‘endpoint’ io-net gives you.
ion->reg( , , , , &endpoint);
I have two more network cards and when I call ion->reg(… )system back
me endpoint =0. probably i make some mistake in my driver. Can someone
send me an example driver?
You need to call ion->reg() twice for your 2 cards.
Tom
I’m not sure, but I think i had a similar problem. I have two Ethernet
ports controlled by one dual-phy. I started issuing io-net -d… once
for each driver. But it never worked out like I wanted to do it. I had
always just en0 and it worked on the ethernet port I tried to configure
at last.
Now I start io-net just once with both drivers and it works, I’ve en0
and en1. io-net -dxxxxx -dxxxxx
So you should try to initialize your driver together with the other two
drivers with io-net -dxxxxx1 -dxxxxx2 -dxxxxx3
Tiemo
tom wrote:
Dnia 03/28/2003 03:11 PM, U¿ytkownik Xiaodan Tang napisa³:
tom <> tomasz.walenczak@radmor.com.pl> > wrote in message
news:b61dn2$cic$> 2@inn.qnx.com> …U¿ytkownik Sean Boudreau napisa³:
You’re supposed to use the ‘endpoint’ io-net gives you.
ion->reg( , , , , &endpoint);
I have two more network cards and when I call ion->reg(… )system back
me endpoint =0. probably i make some mistake in my driver. Can someone
send me an example driver?
You need to call ion->reg() twice for your 2 cards.
its mean if I have two cards in my system (one is NE2000, second
RTL8139) and I try register my own driver as en2 I have call ion->reg 3
times?
U¿ytkownik Tiemo Krueger - mycable GmbH napisa³:
I’m not sure, but I think i had a similar problem. I have two Ethernet
ports controlled by one dual-phy. I started issuing io-net -d… once
for each driver. But it never worked out like I wanted to do it. I had
always just en0 and it worked on the ethernet port I tried to configure
at last.
Now I start io-net just once with both drivers and it works, I’ve en0
and en1. io-net -dxxxxx -dxxxxx
So you should try to initialize your driver together with the other two
drivers with io-net -dxxxxx1 -dxxxxx2 -dxxxxx3
tom
I also faced this situation and was confused on it now.
As we know, pcnet (AMD 79C975) and rtl (Realtek 8139) are all released with
QNX os. I just installed the two adapters into my pc. then os can recognized
them all automatically and named them as en0 and en1, without any
intervention.
But, When I built the sample code (pcnet) in DDK and replaced the released
one in the os with the newly built one. then using io-net command to
manually load the pcnet driver. It was given the aliase “en0”, and the
original en0 (realtek 8390) disappeared. I also got some reference messages
from the code, when there is a present network adapter(here is realtek 8390)
and called en0, I got both 0 for cell and endpoint. It seems it should be 1,
not 0, i think.
any comment is appreciated.
regards
kevin
I’m not sure, but I think i had a similar problem. I have two Ethernet
ports controlled by one dual-phy. I started issuing io-net -d… once
for each driver. But it never worked out like I wanted to do it. I had
always just en0 and it worked on the ethernet port I tried to configure
at last.
Now I start io-net just once with both drivers and it works, I’ve en0
and en1. io-net -dxxxxx -dxxxxx
So you should try to initialize your driver together with the other two
drivers with io-net -dxxxxx1 -dxxxxx2 -dxxxxx3
Yes, its working with io-net -dxxx1 -dxxx2 -dxxx3 , but its only one
method to get proper value?tom