Changeset b7fd2a0 in mainline for uspace/drv/nic/ar9271/htc.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/htc.c
r36f0738 rb7fd2a0 66 66 } 67 67 68 int htc_init_new_vif(htc_device_t *htc_device)68 errno_t htc_init_new_vif(htc_device_t *htc_device) 69 69 { 70 70 htc_vif_msg_t vif_msg; … … 153 153 * 154 154 */ 155 int htc_send_control_message(htc_device_t *htc_device, void *buffer,155 errno_t htc_send_control_message(htc_device_t *htc_device, void *buffer, 156 156 size_t buffer_size, uint8_t endpoint_id) 157 157 { … … 176 176 * 177 177 */ 178 int htc_send_data_message(htc_device_t *htc_device, void *buffer,178 errno_t htc_send_data_message(htc_device_t *htc_device, void *buffer, 179 179 size_t buffer_size, uint8_t endpoint_id) 180 180 { … … 199 199 * 200 200 */ 201 int htc_read_data_message(htc_device_t *htc_device, void *buffer,201 errno_t htc_read_data_message(htc_device_t *htc_device, void *buffer, 202 202 size_t buffer_size, size_t *transferred_size) 203 203 { … … 219 219 * 220 220 */ 221 int htc_read_control_message(htc_device_t *htc_device, void *buffer,221 errno_t htc_read_control_message(htc_device_t *htc_device, void *buffer, 222 222 size_t buffer_size, size_t *transferred_size) 223 223 { … … 239 239 * 240 240 */ 241 static int htc_connect_service(htc_device_t *htc_device,241 static errno_t htc_connect_service(htc_device_t *htc_device, 242 242 wmi_services_t service_id, int *response_endpoint_no) 243 243 { … … 261 261 262 262 /* Send HTC message. */ 263 int rc = htc_send_control_message(htc_device, buffer, buffer_size,263 errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size, 264 264 htc_device->endpoints.ctrl_endpoint); 265 265 if (rc != EOK) { … … 312 312 * 313 313 */ 314 static int htc_config_credits(htc_device_t *htc_device)314 static errno_t htc_config_credits(htc_device_t *htc_device) 315 315 { 316 316 size_t buffer_size = sizeof(htc_frame_header_t) + … … 327 327 328 328 /* Send HTC message. */ 329 int rc = htc_send_control_message(htc_device, buffer, buffer_size,329 errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size, 330 330 htc_device->endpoints.ctrl_endpoint); 331 331 if (rc != EOK) { … … 360 360 * 361 361 */ 362 static int htc_complete_setup(htc_device_t *htc_device)362 static errno_t htc_complete_setup(htc_device_t *htc_device) 363 363 { 364 364 size_t buffer_size = sizeof(htc_frame_header_t) + … … 373 373 374 374 /* Send HTC message. */ 375 int rc = htc_send_control_message(htc_device, buffer, buffer_size,375 errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size, 376 376 htc_device->endpoints.ctrl_endpoint); 377 377 if (rc != EOK) … … 394 394 * 395 395 */ 396 static int htc_check_ready(htc_device_t *htc_device)396 static errno_t htc_check_ready(htc_device_t *htc_device) 397 397 { 398 398 size_t buffer_size = htc_device->ath_device->ctrl_response_length; … … 400 400 401 401 /* Read response from device. */ 402 int rc = htc_read_control_message(htc_device, buffer, buffer_size,402 errno_t rc = htc_read_control_message(htc_device, buffer, buffer_size, 403 403 NULL); 404 404 if (rc != EOK) { … … 430 430 * 431 431 */ 432 int htc_device_init(ath_t *ath_device, ieee80211_dev_t *ieee80211_dev,432 errno_t htc_device_init(ath_t *ath_device, ieee80211_dev_t *ieee80211_dev, 433 433 htc_device_t *htc_device) 434 434 { … … 451 451 * 452 452 */ 453 int htc_init(htc_device_t *htc_device)453 errno_t htc_init(htc_device_t *htc_device) 454 454 { 455 455 /* First check ready message in device. */ 456 int rc = htc_check_ready(htc_device);456 errno_t rc = htc_check_ready(htc_device); 457 457 if (rc != EOK) { 458 458 usb_log_error("Device is not in ready state after loading "
Note:
See TracChangeset
for help on using the changeset viewer.