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/fbf_driver.c

    r297 r320  
    1919// A CMA channel must be allocated to the task requesting it in the mapping_info,
    2020// and stored in the task context.
     21//
     22// The SEG_FBF_BASE virtual address must be defined in hard_config.h file.
    2123///////////////////////////////////////////////////////////////////////////////////
    22 // The seg_fbf_base virtual address must be defined in giet_vsegs.ld file.
    23 ///////////////////////////////////////////////////////////////////////////////////
    2424
    2525#include <giet_config.h>
     26#include <hard_config.h>
    2627#include <fbf_driver.h>
    2728#include <utils.h>
     
    3334#include <vmem.h>
    3435
     36#if !defined(SEG_FBF_BASE)
     37# error: You must define SEG_FBF_BASE in the hard_config.h file
     38#endif
     39
    3540#if !defined(GIET_USE_IOMMU)
    3641# error: You must define GIET_USE_IOMMU in the giet_config.h file
     
    5762                            unsigned int length)
    5863{
    59     char* fbf_address = (char *)&seg_fbf_base + offset;
     64    char* fbf_address = (char *)SEG_FBF_BASE + offset;
    6065
    6166    _memcpy( fbf_address, buffer, length);
     
    7479                            unsigned int   length)
    7580{
    76     char* fbf_address = (char *)&seg_fbf_base + offset;
     81    char* fbf_address = (char *)SEG_FBF_BASE + offset;
    7782
    7883    _memcpy( buffer, fbf_address, length);
     
    176181
    177182    // compute and register frame buffer physical address
    178     vaddr = ((unsigned int)&seg_fbf_base);
     183    vaddr = ((unsigned int)SEG_FBF_BASE);
    179184    ko    = _v2p_translate( (page_table_t*) user_ptab,
    180185                         (vaddr >> 12),
Note: See TracChangeset for help on using the changeset viewer.