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 

usbd.irx comaptibility....

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



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Sat May 22, 2004 4:57 am    Post subject: usbd.irx comaptibility.... Reply with quote

is usbd.irx compatible with npm_usbd.irx (loaded with naplink)?

I can't use usbd.irx beacause the npm_usbd.irx is sitting on my IOP. When I reset IOP (to get rid of the npm_usbd.irx) the host: and printf are lost :(

Ole
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Sat May 22, 2004 5:09 am    Post subject: Reply with quote

No, you cannot use both usbd.irx and npm_usbd.irx at the same time. That would be like having two different people drive the same car at the same time ;)

I haven't used them, but I do not think they are compatible enough for a drop in replacement either, but I don't know for sure.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat May 22, 2004 6:12 am    Post subject: Reply with quote

They are API-compatible.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat May 22, 2004 3:09 pm    Post subject: Reply with quote

Yes they are API compatible _but_ at least with the keyboard + mouse drivers I wrote just skipping the load of the usbd will not work for some unexplainable reason.

To get my solitaire demo working in naplink you have to reset the IOP, only way I could find to get it to play nice.
Back to top
View user's profile Send private message
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Sat May 22, 2004 11:03 pm    Post subject: Reply with quote

Thanks!
that's good news! I will try to dig some data out of my usb flash disk (through ps2lib ofcourse...) and post some info if I get somewhere.


hm..... still no luck :
how to get for example the 3rd endpoint from interface?
If I use this:
endpoint = (UsbEndpointDescriptor*) UsbGetDeviceStaticDescriptor(devID, NULL, USB_DT_ENDPOINT);
This way I can get the first endpoint only. Is it possible to define the index of the item (endpoint) somehow/somewhere in this function?

If I use this:
ret = UsbGetEndpointDescriptor(epID, USB_DT_ENDPOINT, 3, 0, &endpoint, 7, NULL, NULL);
This way i get ret =0, but the endpoint data are invalid and allways the same even when the index is different. (This could be problem with my incompatible usbd irx...?).

Another question:
How to get the DEFAULT_CONTROL_PIPE epID? It seems to me that i cannot obtain correct default control pipe edID when I'm not able to get correct EndpointDescriptor. The UsbOpenEndpoint(devID, &endpoint) function creates some epID for me, but using of this epID gives me no valid results (the endpoint structure was filled by zeros before the open function was called).

So I'm stuck...Any Idea?
Back to top
View user's profile Send private message
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Sun May 23, 2004 4:45 am    Post subject: Reply with quote

endp = (UsbEndpointDescriptor *) ((char *) endp + endp->bLength);

ufff.... didn't expected anything like that should work :) - thanks TyRaNiD.
Back to top
View user's profile Send private message
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