Changeset a837544 in mainline for uspace/lib/usbhost/src/batch.c


Ignore:
Timestamp:
2011-09-13T12:30:05Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4cbb6e4
Parents:
3822f7c9
Message:

libusbhost: Use uint64_t to pass setup_data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/batch.c

    r3822f7c9 ra837544  
    4444    char *buffer,
    4545    size_t buffer_size,
    46     char setup_buffer[USB_SETUP_PACKET_SIZE],
     46    uint64_t setup_buffer,
    4747    usbhc_iface_transfer_in_callback_t func_in,
    4848    usbhc_iface_transfer_out_callback_t func_out,
     
    6868                instance->error = EOK;
    6969                if (ep && ep->transfer_type == USB_TRANSFER_CONTROL) {
    70                         assert(setup_buffer);
    71                         memcpy(instance->setup_buffer, setup_buffer,
     70                        memcpy(instance->setup_buffer, &setup_buffer,
    7271                            USB_SETUP_PACKET_SIZE);
    7372                        instance->setup_size = USB_SETUP_PACKET_SIZE;
Note: See TracChangeset for help on using the changeset viewer.