blob: f6ede965d87cd9d96d410e7d1930b6e1d1049521 [file] [log] [blame]
Kyösti Mälkki919923d2014-01-28 10:02:53 +02001#ifndef _OPTION_H_
2#define _OPTION_H_
3
4/*
5 * FIXME: get_option() needs to be abstracted better so that other non-volatile
6 * storage can be used. This will benefit machines without CMOS as well as those
7 * without a battery-backed CMOS (e.g. some laptops).
8 */
Martin Roth96345472017-06-24 14:13:53 -06009#if IS_ENABLED(CONFIG_USE_OPTION_TABLE)
Kyösti Mälkki919923d2014-01-28 10:02:53 +020010#include <pc80/mc146818rtc.h>
11#else
12#include <types.h>
13static inline enum cb_err get_option(void *dest, const char *name)
14{
15 return CB_CMOS_OTABLE_DISABLED;
16}
17#endif
18
19#endif /* _OPTION_H_ */