cbf9571588
Long-term plan is to support loading runtime configuration from SPI flash as an alternative, so move these prototypes outside pc80/. Change-Id: Iad7b03dc985550da903d56b3deb5bd736013f8f1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38192 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
38 lines
1 KiB
C
38 lines
1 KiB
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _OPTION_H_
|
|
#define _OPTION_H_
|
|
|
|
#include <types.h>
|
|
|
|
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_ */
|