Ignore:
Timestamp:
Jun 10, 2014, 12:33:23 PM (10 years ago)
Author:
alain
Message:

All drivers have been modified to use only the information
contained in the hard_config.h file

File:
1 edited

Legend:

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

    r298 r320  
    1212// to display images, or with the SocLib vci_multi_nic controller to tranfer
    1313// both RX and TX packets between NIC and memory buffers.
    14 ///////////////////////////////////////////////////////////////////////////////////
     14//
     15// The SEG_DMA_BASE address must be defined in the hard_config.h file
     16////////////////////////////////////////////////////////////////////////////////////
    1517// Implementation notes:
    1618// 1. The higher level access functions can be found in the fbf_driver and
     
    2224
    2325#include <cma_driver.h>
    24 #include <utils.h>                  // for seg_cma_base
    25 #include <hard_config.h>            // for X_IO / Y_IO
     26#include <hard_config.h>         
     27#include <utils.h>
     28
     29#if !defined(SEG_CMA_BASE)
     30# error: You must define SEG_CMA_BASE in the hard_config.h file
     31#endif
    2632
    2733///////////////////////////////////////////////////////////////////////////////
     
    3137                                unsigned int index )
    3238{
    33     unsigned int* vaddr = (unsigned int*)&seg_cma_base +
     39    unsigned int* vaddr = (unsigned int*)SEG_CMA_BASE +
    3440                           CHBUF_CHANNEL_SPAN*channel + index;
    3541    return _io_extended_read( vaddr );
     
    4349                        unsigned int value )
    4450{
    45     unsigned int* vaddr = (unsigned int*)&seg_cma_base +
     51    unsigned int* vaddr = (unsigned int*)SEG_CMA_BASE +
    4652                           CHBUF_CHANNEL_SPAN*channel + index;
    4753    _io_extended_write( vaddr, value );
     
    5561               unsigned int channel )
    5662{
    57     _printf("\n[GIET ERROR] _cma_isr() nor implemented\n");
     63    _printf("\n[GIET ERROR] _cma_isr() not implemented\n");
    5864    _exit();
    5965}
Note: See TracChangeset for help on using the changeset viewer.