Changeset 647 for trunk/kernel/devices/dev_nic.c
- Timestamp:
- Oct 22, 2019, 1:48:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_nic.c
r637 r647 39 39 void dev_nic_init( chdev_t * nic ) 40 40 { 41 // the PIC chdev must be initialized before the NIC chdev, because 42 // the NIC chdev initialisation requires the routing of an external IRQ. 43 xptr_t pic_xp = chdev_dir.pic; 44 45 assert( (pic_xp != XPTR_NULL) , "ICU not initialised before NIC" ); 46 47 // get "impl" , "channel" , "is_rx" fields from chdev descriptor 48 uint32_t impl = nic->impl; 41 // get "channel" & "is_rx" fields from chdev descriptor 49 42 uint32_t channel = nic->channel; 50 43 bool_t is_rx = nic->is_rx; … … 55 48 56 49 // call driver init function 57 hal_drivers_nic_init( nic , impl);50 hal_drivers_nic_init( nic ); 58 51 59 52 // select a core to execute the NIC server thread
Note: See TracChangeset
for help on using the changeset viewer.