Files
OpenCellular/include/getset.h
Bill Richardson 3f2eba22c5 Add a generic get/set host command
This adds EC_CMD_GET_SET_VALUE to the list of host commands. We have a bunch
of single-value getter/setter commands, which is wasteful. This is a start
towards unifying them into a simpler command.

BUG=chromium:285358
BRANCH=ToT,falco
TEST=none

There's nothing to test just yet. This just adds the command and some basic
interfaces. A future commit will make use of it.

Change-Id: Iee986b9d273b422bb06f3a0c9b7af50617f03d7f
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/168083
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-09-05 03:10:54 +00:00

27 lines
619 B
C

/* Copyright (c) 2013 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.
*/
/* List of valid params for the generic get/set value operation */
#ifndef __CROS_EC_GETSET_H
#define __CROS_EC_GETSET_H
#include <stdint.h>
#include "ec_commands.h"
/* Define the params. */
#define GSV_ITEM(n, v) GSV_PARAM_##n,
#include "getset_value_list.h"
enum gsv_param_id {
GSV_LIST
NUM_GSV_PARAMS
};
#undef GSV_ITEM
/* Declare the storage where the values will be kept. */
extern uint32_t gsv[];
#endif /* __CROS_EC_GETSET_H */