Changeset 48fa501 in mainline for uspace/lib/usb/src/hc.c


Ignore:
Timestamp:
2013-01-27T19:16:53Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c86c7c
Parents:
11e9e613
Message:

usb: Remove old endpoint management code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hc.c

    r11e9e613 r48fa501  
    164164}
    165165
    166 int usb_hc_register_endpoint(usb_hc_connection_t *connection,
    167     usb_address_t address, usb_endpoint_t endpoint, usb_transfer_type_t type,
    168     usb_direction_t direction, size_t packet_size, unsigned interval)
    169 {
    170         async_exch_t *exch;
    171         EXCH_INIT(connection, exch);
    172 
    173         const int ret = usbhc_register_endpoint(exch, address, endpoint,
    174             type, direction, packet_size, interval);
    175 
    176         EXCH_FINI(connection, exch);
    177         return ret;
    178 }
    179 
    180 int usb_hc_unregister_endpoint(usb_hc_connection_t *connection,
    181     usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction)
    182 {
    183         async_exch_t *exch;
    184         EXCH_INIT(connection, exch);
    185 
    186         const int ret =
    187             usbhc_unregister_endpoint(exch, address, endpoint, direction);
    188 
    189         EXCH_FINI(connection, exch);
    190         return ret;
    191 }
    192 
    193166int usb_hc_read(usb_hc_connection_t *connection, usb_address_t address,
    194167    usb_endpoint_t endpoint, uint64_t setup, void *data, size_t size,
Note: See TracChangeset for help on using the changeset viewer.