trunk/src/mame/machine/xbox.cpp
| r253571 | r253572 | |
| 896 | 896 | |
| 897 | 897 | if (endpoint == 0) { |
| 898 | 898 | if (pid == SetupPid) { |
| 899 | | USBSetupPacket *p=(struct USBSetupPacket *)buffer; |
| 899 | USBSetupPacket *p=(USBSetupPacket *)buffer; |
| 900 | 900 | // define direction 0:host->device 1:device->host |
| 901 | 901 | controldirection = (p->bmRequestType & 128) >> 7; |
| 902 | 902 | // case ==1, IN data stage and OUT status stage |
| r253571 | r253572 | |
| 1012 | 1012 | |
| 1013 | 1013 | int ohci_function_device::handle_nonstandard_request(USBSetupPacket *setup) |
| 1014 | 1014 | { |
| 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 | |
| 1015 | 1018 | if ((controltype == VendorType) && (controlrecipient == InterfaceRecipient)) |
| 1016 | 1019 | { |
| 1017 | 1020 | if (setup->bRequest == GET_DESCRIPTOR) |
| 1018 | 1021 | { |
| 1019 | 1022 | if (setup->wValue == 0x4200) |
| 1020 | 1023 | { |
| 1021 | | position = nullptr; |
| 1022 | | remain = 0; |
| 1024 | position = mytestdata; |
| 1025 | remain = 16; |
| 1023 | 1026 | } |
| 1024 | 1027 | } |
| 1025 | 1028 | } |