Changeset 7dfc06fa in mainline for uspace/drv/ehci-hcd/hc_iface.c


Ignore:
Timestamp:
2011-04-08T18:08:46Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c6cb76d
Parents:
c1b1944
Message:

Do not send max packet size with each transfer

See ticket #177, #121 and partly #49.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ehci-hcd/hc_iface.c

    rc1b1944 r7dfc06fa  
    165165 * @param[in] fun Device function the action was invoked on.
    166166 * @param[in] target Target pipe (address and endpoint number) specification.
    167  * @param[in] max_packet_size Max packet size for the transfer.
    168167 * @param[in] data Data to be sent (in USB endianess, allocated and deallocated
    169168 *      by the caller).
     
    174173 */
    175174static int interrupt_out(ddf_fun_t *fun, usb_target_t target,
    176     size_t max_packet_size, void *data, size_t size,
     175    void *data, size_t size,
    177176    usbhc_iface_transfer_out_callback_t callback, void *arg)
    178177{
     
    191190 * @param[in] fun Device function the action was invoked on.
    192191 * @param[in] target Target pipe (address and endpoint number) specification.
    193  * @param[in] max_packet_size Max packet size for the transfer.
    194192 * @param[in] data Buffer where to store the data (in USB endianess,
    195193 *      allocated and deallocated by the caller).
     
    200198 */
    201199static int interrupt_in(ddf_fun_t *fun, usb_target_t target,
    202     size_t max_packet_size, void *data, size_t size,
     200    void *data, size_t size,
    203201    usbhc_iface_transfer_in_callback_t callback, void *arg)
    204202{
     
    217215 * @param[in] fun Device function the action was invoked on.
    218216 * @param[in] target Target pipe (address and endpoint number) specification.
    219  * @param[in] max_packet_size Max packet size for the transfer.
    220217 * @param[in] data Data to be sent (in USB endianess, allocated and deallocated
    221218 *      by the caller).
     
    226223 */
    227224static int bulk_out(ddf_fun_t *fun, usb_target_t target,
    228     size_t max_packet_size, void *data, size_t size,
     225    void *data, size_t size,
    229226    usbhc_iface_transfer_out_callback_t callback, void *arg)
    230227{
     
    243240 * @param[in] fun Device function the action was invoked on.
    244241 * @param[in] target Target pipe (address and endpoint number) specification.
    245  * @param[in] max_packet_size Max packet size for the transfer.
    246242 * @param[in] data Buffer where to store the data (in USB endianess,
    247243 *      allocated and deallocated by the caller).
     
    252248 */
    253249static int bulk_in(ddf_fun_t *fun, usb_target_t target,
    254     size_t max_packet_size, void *data, size_t size,
     250    void *data, size_t size,
    255251    usbhc_iface_transfer_in_callback_t callback, void *arg)
    256252{
     
    269265 * @param[in] fun Device function the action was invoked on.
    270266 * @param[in] target Target pipe (address and endpoint number) specification.
    271  * @param[in] max_packet_size Max packet size for the transfer.
    272267 * @param[in] setup_packet Setup packet buffer (in USB endianess, allocated
    273268 *      and deallocated by the caller).
     
    281276 */
    282277static int control_write(ddf_fun_t *fun, usb_target_t target,
    283     size_t max_packet_size,
    284278    void *setup_packet, size_t setup_packet_size,
    285279    void *data_buffer, size_t data_buffer_size,
     
    300294 * @param[in] fun Device function the action was invoked on.
    301295 * @param[in] target Target pipe (address and endpoint number) specification.
    302  * @param[in] max_packet_size Max packet size for the transfer.
    303296 * @param[in] setup_packet Setup packet buffer (in USB endianess, allocated
    304297 *      and deallocated by the caller).
     
    312305 */
    313306static int control_read(ddf_fun_t *fun, usb_target_t target,
    314     size_t max_packet_size,
    315307    void *setup_packet, size_t setup_packet_size,
    316308    void *data_buffer, size_t data_buffer_size,
Note: See TracChangeset for help on using the changeset viewer.