blob: 83f3a8461446bf3957565620d5b0ec5a6b070ca4 [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 */
9#if CONFIG_USE_OPTION_TABLE
10#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_ */