Changeset aae339e9 in mainline for uspace/lib/usb/src/usbdrv.c


Ignore:
Timestamp:
2010-11-26T12:47:34Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
172c1682
Parents:
0b749a3
Message:

Add method for getting device address to USBHC interface

File:
1 edited

Legend:

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

    r0b749a3 raae339e9  
    7575usb_address_t usb_drv_get_my_address(int phone, device_t *dev)
    7676{
    77         return ENOTSUP;
     77        ipcarg_t address;
     78        int rc = async_req_1_1(phone, IPC_M_USBHC_GET_ADDRESS,
     79            dev->handle, &address);
     80
     81        if (rc != EOK) {
     82                return rc;
     83        }
     84
     85        return (usb_address_t) address;
    7886}
    7987
Note: See TracChangeset for help on using the changeset viewer.