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

    r295 r320  
    2424// One NIC channel and two CMA channels must be allocated to the task
    2525// in the mapping_info data structure.
     26//
     27// The SEG_NIC_BASE address must be defined in the hard_config.h file.
    2628//////////////////////////////////////////////////////////////////////////////////
    2729
     
    3234#if !defined(GIET_USE_IOMMU)
    3335# error: You must define GIET_USE_IOMMU in the giet_config.h file
     36#endif
     37
     38#if !defined(SEG_NIC_BASE)
     39# error: You must define SEG_NIC_BASE in the hard_config.h file
    3440#endif
    3541
     
    6268                                unsigned int index )
    6369{
    64     unsigned int* vaddr = (unsigned int*)&seg_nic_base +
    65                            NIC_CHANNEL_SPAN*channel + index;
     70    unsigned int* vaddr = (unsigned int*)SEG_NIC_BASE +
     71                           NIC_CHANNEL_SPAN * channel + index;
    6672    return _io_extended_read( vaddr );
    6773}
     
    7480                        unsigned int value )
    7581{
    76     unsigned int* vaddr = (unsigned int*)&seg_nic_base +
    77                            NIC_CHANNEL_SPAN*channel + index;
     82    unsigned int* vaddr = (unsigned int*)SEG_NIC_BASE +
     83                           NIC_CHANNEL_SPAN * channel + index;
    7884    _io_extended_write( vaddr, value );
    7985}
Note: See TracChangeset for help on using the changeset viewer.