Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r2fd26bb  
    6161 * @param name  Name of the device/driver (used in logging)
    6262 */
    63 errno_t nic_driver_init(const char *name)
     63int 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 an error code
    244  */
    245 errno_t nic_get_resources(nic_t *nic_data, hw_res_list_parsed_t *resources)
     243 * @return EOK or negative error code
     244 */
     245int 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 errno_t nic_report_poll_mode(nic_t *nic_data, nic_poll_mode_t mode,
     401int nic_report_poll_mode(nic_t *nic_data, nic_poll_mode_t mode,
    402402        struct timeval *period)
    403403{
    404         errno_t rc = EOK;
     404        int rc = EOK;
    405405        fibril_rwlock_write_lock(&nic_data->main_lock);
    406406        nic_data->poll_mode = mode;
     
    423423 *
    424424 */
    425 errno_t nic_report_address(nic_t *nic_data, const nic_address_t *address)
     425int 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                 errno_t rc = nic_ev_addr_changed(nic_data->client_session,
     436                int rc = nic_ev_addr_changed(nic_data->client_session,
    437437                    address);
    438438
     
    450450         * calls this should not happen.
    451451         */
    452         errno_t rc = nic_rxc_set_addr(&nic_data->rx_control,
     452        int 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         bool check = nic_rxc_check(&nic_data->rx_control, frame->data,
     523        int 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 errno_t nic_query_vlan_mask(const nic_t *nic_data, nic_vlan_mask_t *mask)
     810int 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 errno_t period_fibril_fun(void *data)
     1041static int period_fibril_fun(void *data)
    10421042{
    10431043        nic_t *nic = data;
     
    10921092                fibril_rwlock_read_unlock(&nic->main_lock);
    10931093        }
    1094         return EOK;
     1094        return 0;
    10951095}
    10961096
Note: See TracChangeset for help on using the changeset viewer.