Changeset 6427cf67 in mainline for uspace/lib/usb/src/hub.c


Ignore:
Timestamp:
2011-02-18T13:26:12Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c00dac, 735eac3
Parents:
f673f60
Message:

Hack for setting low speed/high speed

Currently, it is only a boolean. Will improve later.

File:
1 edited

Legend:

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

    rf673f60 r6427cf67  
    5555 * @return Error code.
    5656 */
    57 int usb_hc_reserve_default_address(usb_hc_connection_t *connection)
     57int usb_hc_reserve_default_address(usb_hc_connection_t *connection,
     58    bool full_speed)
    5859{
    5960        CHECK_CONNECTION(connection);
    6061
    61         return async_req_1_0(connection->hc_phone,
     62        return async_req_2_0(connection->hc_phone,
    6263            DEV_IFACE_ID(USBHC_DEV_IFACE),
    63             IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS);
     64            IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS, full_speed);
    6465}
    6566
     
    8384 * @return Assigned USB address or negative error code.
    8485 */
    85 usb_address_t usb_hc_request_address(usb_hc_connection_t *connection)
     86usb_address_t usb_hc_request_address(usb_hc_connection_t *connection,
     87    bool full_speed)
    8688{
    8789        CHECK_CONNECTION(connection);
    8890
    8991        sysarg_t address;
    90         int rc = async_req_1_1(connection->hc_phone,
     92        int rc = async_req_2_1(connection->hc_phone,
    9193            DEV_IFACE_ID(USBHC_DEV_IFACE),
    92             IPC_M_USBHC_REQUEST_ADDRESS, &address);
     94            IPC_M_USBHC_REQUEST_ADDRESS, full_speed,
     95            &address);
    9396        if (rc != EOK) {
    9497                return (usb_address_t) rc;
Note: See TracChangeset for help on using the changeset viewer.