Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ne2k/ne2k.c

    re55d2c1 r60744cb  
    4343#include <str_error.h>
    4444#include <async.h>
    45 #include <ddf/log.h>
    4645#include "dp8390.h"
    4746
     
    122121};
    123122
    124 static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t *);
     123static void ne2k_interrupt_handler(ipc_call_t *, void *);
    125124
    126125static errno_t ne2k_register_interrupt(nic_t *nic_data,
     
    162161
    163162        return register_interrupt_handler(nic_get_ddf_dev(nic_data),
    164             ne2k->irq, ne2k_interrupt_handler, &ne2k->code, handle);
     163            ne2k->irq, ne2k_interrupt_handler, (void *)nic_data, &ne2k->code,
     164            handle);
    165165}
    166166
     
    238238}
    239239
    240 void ne2k_interrupt_handler(ipc_call_t *call, ddf_dev_t *dev)
    241 {
    242         nic_t *nic_data = DRIVER_DATA(dev);
     240/** NE2K interrupt handler
     241 *
     242 * @param call IRQ event notification
     243 * @param arg Argument (nic_t *)
     244 */
     245void ne2k_interrupt_handler(ipc_call_t *call, void *arg)
     246{
     247        nic_t *nic_data = (nic_t *)arg;
    243248        ne2k_interrupt(nic_data, IRQ_GET_ISR(*call), IRQ_GET_TSR(*call));
    244249}
     
    444449        }
    445450
    446         rc = nic_fun_add_to_cats(fun);
     451        rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    447452        if (rc != EOK) {
    448                 ddf_msg(LVL_ERROR, "Failed adding function to categories");
    449453                ddf_fun_unbind(fun);
     454                ddf_fun_destroy(fun);
    450455                return rc;
    451456        }
     
    477482        nic_driver_implement(&ne2k_driver_ops, &ne2k_dev_ops, &ne2k_nic_iface);
    478483
    479         ddf_log_init(NAME);
    480484        return ddf_driver_main(&ne2k_driver);
    481485}
Note: See TracChangeset for help on using the changeset viewer.