xref: /aosp_15_r20/external/coreboot/src/include/option.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _OPTION_H_
4 #define _OPTION_H_
5 
6 #include <types.h>
7 
8 void sanitize_cmos(void);
9 
10 #if CONFIG(OPTION_BACKEND_NONE)
11 
get_uint_option(const char * name,const unsigned int fallback)12 static inline unsigned int get_uint_option(const char *name, const unsigned int fallback)
13 {
14 	return fallback;
15 }
16 
set_uint_option(const char * name,unsigned int value)17 static inline enum cb_err set_uint_option(const char *name, unsigned int value)
18 {
19 	return CB_CMOS_OTABLE_DISABLED;
20 }
21 
22 #else /* !OPTION_BACKEND_NONE */
23 
24 unsigned int get_uint_option(const char *name, const unsigned int fallback);
25 enum cb_err set_uint_option(const char *name, unsigned int value);
26 
27 #endif /* OPTION_BACKEND_NONE? */
28 
29 #endif /* _OPTION_H_ */
30