Ignore:
Timestamp:
Jul 17, 2017, 1:50:38 PM (7 years ago)
Author:
max@…
Message:

dispatch 'impl' in the hal

File:
1 edited

Legend:

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

    r213 r216  
    2626#include <hal_gpt.h>
    2727#include <hal_drivers.h>
    28 #include <soclib_hba.h>
    2928#include <thread.h>
    3029#include <printk.h>
     
    5554
    5655    // call driver init function
    57     if( impl == IMPL_IOC_BDV )
    58     {
    59         hal_drivers_ioc_init( ioc );
    60     }
    61     else if( impl == IMPL_IOC_HBA )
    62     {
    63         soclib_hba_init( ioc );
    64     }
    65     else
    66     {
    67         assert( false , __FUNCTION__ , "undefined IOC device implementation" );
    68     }
     56    hal_drivers_ioc_init( ioc, impl );
    6957
    7058    // select a core to execute the IOC server thread
Note: See TracChangeset for help on using the changeset viewer.