Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/htc.c

    rb7fd2a0 rcde999a  
    6666}
    6767
    68 errno_t htc_init_new_vif(htc_device_t *htc_device)
     68int htc_init_new_vif(htc_device_t *htc_device)
    6969{
    7070        htc_vif_msg_t vif_msg;
     
    153153 *
    154154 */
    155 errno_t htc_send_control_message(htc_device_t *htc_device, void *buffer,
     155int htc_send_control_message(htc_device_t *htc_device, void *buffer,
    156156    size_t buffer_size, uint8_t endpoint_id)
    157157{
     
    176176 *
    177177 */
    178 errno_t htc_send_data_message(htc_device_t *htc_device, void *buffer,
     178int htc_send_data_message(htc_device_t *htc_device, void *buffer,
    179179    size_t buffer_size, uint8_t endpoint_id)
    180180{
     
    199199 *
    200200 */
    201 errno_t htc_read_data_message(htc_device_t *htc_device, void *buffer,
     201int htc_read_data_message(htc_device_t *htc_device, void *buffer,
    202202    size_t buffer_size, size_t *transferred_size)
    203203{
     
    219219 *
    220220 */
    221 errno_t htc_read_control_message(htc_device_t *htc_device, void *buffer,
     221int htc_read_control_message(htc_device_t *htc_device, void *buffer,
    222222    size_t buffer_size, size_t *transferred_size)
    223223{
     
    239239 *
    240240 */
    241 static errno_t htc_connect_service(htc_device_t *htc_device,
     241static int htc_connect_service(htc_device_t *htc_device,
    242242    wmi_services_t service_id, int *response_endpoint_no)
    243243{
     
    261261       
    262262        /* Send HTC message. */
    263         errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
     263        int rc = htc_send_control_message(htc_device, buffer, buffer_size,
    264264            htc_device->endpoints.ctrl_endpoint);
    265265        if (rc != EOK) {
     
    312312 *
    313313 */
    314 static errno_t htc_config_credits(htc_device_t *htc_device)
     314static int htc_config_credits(htc_device_t *htc_device)
    315315{
    316316        size_t buffer_size = sizeof(htc_frame_header_t) +
     
    327327       
    328328        /* Send HTC message. */
    329         errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
     329        int rc = htc_send_control_message(htc_device, buffer, buffer_size,
    330330            htc_device->endpoints.ctrl_endpoint);
    331331        if (rc != EOK) {
     
    360360 *
    361361 */
    362 static errno_t htc_complete_setup(htc_device_t *htc_device)
     362static int htc_complete_setup(htc_device_t *htc_device)
    363363{
    364364        size_t buffer_size = sizeof(htc_frame_header_t) +
     
    373373       
    374374        /* Send HTC message. */
    375         errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
     375        int rc = htc_send_control_message(htc_device, buffer, buffer_size,
    376376            htc_device->endpoints.ctrl_endpoint);
    377377        if (rc != EOK)
     
    394394 *
    395395 */
    396 static errno_t htc_check_ready(htc_device_t *htc_device)
     396static int htc_check_ready(htc_device_t *htc_device)
    397397{
    398398        size_t buffer_size = htc_device->ath_device->ctrl_response_length;
     
    400400       
    401401        /* Read response from device. */
    402         errno_t rc = htc_read_control_message(htc_device, buffer, buffer_size,
     402        int rc = htc_read_control_message(htc_device, buffer, buffer_size,
    403403            NULL);
    404404        if (rc != EOK) {
     
    430430 *
    431431 */
    432 errno_t htc_device_init(ath_t *ath_device, ieee80211_dev_t *ieee80211_dev,
     432int htc_device_init(ath_t *ath_device, ieee80211_dev_t *ieee80211_dev,
    433433    htc_device_t *htc_device)
    434434{
     
    451451 *
    452452 */
    453 errno_t htc_init(htc_device_t *htc_device)
     453int htc_init(htc_device_t *htc_device)
    454454{
    455455        /* First check ready message in device. */
    456         errno_t rc = htc_check_ready(htc_device);
     456        int rc = htc_check_ready(htc_device);
    457457        if (rc != EOK) {
    458458                usb_log_error("Device is not in ready state after loading "
Note: See TracChangeset for help on using the changeset viewer.