Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_driver.c

    r2fd26bb rb7fd2a0  
    6161 * @param name  Name of the device/driver (used in logging)
    6262 */
    63 int nic_driver_init(const char *name)
     63errno_t nic_driver_init(const char *name)
    6464{
    6565        list_initialize(&nic_globals.frame_list_cache);
     
    241241 * @param[out]  resources       Parsed lists of resources.
    242242 *
    243  * @return EOK or negative error code
    244  */
    245 int nic_get_resources(nic_t *nic_data, hw_res_list_parsed_t *resources)
     243 * @return EOK or an error code
     244 */
     245errno_t nic_get_resources(nic_t *nic_data, hw_res_list_parsed_t *resources)
    246246{
    247247        ddf_dev_t *dev = nic_data->dev;
     
    399399 *  @return EINVAL
    400400 */
    401 int nic_report_poll_mode(nic_t *nic_data, nic_poll_mode_t mode,
     401errno_t nic_report_poll_mode(nic_t *nic_data, nic_poll_mode_t mode,
    402402        struct timeval *period)
    403403{
    404         int rc = EOK;
     404        errno_t rc = EOK;
    405405        fibril_rwlock_write_lock(&nic_data->main_lock);
    406406        nic_data->poll_mode = mode;
     
    423423 *
    424424 */
    425 int nic_report_address(nic_t *nic_data, const nic_address_t *address)
     425errno_t nic_report_address(nic_t *nic_data, const nic_address_t *address)
    426426{
    427427        assert(nic_data);
     
    434434        /* Notify NIL layer (and uppper) if bound - not in add_device */
    435435        if (nic_data->client_session != NULL) {
    436                 int rc = nic_ev_addr_changed(nic_data->client_session,
     436                errno_t rc = nic_ev_addr_changed(nic_data->client_session,
    437437                    address);
    438438
     
    450450         * calls this should not happen.
    451451         */
    452         int rc = nic_rxc_set_addr(&nic_data->rx_control,
     452        errno_t rc = nic_rxc_set_addr(&nic_data->rx_control,
    453453            &nic_data->mac, address);
    454454       
     
    521521        fibril_rwlock_read_lock(&nic_data->rxc_lock);
    522522        nic_frame_type_t frame_type;
    523         int check = nic_rxc_check(&nic_data->rx_control, frame->data,
     523        bool check = nic_rxc_check(&nic_data->rx_control, frame->data,
    524524            frame->size, &frame_type);
    525525        fibril_rwlock_read_unlock(&nic_data->rxc_lock);
     
    808808 * @return ENOENT
    809809 */
    810 int nic_query_vlan_mask(const nic_t *nic_data, nic_vlan_mask_t *mask)
     810errno_t nic_query_vlan_mask(const nic_t *nic_data, nic_vlan_mask_t *mask)
    811811{
    812812        assert(mask);
     
    10391039 *  @return 0, never reached
    10401040 */
    1041 static int period_fibril_fun(void *data)
     1041static errno_t period_fibril_fun(void *data)
    10421042{
    10431043        nic_t *nic = data;
     
    10921092                fibril_rwlock_read_unlock(&nic->main_lock);
    10931093        }
    1094         return 0;
     1094        return EOK;
    10951095}
    10961096
Note: See TracChangeset for help on using the changeset viewer.