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

    r313 r320  
    88// This driver supports the SocLib vci_iopic component.
    99//
    10 // The seg_pic_base address must be defined in giet_vsegs.ld file.
     10// The SEG_PIC_BASE address must be defined in hard_config.h file.
    1111///////////////////////////////////////////////////////////////////////////////////
    1212// Implementation note:
     
    2020#include <utils.h>
    2121
     22#if !defined(SEG_PIC_BASE)
     23# error: You must define SEG_PIC_BASE in the hard_config.h file
     24#endif
     25
    2226/////////////////////////////////////////////////////////////////////////////////
    2327// This low level function returns the value of register (channel / index)
     
    2630                                unsigned int index )
    2731{
    28     unsigned int* vaddr = (unsigned int*)&seg_pic_base + channel*IOPIC_SPAN + index;
     32    unsigned int* vaddr = (unsigned int*)SEG_PIC_BASE + channel*IOPIC_SPAN + index;
    2933    return _io_extended_read( vaddr );
    3034}
     
    3741                        unsigned int value )
    3842{
    39     unsigned int* vaddr = (unsigned int*)&seg_pic_base + channel*IOPIC_SPAN + index;
     43    unsigned int* vaddr = (unsigned int*)SEG_PIC_BASE + channel*IOPIC_SPAN + index;
    4044    _io_extended_write( vaddr, value );
    4145}
Note: See TracChangeset for help on using the changeset viewer.