Changes in uspace/lib/usb/src/usbdrv.c [d08b1603:0a5a950] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/usbdrv.c
rd08b1603 r0a5a950 36 36 #include <usbhc_iface.h> 37 37 #include <errno.h> 38 #include <str_error.h>39 38 40 39 /** Information about pending transaction on HC. */ … … 91 90 { 92 91 ipcarg_t address; 93 int rc = async_req_2_1(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 94 IPC_M_USBHC_GET_ADDRESS, 92 int rc = async_req_1_1(phone, IPC_M_USBHC_GET_ADDRESS, 95 93 dev->handle, &address); 96 94 97 95 if (rc != EOK) { 98 printf("usb_drv_get_my_address over %d failed: %s\n", phone, str_error(rc));99 96 return rc; 100 97 } … … 110 107 int usb_drv_reserve_default_address(int phone) 111 108 { 112 return async_req_1_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 113 IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS); 109 return async_req_0_0(phone, IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS); 114 110 } 115 111 … … 121 117 int usb_drv_release_default_address(int phone) 122 118 { 123 return async_req_1_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 124 IPC_M_USBHC_RELEASE_DEFAULT_ADDRESS); 119 return async_req_0_0(phone, IPC_M_USBHC_RELEASE_DEFAULT_ADDRESS); 125 120 } 126 121 … … 133 128 { 134 129 ipcarg_t address; 135 int rc = async_req_1_1(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 136 IPC_M_USBHC_REQUEST_ADDRESS, &address); 130 int rc = async_req_0_1(phone, IPC_M_USBHC_REQUEST_ADDRESS, &address); 137 131 if (rc != EOK) { 138 132 return rc; … … 152 146 devman_handle_t handle) 153 147 { 154 int rc = async_req_3_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 155 IPC_M_USBHC_BIND_ADDRESS, 148 int rc = async_req_2_0(phone, IPC_M_USBHC_BIND_ADDRESS, 156 149 address, handle); 157 150 … … 167 160 int usb_drv_release_address(int phone, usb_address_t address) 168 161 { 169 return async_req_2_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 170 IPC_M_USBHC_RELEASE_ADDRESS, address); 162 return async_req_1_0(phone, IPC_M_USBHC_RELEASE_ADDRESS, address); 171 163 } 172 164
Note:
See TracChangeset
for help on using the changeset viewer.