SMAP: ps2ip_getconfig()

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

SMAP: ps2ip_getconfig()

Post 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?
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

...you have ps2ip.irx and ps2ips.irx (for EE) loaded right?
Shoot Pixels Not People!
Makeshift Development
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

Post 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?
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

There are lots of bugs in ps2ips. Whether this is one of them or not I couldn't tell you sadly ;)
Shoot Pixels Not People!
Makeshift Development
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

Post 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?
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

When it's init'ed it should attempt to autonegotiate the best available connection speed.
Shoot Pixels Not People!
Makeshift Development
Post Reply