Changeset 56b962d in mainline for uspace/drv/vhc/hubops.c


Ignore:
Timestamp:
2010-11-26T11:26:35Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84439d7
Parents:
0eddb76
Message:

Standard request callbacks use array in libusbvirt

File:
1 edited

Legend:

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

    r0eddb76 r56b962d  
    6565    void *buffer, size_t size, size_t *actual_size);
    6666
    67 /** Standard USB requests. */
    68 static usbvirt_standard_device_request_ops_t standard_request_ops = {
    69         .on_get_status = NULL,
    70         .on_clear_feature = NULL,
    71         .on_set_feature = NULL,
    72         .on_set_address = NULL,
    73         .on_get_descriptor = on_get_descriptor,
    74         .on_set_descriptor = NULL,
    75         .on_get_configuration = NULL,
    76         .on_set_configuration = NULL,
    77         .on_get_interface = NULL,
    78         .on_set_interface = NULL,
    79         .on_synch_frame = NULL
    80 };
    81 
    8267/** Hub operations. */
    8368usbvirt_device_ops_t hub_ops = {
    84         .standard_request_ops = &standard_request_ops,
     69        .on_standard_request[USB_DEVREQ_GET_DESCRIPTOR] = on_get_descriptor,
    8570        .on_class_device_request = on_class_request,
    8671        .on_data = NULL,
Note: See TracChangeset for help on using the changeset viewer.