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 

usb_mass driver no longer compiles do to new PS2SDK changes

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



Joined: 05 Nov 2005
Posts: 39

PostPosted: Sat Feb 04, 2006 4:31 pm    Post subject: usb_mass driver no longer compiles do to new PS2SDK changes Reply with quote

Just thought I would note an issue with the latest changes to usbd in the sdk. One of the more recent changes prevents the usb_mass driver from compiling now.

Code:
build-imports.c:75: warning: data definition has no type or storage class


A temporary fix is to use the older usbd.h in ps2sdk/iop/usb/usbd/include. Just place it in the ps2sdk/iop/include directory then usb_mass will compile successfully. I know the changes are relatively new but I figured I'd give someone the heads up.

Thanks,

EP
Back to top
View user's profile Send private message
BraveDog



Joined: 30 Dec 2004
Posts: 29
Location: Cleveland

PostPosted: Tue Feb 07, 2006 3:27 am    Post subject: Reply with quote

It is not compiling because UsbOpenBulkEndpoint is not available in the export table.

Code:

int UsbOpenBulkEndpoint(int devID, UsbEndpointDescriptor *epDesc);
#define I_UsbOpenBulkEndpoint DECLARE_IMPORT(12,UsbOpenBulkEndpoint)

Maybe this function is now called 'UsbOpenEndpointAligned'?
Back to top
View user's profile Send private message
EP



Joined: 05 Nov 2005
Posts: 39

PostPosted: Tue Feb 07, 2006 5:05 am    Post subject: Reply with quote

BraveDog wrote:
Maybe this function is now called 'UsbOpenEndpointAligned'?


Yes, that's it. Thanks BraveDog.

To fix the issue with usb_mass driver in 'mass_stor.c' change the following:
Code:
734c734
<          dev->bulkEpO = UsbOpenBulkEndpoint(dev->devId, endpoint);
---
>          dev->bulkEpO = UsbOpenEndpointAligned(dev->devId, endpoint);
741c741
<          dev->bulkEpI = UsbOpenBulkEndpoint(dev->devId, endpoint);
---
>          dev->bulkEpI = UsbOpenEndpointAligned(dev->devId, endpoint);


To fix the issue with usb_mass driver in 'imports.lst' change the following:
Code:
73c73
< I_UsbOpenBulkEndpoint
---
> I_UsbOpenEndpointAligned
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