Kyösti Mälkki | 919923d | 2014-01-28 10:02:53 +0200 | [diff] [blame] | 1 | #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 Roth | 9634547 | 2017-06-24 14:13:53 -0600 | [diff] [blame] | 9 | #if IS_ENABLED(CONFIG_USE_OPTION_TABLE) |
Kyösti Mälkki | 919923d | 2014-01-28 10:02:53 +0200 | [diff] [blame] | 10 | #include <pc80/mc146818rtc.h> |
| 11 | #else |
| 12 | #include <types.h> |
| 13 | static 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_ */ |