Changeset 1b20da0 in mainline for uspace/lib/nic/src
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- Location:
- uspace/lib/nic/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_addr_db.c
rdf6ded8 r1b20da0 56 56 57 57 58 /* 59 * Hash table helper functions 58 /* 59 * Hash table helper functions 60 60 */ 61 61 typedef struct { … … 181 181 182 182 nic_addr_entry_t *entry = malloc(sizeof(nic_addr_entry_t) + db->addr_len - 1); 183 if (entry == NULL) 183 if (entry == NULL) 184 184 return ENOMEM; 185 185 … … 246 246 * Helper function for nic_addr_db_foreach 247 247 */ 248 static bool nic_addr_db_fe_helper(ht_link_t *item, void *arg) 248 static bool nic_addr_db_fe_helper(ht_link_t *item, void *arg) 249 249 { 250 250 nic_addr_db_fe_arg_t *hs = (nic_addr_db_fe_arg_t *) arg; -
uspace/lib/nic/src/nic_driver.c
rdf6ded8 r1b20da0 375 375 } 376 376 377 /** Get the polling mode information from the device 377 /** Get the polling mode information from the device 378 378 * 379 379 * The main lock should be locked, otherwise the inconsistency between … … 898 898 } 899 899 900 /** 900 /** 901 901 * @param dev DDF device associated with NIC 902 902 * @return The associated NIC structure … … 907 907 } 908 908 909 /** 909 /** 910 910 * @param dev DDF function associated with NIC 911 911 * @return The associated NIC structure … … 938 938 * @param cause The concrete error cause. 939 939 */ 940 void nic_report_send_error(nic_t *nic_data, nic_send_error_cause_t cause, 940 void nic_report_send_error(nic_t *nic_data, nic_send_error_cause_t cause, 941 941 unsigned count) 942 942 { … … 1021 1021 } 1022 1022 1023 /** Just wrapper for checking nonzero time interval 1023 /** Just wrapper for checking nonzero time interval 1024 1024 * 1025 1025 * @oaram t The interval to check … … 1105 1105 /* Create the fibril if it is not crated */ 1106 1106 if (nic_data->sw_poll_info.fibril == 0) { 1107 nic_data->sw_poll_info.fibril = fibril_create(period_fibril_fun, 1107 nic_data->sw_poll_info.fibril = fibril_create(period_fibril_fun, 1108 1108 nic_data); 1109 1109 nic_data->sw_poll_info.running = 0; -
uspace/lib/nic/src/nic_impl.c
rdf6ded8 r1b20da0 756 756 errno_t rc = nic_data->on_poll_mode_change(nic_data, mode, period); 757 757 assert(rc == EOK || rc == ENOTSUP || rc == EINVAL); 758 if (rc == ENOTSUP && (nic_data->on_poll_request != NULL) && 758 if (rc == ENOTSUP && (nic_data->on_poll_request != NULL) && 759 759 (mode == NIC_POLL_PERIODIC || mode == NIC_POLL_SOFTWARE_PERIODIC) ) { 760 760 761 761 rc = nic_data->on_poll_mode_change(nic_data, NIC_POLL_ON_DEMAND, NULL); 762 762 assert(rc == EOK || rc == ENOTSUP); 763 if (rc == EOK) 763 if (rc == EOK) 764 764 nic_sw_period_start(nic_data); 765 765 } -
uspace/lib/nic/src/nic_wol_virtues.c
rdf6ded8 r1b20da0 187 187 nic_wol_virtue_t *nic_wol_virtues_remove(nic_wol_virtues_t *wvs, nic_wv_id_t id) 188 188 { 189 nic_wol_virtue_t *virtue = 189 nic_wol_virtue_t *virtue = 190 190 (nic_wol_virtue_t *) hash_table_find(&wvs->table, &id); 191 191 if (virtue == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.