Done with sed and God Lines. Only done for C-like code for now. Change-Id: I2fa3bad88bb5b068baa1cfc6bbcddaabb09da1c5 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40053 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
31 lines
670 B
C
31 lines
670 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#ifndef _OPTION_H_
|
|
#define _OPTION_H_
|
|
|
|
#include <types.h>
|
|
|
|
void sanitize_cmos(void);
|
|
|
|
enum cb_err cmos_set_option(const char *name, void *val);
|
|
enum cb_err cmos_get_option(void *dest, const char *name);
|
|
|
|
static inline enum cb_err set_option(const char *name, void *val)
|
|
{
|
|
if (CONFIG(USE_OPTION_TABLE))
|
|
return cmos_set_option(name, val);
|
|
|
|
return CB_CMOS_OTABLE_DISABLED;
|
|
}
|
|
|
|
static inline enum cb_err get_option(void *dest, const char *name)
|
|
{
|
|
if (CONFIG(USE_OPTION_TABLE))
|
|
return cmos_get_option(dest, name);
|
|
|
|
return CB_CMOS_OTABLE_DISABLED;
|
|
}
|
|
|
|
#endif /* _OPTION_H_ */
|