Revision 3b46e624 hw/usb-hub.c

b/hw/usb-hub.c
118 118
				     5: Remote wakeup,
119 119
				     4..0: resvd */
120 120
	0x00,       /*  u8  MaxPower; */
121
     
121

  
122 122
	/* USB 1.1:
123 123
	 * USB 2.0, single TT organization (mandatory):
124 124
	 *	one interface, protocol 0
......
140 140
	0x00,       /*  u8  if_bInterfaceSubClass; */
141 141
	0x00,       /*  u8  if_bInterfaceProtocol; [usb1.1 or single tt] */
142 142
	0x00,       /*  u8  if_iInterface; */
143
    
143

  
144 144
	/* one endpoint (status change endpoint) */
145 145
	0x07,       /*  u8  ep_bLength; */
146 146
	0x05,       /*  u8  ep_bDescriptorType; Endpoint */
......
167 167
{
168 168
    USBHubState *s = port1->opaque;
169 169
    USBHubPort *port = &s->ports[port1->index];
170
   
170

  
171 171
    if (dev) {
172 172
        if (port->port.dev)
173 173
            usb_attach(port1, NULL);
174
       
174

  
175 175
        port->wPortStatus |= PORT_STAT_CONNECTION;
176 176
        port->wPortChange |= PORT_STAT_C_CONNECTION;
177 177
        if (dev->speed == USB_SPEED_LOW)

Also available in: Unified diff