Ignore:
Timestamp:
Dec 5, 2014, 3:38:31 PM (10 years ago)
Author:
alain
Message:

Defining the NIC and CMA drivers (validated by the classif application).
Updating other drivers to comply with the new tty0 common file.

File:
1 edited

Legend:

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

    r448 r456  
    99#include <hard_config.h>         
    1010#include <utils.h>
     11#include <tty0.h>
    1112
    1213#if !defined(SEG_CMA_BASE)
     
    6667    unsigned int status = _cma_get_register( channel, CHBUF_STATUS );
    6768
     69    _puts("\n[CMA WARNING] IRQ received for CMA channel ");
     70    _putd( channel );
     71    _puts(" blocked at cycle ");
     72    _putd( _get_proctime() );
     73    _puts("\nreset the CMA channel : ");
     74
    6875    if (status == CHANNEL_SRC_DESC_ERROR )
    69         _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : "
    70                 "impossible access to source chbuf descriptor\n",
    71                 channel, _get_proctime() );
     76        _puts("impossible access to source chbuf descriptor\n");
    7277
    7378    else if (status == CHANNEL_SRC_DATA_ERROR )
    74         _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : "
    75                 "impossible access to source data buffer\n",
    76                 channel, _get_proctime() );
     79        _puts("impossible access to source data buffer\n");
    7780
    7881    else if (status == CHANNEL_DST_DESC_ERROR )
    79         _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : "
    80                 "impossible access to destination chbuf descriptor\n",
    81                 channel, _get_proctime() );
     82        _puts("impossible access to destination chbuf descriptor\n");
    8283
    8384    else if (status == CHANNEL_DST_DATA_ERROR )
    84         _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : "
    85                 "impossible access to destination data buffer\n",
    86                 channel, _get_proctime() );
     85        _puts("impossible access to destination data buffer\n");
    8786
    8887    else
    89         _printf("\n[CMA WARNING] CMA channel %d : "
    90                 "... strange IRQ received, but channel not blocked...",
    91                 channel, _get_proctime() );
     88        _puts("strange, because channel is not blocked...");
    9289   
    93     // acknowledge IRQ
     90    // acknowledge IRQ and desactivates channel
    9491    _cma_set_register( channel, CHBUF_RUN, 0 );
    9592}
Note: See TracChangeset for help on using the changeset viewer.