mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:8884 TEST=manual optget fake_dev_switch --> 0 optset fake_dev_switch 1 optget fake_dev_switch --> 1 optset fake_dev_switch 0 optget fake_dev_switch --> 0 Reboot by holding ESC+D and tapping power optget fake_dev_switch --> 1 Reboot by holding ESC+F and tapping power optget fake_dev_switch --> 0 Change-Id: Iccb3bc8b3d571e551e204892769efc4161858055
28 lines
714 B
C
28 lines
714 B
C
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Persistent EC options stored in EEPROM */
|
|
|
|
#ifndef __CROS_EC_EOPTION_H
|
|
#define __CROS_EC_EOPTION_H
|
|
|
|
#include "common.h"
|
|
|
|
/* Boolean options */
|
|
enum eoption_bool {
|
|
EOPTION_BOOL_FAKE_DEV = 0, /* Fake developer switch */
|
|
};
|
|
|
|
/* Initialize the module. */
|
|
int eoption_init(void);
|
|
|
|
/* Return the current value of a boolean option. */
|
|
int eoption_get_bool(enum eoption_bool opt);
|
|
|
|
/* Set the value of a boolean option (0 = clear, non-zero=set). */
|
|
int eoption_set_bool(enum eoption_bool opt, int value);
|
|
|
|
#endif /* __CROS_EC_EOPTION_H */
|