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