From d29e5bb9335a7d185480a8a780b619d3a3151f11 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Mon, 6 Jun 2011 15:58:54 +0200 Subject: CMOS: add set_option() Change-Id: I584189d9fcf7c9b831d9c020ee7ed59bb5ae08e8 Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/23 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/include/pc80/mc146818rtc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/pc80/mc146818rtc.h') diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index 7be552d157..d6dcf01b77 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -109,9 +109,11 @@ static inline void cmos_write(unsigned char val, unsigned char addr) #if !defined(__ROMCC__) void rtc_init(int invalid); #if CONFIG_USE_OPTION_TABLE +int set_option(const char *name, void *val); int get_option(void *dest, const char *name); unsigned read_option_lowlevel(unsigned start, unsigned size, unsigned def); #else +static inline int set_option(const char *name __attribute__((unused)), void *val __attribute__((unused))) { return -2; }; static inline int get_option(void *dest __attribute__((unused)), const char *name __attribute__((unused))) { return -2; } static inline unsigned read_option_lowlevel(unsigned start, unsigned size, unsigned def) -- cgit v1.2.3