Changeset 259 for trunk/kernel/devices


Ignore:
Timestamp:
Jul 20, 2017, 3:06:35 PM (7 years ago)
Author:
max@…
Message:

Hide soclib_nic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_nic.c

    r238 r259  
    2727#include <chdev.h>
    2828#include <thread.h>
    29 #include <soclib_nic.h>
     29#include <hal_drivers.h>
    3030#include <dev_nic.h>
    3131
     
    5454    else        snprintf( nic->name , 16 , "nic_tx_%d" , channel );
    5555
    56     // set driver specific fields in chdev descriptor and call driver init function
    57     if( impl == IMPL_NIC_SOC )
    58     {
    59         nic->cmd = &soclib_nic_cmd;
    60         nic->isr = &soclib_nic_isr;
    61         soclib_nic_init( nic );
    62     }
    63     else
    64     {
    65         assert( false , __FUNCTION__ , "undefined NIC device implementation" );
    66     }
     56    // call driver init function
     57    hal_drivers_nic_init( nic , impl );
    6758
    6859    // select a core to execute the NIC server thread
Note: See TracChangeset for help on using the changeset viewer.