Changeset 0c00dac in mainline for uspace/lib/usb/src/hub.c


Ignore:
Timestamp:
2011-02-18T13:36:52Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
026d6e2, 50ba203, b6c7da6
Parents:
ec59693 (diff), 6427cf67 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge low/high speed hack

File:
1 edited

Legend:

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

    rec59693 r0c00dac  
    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.