Changes in uspace/lib/nic/src/nic_driver.c [b7fd2a0:2fd26bb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
rb7fd2a0 r2fd26bb 61 61 * @param name Name of the device/driver (used in logging) 62 62 */ 63 errno_t nic_driver_init(const char *name)63 int nic_driver_init(const char *name) 64 64 { 65 65 list_initialize(&nic_globals.frame_list_cache); … … 241 241 * @param[out] resources Parsed lists of resources. 242 242 * 243 * @return EOK or anerror code244 */ 245 errno_t nic_get_resources(nic_t *nic_data, hw_res_list_parsed_t *resources)243 * @return EOK or negative error code 244 */ 245 int nic_get_resources(nic_t *nic_data, hw_res_list_parsed_t *resources) 246 246 { 247 247 ddf_dev_t *dev = nic_data->dev; … … 399 399 * @return EINVAL 400 400 */ 401 errno_t nic_report_poll_mode(nic_t *nic_data, nic_poll_mode_t mode,401 int nic_report_poll_mode(nic_t *nic_data, nic_poll_mode_t mode, 402 402 struct timeval *period) 403 403 { 404 errno_t rc = EOK;404 int rc = EOK; 405 405 fibril_rwlock_write_lock(&nic_data->main_lock); 406 406 nic_data->poll_mode = mode; … … 423 423 * 424 424 */ 425 errno_t nic_report_address(nic_t *nic_data, const nic_address_t *address)425 int nic_report_address(nic_t *nic_data, const nic_address_t *address) 426 426 { 427 427 assert(nic_data); … … 434 434 /* Notify NIL layer (and uppper) if bound - not in add_device */ 435 435 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, 437 437 address); 438 438 … … 450 450 * calls this should not happen. 451 451 */ 452 errno_t rc = nic_rxc_set_addr(&nic_data->rx_control,452 int rc = nic_rxc_set_addr(&nic_data->rx_control, 453 453 &nic_data->mac, address); 454 454 … … 521 521 fibril_rwlock_read_lock(&nic_data->rxc_lock); 522 522 nic_frame_type_t frame_type; 523 boolcheck = nic_rxc_check(&nic_data->rx_control, frame->data,523 int check = nic_rxc_check(&nic_data->rx_control, frame->data, 524 524 frame->size, &frame_type); 525 525 fibril_rwlock_read_unlock(&nic_data->rxc_lock); … … 808 808 * @return ENOENT 809 809 */ 810 errno_t nic_query_vlan_mask(const nic_t *nic_data, nic_vlan_mask_t *mask)810 int nic_query_vlan_mask(const nic_t *nic_data, nic_vlan_mask_t *mask) 811 811 { 812 812 assert(mask); … … 1039 1039 * @return 0, never reached 1040 1040 */ 1041 static errno_t period_fibril_fun(void *data)1041 static int period_fibril_fun(void *data) 1042 1042 { 1043 1043 nic_t *nic = data; … … 1092 1092 fibril_rwlock_read_unlock(&nic->main_lock); 1093 1093 } 1094 return EOK;1094 return 0; 1095 1095 } 1096 1096
Note:
See TracChangeset
for help on using the changeset viewer.