blob: 3a00570064fd53cd273506f33c2348303917a0c6 [file] [log] [blame]
Angel Pons32859fc2020-04-02 23:48:27 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkicbf95712020-01-05 08:05:45 +02002
Kyösti Mälkki919923d2014-01-28 10:02:53 +02003#ifndef _OPTION_H_
4#define _OPTION_H_
5
Kyösti Mälkki919923d2014-01-28 10:02:53 +02006#include <types.h>
Kyösti Mälkkicbf95712020-01-05 08:05:45 +02007
Kyösti Mälkkib2680a12020-01-04 18:04:39 +02008void sanitize_cmos(void);
9
Angel Pons17852e62021-05-20 15:30:59 +020010#if CONFIG(OPTION_BACKEND_NONE)
Angel Pons8d94b362020-11-02 20:35:05 +010011
Angel Ponsb2a4c272021-05-20 11:28:07 +020012static inline unsigned int get_uint_option(const char *name, const unsigned int fallback)
Angel Pons8d94b362020-11-02 20:35:05 +010013{
Angel Ponsfc44f6e2021-04-21 12:09:42 +020014 return fallback;
Angel Pons8d94b362020-11-02 20:35:05 +010015}
16
Angel Pons07056fe2021-05-20 11:35:15 +020017static inline enum cb_err set_uint_option(const char *name, unsigned int value)
18{
19 return CB_CMOS_OTABLE_DISABLED;
20}
21
Angel Pons17852e62021-05-20 15:30:59 +020022#else /* !OPTION_BACKEND_NONE */
Angel Pons07056fe2021-05-20 11:35:15 +020023
24unsigned int get_uint_option(const char *name, const unsigned int fallback);
25enum cb_err set_uint_option(const char *name, unsigned int value);
26
Angel Pons17852e62021-05-20 15:30:59 +020027#endif /* OPTION_BACKEND_NONE? */
Angel Pons07056fe2021-05-20 11:35:15 +020028
Kyösti Mälkki919923d2014-01-28 10:02:53 +020029#endif /* _OPTION_H_ */