blob: 40893788f376a5c3d31672f44d975ac3a41c2009 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _OPTION_H_
#define _OPTION_H_
#include <types.h>
void sanitize_cmos(void);
#if !CONFIG(USE_OPTION_TABLE)
static inline unsigned int get_uint_option(const char *name, const unsigned int fallback)
{
return fallback;
}
static inline enum cb_err set_uint_option(const char *name, unsigned int value)
{
return CB_CMOS_OTABLE_DISABLED;
}
#else /* USE_OPTION_TABLE */
unsigned int get_uint_option(const char *name, const unsigned int fallback);
enum cb_err set_uint_option(const char *name, unsigned int value);
#endif /* USE_OPTION_TABLE? */
#endif /* _OPTION_H_ */