Change read_option() to a macro that wraps some API uglyness

Simplify
read_option(CMOS_VSTART_foo, CMOS_VLEN_foo, somedefault)
to
read_option(foo, somedefault)

Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6565 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Patrick Georgi 2011-05-10 21:53:13 +00:00 committed by Patrick Georgi
commit b251753b4f
15 changed files with 24 additions and 23 deletions

View file

@ -92,7 +92,7 @@ static inline int do_normal_boot(void)
return (byte & (1<<1));
}
unsigned read_option(unsigned start, unsigned size, unsigned def)
unsigned read_option_lowlevel(unsigned start, unsigned size, unsigned def)
{
#if CONFIG_USE_OPTION_TABLE
unsigned byte;