Changeset e55d2c1 in mainline
- Timestamp:
- 2024-04-07T12:53:23Z (5 months ago)
- Children:
- 2a0c827c
- Parents:
- c37c24c
- Location:
- uspace/drv/nic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
rc37c24c re55d2c1 2202 2202 goto err_fun_bind; 2203 2203 2204 // rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);2205 // if (rc != EOK)2206 // goto err_add_to_cat;2207 2208 // rc = ddf_fun_add_to_category(fun, "pcap");2209 // if (rc != EOK) {2210 // ddf_msg(LVL_ERROR, "Failed adding function to category pcap");2211 // goto err_add_to_cat;2212 // }2213 2204 rc = nic_fun_add_to_cats(fun); 2214 2205 if (rc != EOK) { 2215 2206 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 2207 ddf_fun_unbind(fun); 2216 2208 return rc; 2217 2209 } -
uspace/drv/nic/ne2k/ne2k.c
rc37c24c re55d2c1 43 43 #include <str_error.h> 44 44 #include <async.h> 45 #include <ddf/log.h> 45 46 #include "dp8390.h" 46 47 … … 443 444 } 444 445 445 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);446 rc = nic_fun_add_to_cats(fun); 446 447 if (rc != EOK) { 448 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 447 449 ddf_fun_unbind(fun); 448 ddf_fun_destroy(fun);449 return rc;450 }451 rc = ddf_fun_add_to_category(fun, "pcap");452 if (rc != EOK) {453 //ddf_msg(LVL_ERROR, "Failed adding function to category pcap");454 ddf_fun_unbind(fun);455 ddf_fun_destroy(fun);456 450 return rc; 457 451 } … … 483 477 nic_driver_implement(&ne2k_driver_ops, &ne2k_dev_ops, &ne2k_nic_iface); 484 478 479 ddf_log_init(NAME); 485 480 return ddf_driver_main(&ne2k_driver); 486 481 } -
uspace/drv/nic/rtl8139/driver.c
rc37c24c re55d2c1 1308 1308 goto err_fun_create; 1309 1309 } 1310 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC); 1310 1311 rc = nic_fun_add_to_cats(fun); 1311 1312 if (rc != EOK) { 1312 ddf_msg(LVL_ERROR, "Failed adding function to category"); 1313 goto err_fun_bind; 1314 } 1315 1316 rc = ddf_fun_add_to_category(fun, "pcap"); 1317 if (rc != EOK) { 1318 ddf_msg(LVL_ERROR, "Failed adding function to category pcap"); 1319 goto err_fun_bind; 1313 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 1314 ddf_fun_unbind(fun); 1315 return rc; 1320 1316 } 1321 1317 … … 1325 1321 return EOK; 1326 1322 1327 err_fun_bind:1328 ddf_fun_unbind(fun);1323 // err_fun_bind: 1324 // ddf_fun_unbind(fun); 1329 1325 err_fun_create: 1330 1326 ddf_fun_destroy(fun); -
uspace/drv/nic/rtl8169/driver.c
rc37c24c re55d2c1 457 457 } 458 458 459 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);459 rc = nic_fun_add_to_cats(fun); 460 460 if (rc != EOK) { 461 ddf_msg(LVL_ERROR, "Failed adding function to category"); 462 goto err_fun_bind; 461 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 462 ddf_fun_unbind(fun); 463 return rc; 463 464 } 464 465 … … 467 468 return EOK; 468 469 469 err_fun_bind:470 ddf_fun_unbind(fun);470 // err_fun_bind: 471 // ddf_fun_unbind(fun); 471 472 err_fun_create: 472 473 ddf_fun_destroy(fun); -
uspace/drv/nic/virtio-net/virtio-net.c
rc37c24c re55d2c1 423 423 } 424 424 425 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);425 rc = nic_fun_add_to_cats(fun); 426 426 if (rc != EOK) { 427 ddf_msg(LVL_ERROR, "Failed adding function to category"); 428 goto unbind; 427 ddf_msg(LVL_ERROR, "Failed adding function to categories"); 428 ddf_fun_unbind(fun); 429 return rc; 429 430 } 430 431 … … 432 433 ddf_dev_get_name(dev)); 433 434 434 rc = ddf_fun_add_to_category(fun, "pcap"); 435 if (rc != EOK) { 436 ddf_msg(LVL_ERROR, "Failed adding function to category pcap"); 437 goto unbind; 438 } 439 440 return EOK; 441 442 unbind: 443 ddf_fun_unbind(fun); 435 return EOK; 436 437 // unbind: 438 // ddf_fun_unbind(fun); 444 439 destroy: 445 440 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.