Changeset 568


Ignore:
Timestamp:
May 18, 2015, 7:05:06 PM (9 years ago)
Author:
alain
Message:

Introducing support for the IOC_SDC controller.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/kernel_init.c

    r547 r568  
    2020#include <nic_driver.h>
    2121#include <hba_driver.h>
     22#include <sdc_driver.h>
     23#include <bdv_driver.h>
    2224#include <mmc_driver.h>
    2325#include <ctx_handler.h>
     
    189191#endif
    190192
    191         //////  HBA peripheral initialisation
     193        //////  IOC peripheral initialisation
    192194        if ( USE_IOC_HBA )
    193195        {
    194196            _hba_init();
    195 
    196             // routing HBA IRQ to proc[0,0,0]
    197197            _ext_irq_alloc( ISR_HBA , 0 , &unused );
     198
     199#if GIET_DEBUG_INIT
     200_nolock_printf("\n[DEBUG KINIT] P[%d,%d,%d] completes HBA init\n", x , y , p );
     201#endif
    198202        }
    199 
    200 #if GIET_DEBUG_INIT
    201 _nolock_printf("\n[DEBUG KINIT] P[%d,%d,%d] completes HBA init\n", x , y , p );
    202 #endif
     203        if ( USE_IOC_SDC )
     204        {
     205            _sdc_init();
     206            _ext_irq_alloc( ISR_SDC , 0 , &unused );
     207
     208#if GIET_DEBUG_INIT
     209_nolock_printf("\n[DEBUG KINIT] P[%d,%d,%d] completes SDC init\n", x , y , p );
     210#endif
     211        }
     212        if ( USE_IOC_BDV )
     213        {
     214            _bdv_init();
     215            _ext_irq_alloc( ISR_BDV , 0 , &unused );
     216
     217#if GIET_DEBUG_INIT
     218_nolock_printf("\n[DEBUG KINIT] P[%d,%d,%d] completes BDV init\n", x , y , p );
     219#endif
     220        }
    203221
    204222        //////  release other processors
Note: See TracChangeset for help on using the changeset viewer.