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

    r295 r320  
    99// block oriented, external storage contrÃŽler, respecting the AHCI standard.
    1010//
    11 // The seg_ioc_base (standard HBA virtual base address) and seg_ioc_base_bis
    12 // (backup HBA virtual base address) must be defined in giet_vsegs.ld file.
     11// The SEG_IOC_BASE virtual address must be defined in the hard_config.h file.
    1312//////////////////////////////////////////////////////////////////////////////////
    1413// Implementation notes:
     
    6766                                unsigned int index )
    6867{
    69     unsigned int* vaddr = (unsigned int*)&seg_ioc_base + channel*HBA_SPAN + index;
     68    unsigned int* vaddr = (unsigned int*)SEG_IOC_BASE + channel*HBA_SPAN + index;
    7069    return _io_extended_read( vaddr );
    7170}
     
    7877                        unsigned int value )
    7978{
    80     unsigned int* vaddr = (unsigned int*)&seg_ioc_base + channel*HBA_SPAN + index;
     79    unsigned int* vaddr = (unsigned int*)SEG_IOC_BASE + channel*HBA_SPAN + index;
    8180    _io_extended_write( vaddr, value );
    8281}
Note: See TracChangeset for help on using the changeset viewer.