| View previous topic :: View next topic |
| Author |
Message |
EP
Joined: 05 Nov 2005 Posts: 39
|
Posted: Sat Feb 04, 2006 4:31 pm Post subject: usb_mass driver no longer compiles do to new PS2SDK changes |
|
|
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 |
|
 |
BraveDog
Joined: 30 Dec 2004 Posts: 29 Location: Cleveland
|
Posted: Tue Feb 07, 2006 3:27 am Post subject: |
|
|
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 |
|
 |
EP
Joined: 05 Nov 2005 Posts: 39
|
Posted: Tue Feb 07, 2006 5:05 am Post subject: |
|
|
| 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 |
|
 |
|