+int get_option_from(struct cb_cmos_option_table *option_table, void *dest, char *name)
+{
+ return get_option_with(use_nvram, option_table, dest, name);
+}
+
+int get_option(void *dest, char *name)
+{
+ return get_option_from(get_system_option_table(), dest, name);
+}
+
+int set_option_with(const struct nvram_accessor *nvram, struct cb_cmos_option_table *option_table, void *value, char *name)
+{
+ struct cb_cmos_entries *cmos_entry = lookup_cmos_entry(option_table, name);
+ if (cmos_entry) {
+ set_cmos_value(nvram, cmos_entry->bit, cmos_entry->length, value);
+ fix_options_checksum_with(nvram);
+ return 0;
+ }