summaryrefslogtreecommitdiff
path: root/include/eoption.h
blob: da75f34346401719165193b24b6b47bfeb596101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* 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 */