Changes in uspace/drv/nic/e1k/e1k.c [3a4c6d9:870841cf] in mainline
- File:
-
- 1 edited
-
uspace/drv/nic/e1k/e1k.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
r3a4c6d9 r870841cf 175 175 /** Lock for EEPROM access */ 176 176 fibril_mutex_t eeprom_lock; 177 178 177 } e1000_t; 179 178 … … 1193 1192 if (frame != NULL) { 1194 1193 memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size); 1195 1196 1194 nic_received_frame(nic, frame); 1197 1195 } else { … … 2203 2201 goto err_fun_bind; 2204 2202 2205 rc = nic_fun_add_to_cats(fun); 2206 if (rc != EOK) { 2207 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 2208 ddf_fun_unbind(fun); 2209 return rc; 2210 } 2203 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC); 2204 if (rc != EOK) 2205 goto err_add_to_cat; 2206 2211 2207 return EOK; 2212 2208 2209 err_add_to_cat: 2210 ddf_fun_unbind(fun); 2213 2211 err_fun_bind: 2214 2212 err_rx_structure: … … 2390 2388 2391 2389 memcpy(e1000->tx_frame_virt[tdt], data, size); 2390 2392 2391 tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]); 2393 2392 tx_descriptor_addr->length = size;
Note:
See TracChangeset
for help on using the changeset viewer.
