Page 1 of 1

SMAP: ps2ip_getconfig()

Posted: Mon Jun 12, 2006 9:33 pm
by misfire
Hello,

after loading the SMAP Ethernet device driver, I'm trying to call the ps2ip_getconfig() function from EE.

This is the declaration:

int ps2ip_getconfig(char *netif_name, t_ip_info *ip_info);

Now, I'm wondering what netif_name would be? In the SMAP source code it says:

#define IFNAME0 's'
#define IFNAME1 'm'

But "sm" doesn't seem to work as the network interface name; ip_info contains nothing useful. Any Ideas?

Posted: Mon Jun 12, 2006 10:31 pm
by Drakonite
...you have ps2ip.irx and ps2ips.irx (for EE) loaded right?

Posted: Tue Jun 13, 2006 1:25 am
by misfire
Yes, I've loaded all necessary modules and called ps2ip_init(). The network communication works.

ps2ip_getconfig() returns 1, but the t_ip_info structure seems to be empty (all members are 0).

Maybe there's a bug in ps2ips.irx, and ps2ip_getconfig() doesn't work from EE?

Posted: Tue Jun 13, 2006 8:59 am
by Drakonite
There are lots of bugs in ps2ips. Whether this is one of them or not I couldn't tell you sadly ;)

Posted: Wed Jun 14, 2006 4:28 am
by misfire
Too bad. :(

I've got another question concerning SMAP: Does ps2smap.irx automatically put the BBA put into 100MBit/full duplex mode? Or how is the speed handled?

Posted: Wed Jun 14, 2006 10:19 am
by Drakonite
When it's init'ed it should attempt to autonegotiate the best available connection speed.