Changeset 216 for trunk/hal/tsar_mips32


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/hal/tsar_mips32/core/hal_drivers.c

    r213 r216  
    7070/* -------------------------------------------------------------------------- */
    7171
    72 void hal_drivers_ioc_init(chdev_t *dev)
     72void hal_drivers_ioc_init(chdev_t *dev, uint32_t impl)
    7373{
    74         soclib_bdv_init(dev);
     74        if (impl == IMPL_IOC_BDV) {
     75                soclib_bdv_init(dev);
     76        } else if (impl == IMPL_IOC_HBA) {
     77                soclib_hba_init(dev);
     78        } else {
     79                assert( false , __FUNCTION__ , "undefined IOC device implementation" );
     80        }
    7581}
    7682
Note: See TracChangeset for help on using the changeset viewer.