Dear Sir:
I want to make the WinCE support Max Lun, and I find the following
code:
PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\STORAGE\TRANSPORT\BOT\Bot.c
else if (udr.bmRequestType ==
(USB_REQUEST_CLASS | USB_REQUEST_FOR_INTERFACE |
USB_REQUEST_DEVICE_TO_HOST) ) {
if (udr.bRequest == BOT_GET_MAX_LUN_REQUEST) {
if ( (udr.wValue == 0) && (udr.wIndex == 0) && (udr.wLength == 1) )
{
// Limited to a single LUN
DEBUGMSG(ZONE_COMMENT, (_T("%s Get max LUN class request\r\n"),
pszFname));
g_bScratch = 0; //the default code only support one Lun.
BOT_SetupTx(&g_rgPipeTransfers[CONTROL_TRANSFER], &g_bScratch,
sizeof(g_bScratch));
response = CR_SUCCESS;
}
For the WinCE demo code, it doesn¡¦t support max lun, I modify the above
code, and make g_bScratch = 0; at the same time, I modify Block.cpp, make
the resident nand flash as disk0, and make the SD card as disk 1, But I
analysis the usb transfer CBW, PC doesn¡¦t send me any UFI command about
index 1. So I can only see on usb disk in the PC.
Please help me, How can I make my WinCe support Max lun?
Best Regards
Mike Han