Changeset 259 for trunk/kernel
- Timestamp:
- Jul 20, 2017, 3:06:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_nic.c
r238 r259 27 27 #include <chdev.h> 28 28 #include <thread.h> 29 #include < soclib_nic.h>29 #include <hal_drivers.h> 30 30 #include <dev_nic.h> 31 31 … … 54 54 else snprintf( nic->name , 16 , "nic_tx_%d" , channel ); 55 55 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 ); 67 58 68 59 // select a core to execute the NIC server thread
Note: See TracChangeset
for help on using the changeset viewer.