Ignore:
Timestamp:
May 18, 2015, 6:45:58 PM (9 years ago)
Author:
alain
Message:

1) Introduce a new driver "sdc_driver" for SD Card uding directly the 4 bits SD bus.
2) Improve the debug for all IOC drivers (debug activated only if _get_time() > GIET_DEBUG_IOC_DRIVER).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/bdv_driver.c

    r545 r563  
    7474
    7575#if GIET_DEBUG_IOC_DRIVER
     76if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
    7677_printf("\n[BDV DEBUG] P[%d,%d,%d] enters _bdv_access at cycle %d\n"
    7778        "  use_irq = %d / to_mem = %d / lba = %x / paddr = %l / count = %d\n",
     
    114115
    115116#if GIET_DEBUG_IOC_DRIVER
     117if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
    116118_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer"
    117119        " in polling mode at cycle %d\n",
     
    124126
    125127#if GIET_DEBUG_IOC_DRIVER
     128if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
    126129_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] wait on BDV_STATUS ...\n",
    127130        x , y , p );
     
    148151    {
    149152        unsigned int save_sr;
    150         unsigned int wti_index;
    151153        unsigned int ltid = _get_current_task_id();
    152154
    153155        // activates BDV interrupt
    154156        _bdv_set_register( BLOCK_DEVICE_IRQ_ENABLE, 1 );
    155 
    156         // allocate a WTI mailbox to the calling proc if external IRQ
    157         if ( USE_PIC ) _ext_irq_alloc( ISR_BDV , 0 , &wti_index );
    158157
    159158        // set _bdv_gtid
     
    171170
    172171#if GIET_DEBUG_IOC_DRIVER
     172if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
    173173_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer"
    174174        " in descheduling mode at cycle %d\n",
     
    180180
    181181#if GIET_DEBUG_IOC_DRIVER
     182if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
    182183_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] resume execution at cycle %d\n",
    183184        x , y , p , _get_proctime() );
    184185#endif
    185 
    186         // release WTI mailbox if external IRQ
    187         if ( USE_PIC ) _ext_irq_release( ISR_BDV , 0 , wti_index );
    188186
    189187        // restore SR
     
    199197
    200198#if GIET_DEBUG_IOC_DRIVER
     199if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
    201200_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] exit at cycle %d\n",
    202201        x , y , p , _get_proctime() );
     
    260259unsigned int y       = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1);
    261260unsigned int p       = procid & ((1<<P_WIDTH)-1);
    262 _printf("\n[IOC DEBUG] Processor[%d,%d,%d] enters _bdv_isr() at cycle %d\n"
     261if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     262_printf("\n[BDV DEBUG] Processor[%d,%d,%d] enters _bdv_isr() at cycle %d\n"
    263263        "  for task %d running on P[%d,%d,%d] / bdv_status = %x\n",
    264264        x , y , p , _get_proctime() ,
Note: See TracChangeset for help on using the changeset viewer.