Ignore:
Timestamp:
Sep 9, 2014, 3:05:49 PM (10 years ago)
Author:
cfuguet
Message:

tsar_generic_leti, tsar_boot: used USE_IOC_RDK instead of USE_RAMDISK

  • This is the name of the constant generated by the genmap tool into the hard_config.h file.
  • Instantiating the block device in the arch.py file only when the ramdisk is not used (GIET-VM supports only one IO controller)
File:
1 edited

Legend:

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

    r758 r796  
    77 *
    88 * \note   These functions call the specific disk controller driver depending
    9  *         on the USE_IOC_BDV, USE_IOC_SPI or USE_RAMDISK constants
     9 *         on the USE_IOC_BDV, USE_IOC_SPI or USE_IOC_RDK constants
    1010 */
    1111
     
    1313#include <defs.h>
    1414
    15 #if !defined(USE_IOC_BDV) && !defined(USE_IOC_SPI) && !defined(USE_RAMDISK)
     15#if !defined(USE_IOC_BDV) && !defined(USE_IOC_SPI) && !defined(USE_IOC_RDK)
    1616#   error "One of the USE_IOC_* constants must be defined in the hard_config.h"
    1717#endif
    1818
    19 #if (USE_IOC_BDV + USE_IOC_SPI + USE_RAMDISK) != 1
     19#if (USE_IOC_BDV + USE_IOC_SPI + USE_IOC_RDK) != 1
    2020#   error "Only one disk controller must be used"
    2121#endif
     
    2929#endif
    3030
    31 #if USE_RAMDISK
     31#if USE_IOC_RDK
    3232#include <reset_rdk.h>
    3333#endif
     
    4242#elif USE_IOC_SPI
    4343    return reset_sdc_init();
    44 #elif USE_RAMDISK
     44#elif USE_IOC_RDK
    4545    return reset_rdk_init();
    4646#else
     
    6565#elif USE_IOC_SPI
    6666    return reset_sdc_read(lba, buffer, count);
    67 #elif USE_RAMDISK
     67#elif USE_IOC_RDK
    6868    return reset_rdk_read(lba, buffer, count);
    6969#else
Note: See TracChangeset for help on using the changeset viewer.