Ignore:
Timestamp:
Apr 1, 2015, 3:42:03 PM (9 years ago)
Author:
alain
Message:

Introducing a new IOC driver supporting the VciMultiAhci? disk controller (in polling mode only).
Extending the MMC driver to support the SYNC command requested by the AHCI protocol on the tsar_generic_iob platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/reset_ioc.c

    r796 r962  
    77 *
    88 * \note   These functions call the specific disk controller driver depending
    9  *         on the USE_IOC_BDV, USE_IOC_SPI or USE_IOC_RDK constants
     9 *         on the USE_IOC_BDV, USE_IOC_SDC or USE_IOC_RDK constants
    1010 */
    1111
     
    1313#include <defs.h>
    1414
    15 #if !defined(USE_IOC_BDV) && !defined(USE_IOC_SPI) && !defined(USE_IOC_RDK)
    16 #   error "One of the USE_IOC_* constants must be defined in the hard_config.h"
     15#if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA) != 1
     16#   error "in reset_ioc.c : undefined disk controller in hard_config.h"
    1717#endif
    1818
    19 #if (USE_IOC_BDV + USE_IOC_SPI + USE_IOC_RDK) != 1
    20 #   error "Only one disk controller must be used"
    21 #endif
    22 
    23 #if USE_IOC_SPI
     19#if USE_IOC_SDC
    2420#include <reset_sdc.h>
    2521#endif
     
    3329#endif
    3430
     31#if USE_IOC_HBA
     32#include <reset_hba.h>
     33#endif
     34
     35
    3536/**
    3637 * \brief Initialize the disk controller
     
    4041#if USE_IOC_BDV
    4142    return reset_bdv_init();
    42 #elif USE_IOC_SPI
     43#elif USE_IOC_SDC
    4344    return reset_sdc_init();
    4445#elif USE_IOC_RDK
    4546    return reset_rdk_init();
     47#elif USE_IOC_HBA
     48    return reset_hba_init();
    4649#else
    47 #   error "reset_ioc_init() : Not supported disk controller chosen"
     50#   error "in reset_ioc_init.c : undefined disk controller in hard_config.h"
    4851#endif
    4952}
     
    6366#if USE_IOC_BDV
    6467    return reset_bdv_read(lba, buffer, count);
    65 #elif USE_IOC_SPI
     68#elif USE_IOC_SDC
    6669    return reset_sdc_read(lba, buffer, count);
    6770#elif USE_IOC_RDK
    6871    return reset_rdk_read(lba, buffer, count);
     72#elif USE_IOC_HBA
     73    return reset_hba_read(lba, buffer, count);
    6974#else
    70 #   error "reset_ioc_read() : Not supported disk controller chosen"
     75#   error "in reset_ioc_read.c : undefined disk controller in hard_config.h"
    7176#endif
    7277}
Note: See TracChangeset for help on using the changeset viewer.