Changeset 0472cf17 in mainline for uspace/drv/nic/e1k/e1k.c
- Timestamp:
- 2024-10-13T08:23:43Z (3 months ago)
- Parents:
- b3b79981 (diff), ebb1489 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:43)
- git-committer:
- GitHub <noreply@…> (2024-10-13 08:23:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
rb3b79981 r0472cf17 49 49 #include <nic.h> 50 50 #include <ops/nic.h> 51 #include <pcapdump_iface.h> 51 52 #include "e1k.h" 52 53 … … 174 175 /** Lock for EEPROM access */ 175 176 fibril_mutex_t eeprom_lock; 177 176 178 } e1000_t; 177 179 … … 1189 1191 if (frame != NULL) { 1190 1192 memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size); 1193 1191 1194 nic_received_frame(nic, frame); 1192 1195 } else { … … 2198 2201 goto err_fun_bind; 2199 2202 2200 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC); 2201 if (rc != EOK) 2202 goto err_add_to_cat; 2203 2203 rc = nic_fun_add_to_cats(fun); 2204 if (rc != EOK) { 2205 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 2206 ddf_fun_unbind(fun); 2207 return rc; 2208 } 2204 2209 return EOK; 2205 2210 2206 err_add_to_cat:2207 ddf_fun_unbind(fun);2211 // err_add_to_cat: 2212 // ddf_fun_unbind(fun); 2208 2213 err_fun_bind: 2209 2214 err_rx_structure: … … 2365 2370 2366 2371 memcpy(e1000->tx_frame_virt[tdt], data, size); 2367 2368 2372 tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]); 2369 2373 tx_descriptor_addr->length = size;
Note:
See TracChangeset
for help on using the changeset viewer.