This function allows reading the nvram configuration table from
locations other than the cbtable.
Change-Id: I56c9973a9ea45ad7bf0185b70d11c9ce5d0e0e1b
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/213
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
-int get_option(void *dest, char *name)
+int get_option_from(struct cb_cmos_option_table *option_table, void *dest, char *name)
- struct cb_cmos_option_table *option_table = phys_to_virt(lib_sysinfo.option_table);
struct cb_cmos_entries *cmos_entry;
int len = strnlen(name, CMOS_MAX_NAME_LENGTH);
struct cb_cmos_entries *cmos_entry;
int len = strnlen(name, CMOS_MAX_NAME_LENGTH);
printf("ERROR: No such CMOS option (%s)\n", name);
return 1;
}
printf("ERROR: No such CMOS option (%s)\n", name);
return 1;
}
+
+int get_option(void *dest, char *name)
+{
+ struct cb_cmos_option_table *option_table = phys_to_virt(lib_sysinfo.option_table);
+ return get_option_from(option_table, dest, name);
+}
/* drivers/option.c */
void fix_options_checksum(void);
/* drivers/option.c */
void fix_options_checksum(void);
+int get_option_from(struct cb_cmos_option_table *option_table, void *dest, char *name);
int get_option(void *dest, char *name);
/**
int get_option(void *dest, char *name);
/**