Lines Matching +full:0 +full:x0409

58 #define ClearHubFeature         (0x2000 | USB_REQ_CLEAR_FEATURE)
59 #define ClearPortFeature (0x2300 | USB_REQ_CLEAR_FEATURE)
60 #define GetHubDescriptor (0xa000 | USB_REQ_GET_DESCRIPTOR)
61 #define GetHubStatus (0xa000 | USB_REQ_GET_STATUS)
62 #define GetPortStatus (0xa300 | USB_REQ_GET_STATUS)
63 #define SetHubFeature (0x2000 | USB_REQ_SET_FEATURE)
64 #define SetPortFeature (0x2300 | USB_REQ_SET_FEATURE)
66 #define PORT_STAT_CONNECTION 0x0001
67 #define PORT_STAT_ENABLE 0x0002
68 #define PORT_STAT_SUSPEND 0x0004
69 #define PORT_STAT_OVERCURRENT 0x0008
70 #define PORT_STAT_RESET 0x0010
71 #define PORT_STAT_POWER 0x0100
72 #define PORT_STAT_LOW_SPEED 0x0200
73 #define PORT_STAT_HIGH_SPEED 0x0400
74 #define PORT_STAT_TEST 0x0800
75 #define PORT_STAT_INDICATOR 0x1000
77 #define PORT_STAT_C_CONNECTION 0x0001
78 #define PORT_STAT_C_ENABLE 0x0002
79 #define PORT_STAT_C_SUSPEND 0x0004
80 #define PORT_STAT_C_OVERCURRENT 0x0008
81 #define PORT_STAT_C_RESET 0x0010
83 #define PORT_CONNECTION 0
111 [STR_PRODUCT_V2] = "QEMU USB v2.0 Hub",
116 .bInterfaceNumber = 0,
121 .bEndpointAddress = USB_DIR_IN | 0x01,
124 .bInterval = 0xff,
130 .bInterfaceNumber = 0,
135 .bEndpointAddress = USB_DIR_IN | 0x01,
144 .bcdUSB = 0x0110,
161 .bcdUSB = 0x0200,
179 .idVendor = 0x0409,
180 .idProduct = 0x55aa,
181 .bcdDevice = 0x0101,
192 .idVendor = 0x0409,
193 .idProduct = 0x55aa,
194 .bcdDevice = 0x0201,
206 0x00, /* u8 bLength; patched in later */
207 0x29, /* u8 bDescriptorType; Hub-descriptor */
208 0x00, /* u8 bNbrPorts; (patched later) */
209 0x0a, /* u16 wHubCharacteristics; */
210 0x00, /* (per-port OC, no power switching) */
211 0x01, /* u8 bPwrOn2pwrGood; 2ms */
212 0x00 /* u8 bHubContrCurrent; 0 mA */
221 if (status & 0x1f) { in usb_hub_port_change()
272 for (i = 0; i < s->num_ports; i++) { in usb_hub_port_update_timer()
276 usb_wakeup(s->intr, 0); in usb_hub_port_update_timer()
287 usb_wakeup(s->intr, 0); in usb_hub_attach()
296 usb_wakeup(s->intr, 0); in usb_hub_detach()
304 usb_wakeup(s->intr, 0); in usb_hub_detach()
321 usb_wakeup(s->intr, 0); in usb_hub_wakeup()
349 for (i = 0; i < s->num_ports; i++) { in usb_hub_find_device()
369 for (i = 0; i < s->num_ports; i++) { in usb_hub_handle_reset()
371 port->wPortStatus = 0; in usb_hub_handle_reset()
372 port->wPortChange = 0; in usb_hub_handle_reset()
397 if (feature < 0 || feature >= ARRAY_SIZE(name)) { in feature_name()
412 if (ret >= 0) { in usb_hub_handle_control()
418 if (value == 0 && index != 0x81) { /* clear ep halt */ in usb_hub_handle_control()
424 data[0] = 0; in usb_hub_handle_control()
425 data[1] = 0; in usb_hub_handle_control()
426 data[2] = 0; in usb_hub_handle_control()
427 data[3] = 0; in usb_hub_handle_control()
441 data[0] = port->wPortStatus; in usb_hub_handle_control()
450 if (value != 0 && value != 1) { in usb_hub_handle_control()
479 usb_wakeup(s->intr, 0); in usb_hub_handle_control()
533 port->wPortChange = 0; in usb_hub_handle_control()
543 unsigned int n, limit, var_hub_size = 0; in usb_hub_handle_control()
549 data[3] &= ~0x03; in usb_hub_handle_control()
550 data[3] |= 0x01; in usb_hub_handle_control()
556 data[n] = 0x00; in usb_hub_handle_control()
563 data[n] = 0xff; in usb_hub_handle_control()
568 data[0] = p->actual_length; in usb_hub_handle_control()
596 status = 0; in usb_hub_handle_data()
597 for (i = 0; i < s->num_ports; i++) { in usb_hub_handle_data()
602 if (status != 0) { in usb_hub_handle_data()
604 for(i = 0; i < n; i++) { in usb_hub_handle_data()
628 for (i = 0; i < s->num_ports; i++) { in usb_hub_unrealize()
679 for (i = 0; i < s->num_ports; i++) { in usb_hub_realize()
684 ((s->usb_version == 2) ? USB_SPEED_MASK_HIGH : 0)); in usb_hub_realize()
725 VMSTATE_STRUCT_ARRAY(ports, USBHubState, MAX_PORTS, 0,