From ead287988fc38e709cd9dba7f918064065b1d7be Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Sun, 30 Aug 2015 02:21:28 +0200 Subject: [PATCH] 0x201 XID USB request placeholder --- hw/xbox/xid.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/hw/xbox/xid.c b/hw/xbox/xid.c index 0699b77ba5..92b856a597 100644 --- a/hw/xbox/xid.c +++ b/hw/xbox/xid.c @@ -297,17 +297,28 @@ static void usb_xid_handle_control(USBDevice *dev, USBPacket *p, break; case VendorInterfaceRequest | XID_GET_CAPABILITIES: DPRINTF("xid XID_GET_CAPABILITIES 0x%x\n", value); - //FIXME: ! + /* FIXME: ! */ p->status = USB_RET_STALL; //assert(false); break; - case ((USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_DEVICE)<<8) | 0x06: - DPRINTF("xid unknown xpad request 1: value = 0x%x\n", value); + case ((USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_DEVICE)<<8) + | USB_REQ_GET_DESCRIPTOR: + /* FIXME: ! */ + DPRINTF("xid unknown xpad request 0x%x: value = 0x%x\n", + request, value); memset(data, 0x00, length); //FIXME: Intended for the hub: usbd_get_hub_descriptor, UT_READ_CLASS?! p->status = USB_RET_STALL; //assert(false); break; + case ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8) + | USB_REQ_CLEAR_FEATURE: + /* FIXME: ! */ + DPRINTF("xid unknown xpad request 0x%x: value = 0x%x\n", + request, value); + memset(data, 0x00, length); + p->status = USB_RET_STALL; + break; default: DPRINTF("xid USB stalled on request 0x%x value 0x%x\n", request, value); p->status = USB_RET_STALL;