forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SMAP: ps2ip_getconfig()

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Mon Jun 12, 2006 9:33 pm    Post subject: SMAP: ps2ip_getconfig() Reply with quote

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?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Mon Jun 12, 2006 10:31 pm    Post subject: Reply with quote

...you have ps2ip.irx and ps2ips.irx (for EE) loaded right?
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Tue Jun 13, 2006 1:25 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Tue Jun 13, 2006 8:59 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Wed Jun 14, 2006 4:28 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Wed Jun 14, 2006 10:19 am    Post subject: Reply with quote

When it's init'ed it should attempt to autonegotiate the best available connection speed.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group