Changes in uspace/lib/drv/generic/remote_usbhc.c [8afeb04:272f46f8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
r8afeb04 r272f46f8 165 165 { 166 166 if (!exch || !address) 167 return E BADMEM;167 return EINVAL; 168 168 sysarg_t new_address; 169 169 const int ret = async_req_4_1(exch, DEV_IFACE_ID(USBHC_DEV_IFACE), … … 178 178 { 179 179 if (!exch) 180 return E BADMEM;180 return EINVAL; 181 181 return async_req_3_0(exch, DEV_IFACE_ID(USBHC_DEV_IFACE), 182 182 IPC_M_USBHC_BIND_ADDRESS, address, handle); … … 187 187 { 188 188 if (!exch) 189 return E BADMEM;189 return EINVAL; 190 190 sysarg_t h; 191 191 const int ret = async_req_2_1(exch, DEV_IFACE_ID(USBHC_DEV_IFACE), … … 199 199 { 200 200 if (!exch) 201 return E BADMEM;201 return EINVAL; 202 202 return async_req_2_0(exch, DEV_IFACE_ID(USBHC_DEV_IFACE), 203 203 IPC_M_USBHC_RELEASE_ADDRESS, address); … … 209 209 { 210 210 if (!exch) 211 return E BADMEM;211 return EINVAL; 212 212 const usb_target_t target = 213 213 {{ .address = address, .endpoint = endpoint }}; … … 225 225 { 226 226 if (!exch) 227 return E BADMEM;227 return EINVAL; 228 228 return async_req_4_0(exch, DEV_IFACE_ID(USBHC_DEV_IFACE), 229 229 IPC_M_USBHC_UNREGISTER_ENDPOINT, address, endpoint, direction); … … 234 234 size_t *rec_size) 235 235 { 236 if (!exch)237 return EBADMEM;238 239 236 if (size == 0 && setup == 0) 240 237 return EOK; 241 238 239 if (!exch) 240 return EINVAL; 242 241 const usb_target_t target = 243 242 {{ .address = address, .endpoint = endpoint }}; … … 289 288 usb_endpoint_t endpoint, uint64_t setup, const void *data, size_t size) 290 289 { 291 if (!exch)292 return EBADMEM;293 294 290 if (size == 0 && setup == 0) 295 291 return EOK; 296 292 293 if (!exch) 294 return EINVAL; 297 295 const usb_target_t target = 298 296 {{ .address = address, .endpoint = endpoint }};
Note:
See TracChangeset
for help on using the changeset viewer.