Changeset dad6e8a in mainline for uspace/drv/vhc/hubops.c


Ignore:
Timestamp:
2010-12-12T10:34:48Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14388b4
Parents:
cf978f2 (diff), 5174c62 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development/ changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hubops.c

    rcf978f2 rdad6e8a  
    195195}
    196196
    197 static int get_hub_descriptor(uint8_t descriptor_type,
    198     uint8_t descriptor_index, uint16_t length)
    199 {
     197static int get_hub_descriptor(struct usbvirt_device *dev,
     198    uint8_t descriptor_index,
     199    uint8_t descriptor_type, uint16_t length)
     200{
     201        if (descriptor_type == USB_DESCTYPE_HUB) {
     202                int rc = dev->control_transfer_reply(dev, 0,
     203                    &hub_descriptor, hub_descriptor.length);
     204
     205                return rc;
     206
     207        }
     208
    200209        return ENOTSUP;
    201210}
     
    313322                       
    314323                case USB_HUB_REQUEST_GET_DESCRIPTOR:
    315                         return get_hub_descriptor(request->value_low,
     324                        return get_hub_descriptor(dev, request->value_low,
    316325                            request->value_high, request->length);
    317326                       
Note: See TracChangeset for help on using the changeset viewer.