| 1 |
|
| 2 |
|
| 3 |
#ifndef _OPTION_H_ |
| 4 |
#define _OPTION_H_ |
| 5 |
|
| 6 |
#include <types.h> |
| 7 |
|
| 8 |
void sanitize_cmos(void); |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#if CONFIG(OPTION_BACKEND_NONE) || (CONFIG(USE_CBFS_FILE_OPTION_BACKEND) && ENV_SMM) |
| 13 |
|
| 14 |
static inline unsigned int get_uint_option(const char *name, const unsigned int fallback) |
| 15 |
{ |
| 16 |
return fallback; |
| 17 |
} |
| 18 |
|
| 19 |
static inline enum cb_err set_uint_option(const char *name, unsigned int value) |
| 20 |
{ |
| 21 |
return CB_CMOS_OTABLE_DISABLED; |
| 22 |
} |
| 23 |
|
| 24 |
#else |
| 25 |
|
| 26 |
unsigned int get_uint_option(const char *name, const unsigned int fallback); |
| 27 |
enum cb_err set_uint_option(const char *name, unsigned int value); |
| 28 |
|
| 29 |
#endif |
| 30 |
|
| 31 |
#endif |