Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_driver.c

    r8d7ec69d r01380b1  
    5353
    5454#include "nic_driver.h"
    55 #include "nic_ev.h"
    5655#include "nic_impl.h"
    5756
     
    107106                if (!iface->send_frame)
    108107                        iface->send_frame = nic_send_frame_impl;
    109                 if (!iface->callback_create)
    110                         iface->callback_create = nic_callback_create_impl;
     108                if (!iface->connect_to_nil)
     109                        iface->connect_to_nil = nic_connect_to_nil_impl;
    111110                if (!iface->get_address)
    112111                        iface->get_address = nic_get_address_impl;
     
    495494       
    496495        /* Notify NIL layer (and uppper) if bound - not in add_device */
    497         if (nic_data->client_session != NULL) {
    498                 int rc = nic_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,
    499498                    nic_data->device_id, address);
    500499                if (rc != EOK) {
     
    604603                }
    605604                fibril_rwlock_write_unlock(&nic_data->stats_lock);
    606                 nic_ev_received(nic_data->client_session, nic_data->device_id,
     605                nil_received_msg(nic_data->nil_session, nic_data->device_id,
    607606                    frame->data, frame->size);
    608607        } else {
     
    639638        fibril_rwlock_write_unlock(&nic_data->stats_lock);
    640639       
    641         nic_ev_received(nic_data->client_session, nic_data->device_id,
     640        nil_received_msg(nic_data->nil_session, nic_data->device_id,
    642641            data, size);
    643642}
     
    693692        nic_data->device_id = NIC_DEVICE_INVALID_ID;
    694693        nic_data->state = NIC_STATE_STOPPED;
    695         nic_data->client_session = NULL;
     694        nic_data->nil_session = NULL;
    696695        nic_data->irc_session = NULL;
    697696        nic_data->poll_mode = NIC_POLL_IMMEDIATE;
     
    747746 */
    748747static 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);
    751750        }
    752751
Note: See TracChangeset for help on using the changeset viewer.