Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r28cb8bf7 r4e8e1f5  
    8484        }*/
    8585
    86         result->address = addr;
     86        result->usb_device = usb_new(usb_hcd_attached_device_info_t);
     87        result->usb_device->address = addr;
    8788
    8889        // get hub descriptor
     
    154155        int opResult;
    155156        usb_target_t target;
    156         target.address = hub_info->address;
     157        target.address = hub_info->usb_device->address;
    157158        target.endpoint = 0;
    158159
     
    215216        dprintf(USB_LOG_LEVEL_INFO, "hub dev added");
    216217        dprintf(USB_LOG_LEVEL_DEBUG, "\taddress %d, has %d ports ",
    217                         hub_info->address,
     218                        hub_info->usb_device->address,
    218219                        hub_info->port_count);
    219220        dprintf(USB_LOG_LEVEL_DEBUG, "\tused configuration %d",config_descriptor.configuration_number);
     
    464465
    465466                usb_target_t target;
    466                 target.address = hub_info->address;
     467                target.address = hub_info->usb_device->address;
    467468                target.endpoint = 1;/// \TODO get from endpoint descriptor
    468469                dprintf(USB_LOG_LEVEL_INFO, "checking changes for hub at addr %d",
     
    506507                        if (interrupt) {
    507508                                usb_hub_process_interrupt(
    508                                         hub_info, hc, port, hub_info->address);
     509                                        hub_info, hc, port, hub_info->usb_device->address);
    509510                        }
    510511                }
Note: See TracChangeset for help on using the changeset viewer.