Changes in uspace/lib/nic/src/nic_driver.c [01380b1:8d7ec69d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
r01380b1 r8d7ec69d 53 53 54 54 #include "nic_driver.h" 55 #include "nic_ev.h" 55 56 #include "nic_impl.h" 56 57 … … 106 107 if (!iface->send_frame) 107 108 iface->send_frame = nic_send_frame_impl; 108 if (!iface->c onnect_to_nil)109 iface->c onnect_to_nil = nic_connect_to_nil_impl;109 if (!iface->callback_create) 110 iface->callback_create = nic_callback_create_impl; 110 111 if (!iface->get_address) 111 112 iface->get_address = nic_get_address_impl; … … 494 495 495 496 /* Notify NIL layer (and uppper) if bound - not in add_device */ 496 if (nic_data-> nil_session != NULL) {497 int rc = ni l_addr_changed_msg(nic_data->nil_session,497 if (nic_data->client_session != NULL) { 498 int rc = nic_ev_addr_changed(nic_data->client_session, 498 499 nic_data->device_id, address); 499 500 if (rc != EOK) { … … 603 604 } 604 605 fibril_rwlock_write_unlock(&nic_data->stats_lock); 605 ni l_received_msg(nic_data->nil_session, nic_data->device_id,606 nic_ev_received(nic_data->client_session, nic_data->device_id, 606 607 frame->data, frame->size); 607 608 } else { … … 638 639 fibril_rwlock_write_unlock(&nic_data->stats_lock); 639 640 640 ni l_received_msg(nic_data->nil_session, nic_data->device_id,641 nic_ev_received(nic_data->client_session, nic_data->device_id, 641 642 data, size); 642 643 } … … 692 693 nic_data->device_id = NIC_DEVICE_INVALID_ID; 693 694 nic_data->state = NIC_STATE_STOPPED; 694 nic_data-> nil_session = NULL;695 nic_data->client_session = NULL; 695 696 nic_data->irc_session = NULL; 696 697 nic_data->poll_mode = NIC_POLL_IMMEDIATE; … … 746 747 */ 747 748 static void nic_destroy(nic_t *nic_data) { 748 if (nic_data-> nil_session != NULL) {749 async_hangup(nic_data-> nil_session);749 if (nic_data->client_session != NULL) { 750 async_hangup(nic_data->client_session); 750 751 } 751 752
Note:
See TracChangeset
for help on using the changeset viewer.