Previous 199869 Revisions Next

r45060 Saturday 20th February, 2016 at 21:48:11 UTC by Samuele Zannoli
xbox.cpp: more usb (nw)
[src/mame/machine]xbox.cpp

trunk/src/mame/machine/xbox.cpp
r253571r253572
896896
897897   if (endpoint == 0) {
898898      if (pid == SetupPid) {
899         USBSetupPacket *p=(struct USBSetupPacket *)buffer;
899         USBSetupPacket *p=(USBSetupPacket *)buffer;
900900         // define direction 0:host->device 1:device->host
901901         controldirection = (p->bmRequestType & 128) >> 7;
902902         // case ==1, IN data stage and OUT status stage
r253571r253572
10121012
10131013int ohci_function_device::handle_nonstandard_request(USBSetupPacket *setup)
10141014{
1015   //                              >=8  ==42  !=0  !=0  1,3       2<20 <=20
1016   static UINT8 mytestdata[16] = { 0x10,0x42 ,0x32,0x43,1   ,0x65,0x18,0x20,0x98,0xa9,0xba,0xcb,0xdc,0xed,0xfe };
1017
10151018   if ((controltype == VendorType) && (controlrecipient == InterfaceRecipient))
10161019   {
10171020      if (setup->bRequest == GET_DESCRIPTOR)
10181021      {
10191022         if (setup->wValue == 0x4200)
10201023         {
1021            position = nullptr;
1022            remain = 0;
1024            position = mytestdata;
1025            remain = 16;
10231026         }
10241027      }
10251028   }


Previous 199869 Revisions Next


© 1997-2024 The MAME Team