Changeset 3121b5f in mainline for uspace/lib/drv


Ignore:
Timestamp:
2013-08-07T09:51:53Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e588d12
Parents:
5514cf7
Message:

rename get_device_handle ⇒ get_my_device_handle

Location:
uspace/lib/drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usb.c

    r5514cf7 r3121b5f  
    6565typedef enum {
    6666        IPC_M_USB_GET_MY_INTERFACE,
    67         IPC_M_USB_GET_DEVICE_HANDLE,
     67        IPC_M_USB_GET_MY_DEVICE_HANDLE,
    6868        IPC_M_USB_RESERVE_DEFAULT_ADDRESS,
    6969        IPC_M_USB_RELEASE_DEFAULT_ADDRESS,
     
    9999 * @return Error code.
    100100 */
    101 int usb_get_device_handle(async_exch_t *exch, devman_handle_t *handle)
     101int usb_get_my_device_handle(async_exch_t *exch, devman_handle_t *handle)
    102102{
    103103        devman_handle_t h = 0;
    104104        const int ret = async_req_1_1(exch, DEV_IFACE_ID(USB_DEV_IFACE),
    105             IPC_M_USB_GET_DEVICE_HANDLE, &h);
     105            IPC_M_USB_GET_MY_DEVICE_HANDLE, &h);
    106106        if (ret == EOK && handle)
    107107                *handle = (devman_handle_t)h;
     
    273273
    274274static void remote_usb_get_my_interface(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    275 static void remote_usb_get_device_handle(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     275static void remote_usb_get_my_device_handle(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    276276static void remote_usb_reserve_default_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    277277static void remote_usb_release_default_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     
    286286static remote_iface_func_ptr_t remote_usb_iface_ops [] = {
    287287        [IPC_M_USB_GET_MY_INTERFACE] = remote_usb_get_my_interface,
    288         [IPC_M_USB_GET_DEVICE_HANDLE] = remote_usb_get_device_handle,
     288        [IPC_M_USB_GET_MY_DEVICE_HANDLE] = remote_usb_get_my_device_handle,
    289289        [IPC_M_USB_RESERVE_DEFAULT_ADDRESS] = remote_usb_reserve_default_address,
    290290        [IPC_M_USB_RELEASE_DEFAULT_ADDRESS] = remote_usb_release_default_address,
     
    323323}
    324324
    325 void remote_usb_get_device_handle(ddf_fun_t *fun, void *iface,
     325void remote_usb_get_my_device_handle(ddf_fun_t *fun, void *iface,
    326326    ipc_callid_t callid, ipc_call_t *call)
    327327{
    328328        const usb_iface_t *usb_iface = (usb_iface_t *) iface;
    329329
    330         if (usb_iface->get_device_handle == NULL) {
     330        if (usb_iface->get_my_device_handle == NULL) {
    331331                async_answer_0(callid, ENOTSUP);
    332332                return;
     
    334334
    335335        devman_handle_t handle;
    336         const int ret = usb_iface->get_device_handle(fun, &handle);
     336        const int ret = usb_iface->get_my_device_handle(fun, &handle);
    337337        if (ret != EOK) {
    338338                async_answer_0(callid, ret);
  • uspace/lib/drv/include/usb_iface.h

    r5514cf7 r3121b5f  
    5353
    5454int usb_get_my_interface(async_exch_t *, int *);
    55 int usb_get_device_handle(async_exch_t *, devman_handle_t *);
     55int usb_get_my_device_handle(async_exch_t *, devman_handle_t *);
    5656
    5757int usb_reserve_default_address(async_exch_t *, usb_speed_t);
     
    7676typedef struct {
    7777        int (*get_my_interface)(ddf_fun_t *, int *);
    78         int (*get_device_handle)(ddf_fun_t *, devman_handle_t *);
     78        int (*get_my_device_handle)(ddf_fun_t *, devman_handle_t *);
    7979
    8080        int (*reserve_default_address)(ddf_fun_t *, usb_speed_t);
Note: See TracChangeset for help on using the changeset viewer.