/**************************************************************************//**
 *
 *
 *
 *****************************************************************************/
#include <powerpc_quanta_ly2/powerpc_quanta_ly2_config.h>

/* <auto.start.cdefs(POWERPC_QUANTA_LY2_R0_CONFIG_HEADER).source> */
#define __powerpc_quanta_ly2_config_STRINGIFY_NAME(_x) #_x
#define __powerpc_quanta_ly2_config_STRINGIFY_VALUE(_x) __powerpc_quanta_ly2_config_STRINGIFY_NAME(_x)
powerpc_quanta_ly2_config_settings_t powerpc_quanta_ly2_config_settings[] =
{
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_LOGGING
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_LOGGING), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_LOGGING) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_LOGGING(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_LOG_OPTIONS_DEFAULT
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_LOG_OPTIONS_DEFAULT), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_LOG_OPTIONS_DEFAULT) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_LOG_OPTIONS_DEFAULT(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_LOG_BITS_DEFAULT
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_LOG_BITS_DEFAULT), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_LOG_BITS_DEFAULT) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_LOG_BITS_DEFAULT(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_LOG_CUSTOM_BITS_DEFAULT
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_LOG_CUSTOM_BITS_DEFAULT) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_STDLIB
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_STDLIB), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_STDLIB) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_STDLIB(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_UCLI
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_UCLI), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_UCLI) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_INCLUDE_UCLI(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_RPM_FAILURE_THRESHOLD
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_RPM_FAILURE_THRESHOLD), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_RPM_FAILURE_THRESHOLD) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_RPM_FAILURE_THRESHOLD(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_F2B_RPM_MAX
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_F2B_RPM_MAX), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_F2B_RPM_MAX) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_F2B_RPM_MAX(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_B2F_RPM_MAX
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_B2F_RPM_MAX), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_B2F_RPM_MAX) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_SYSFAN_B2F_RPM_MAX(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef POWERPC_QUANTA_LY2_R0_CONFIG_PHY_RESET_DELAY_MS
    { __powerpc_quanta_ly2_config_STRINGIFY_NAME(POWERPC_QUANTA_LY2_R0_CONFIG_PHY_RESET_DELAY_MS), __powerpc_quanta_ly2_config_STRINGIFY_VALUE(POWERPC_QUANTA_LY2_R0_CONFIG_PHY_RESET_DELAY_MS) },
#else
{ POWERPC_QUANTA_LY2_R0_CONFIG_PHY_RESET_DELAY_MS(__powerpc_quanta_ly2_config_STRINGIFY_NAME), "__undefined__" },
#endif
    { NULL, NULL }
};
#undef __powerpc_quanta_ly2_config_STRINGIFY_VALUE
#undef __powerpc_quanta_ly2_config_STRINGIFY_NAME

const char*
powerpc_quanta_ly2_config_lookup(const char* setting)
{
    int i;
    for(i = 0; powerpc_quanta_ly2_config_settings[i].name; i++) {
        if(!strcmp(powerpc_quanta_ly2_config_settings[i].name, setting)) {
            return powerpc_quanta_ly2_config_settings[i].value;
        }
    }
    return NULL;
}

int
powerpc_quanta_ly2_config_show(struct aim_pvs_s* pvs)
{
    int i;
    for(i = 0; powerpc_quanta_ly2_config_settings[i].name; i++) {
        aim_printf(pvs, "%s = %s\n", powerpc_quanta_ly2_config_settings[i].name, powerpc_quanta_ly2_config_settings[i].value);
    }
    return i;
}

/* <auto.end.cdefs(POWERPC_QUANTA_LY2_R0_CONFIG_HEADER).source> */

