Debian Codegraph @

src/include/option.h

raw symbols SCIP
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 /* The CBFS file option backend cannot be used in SMM due to vboot
11 * dependencies, which are not added to SMM */
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 /* !OPTION_BACKEND_NONE */
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 /* OPTION_BACKEND_NONE? */
30
31 #endif /* _OPTION_H_ */