2 * Chromium OS Matrix Keyboard Message Protocol definitions
4 * Copyright (c) 2012 The Chromium OS Authors.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef _CROS_MESSAGE_H
10 #define _CROS_MESSAGE_H
13 * Command interface between EC and AP, for LPC, I2C and SPI interfaces.
15 * This is copied from the Chromium OS Open Source Embedded Controller code.
18 /* The header byte, which follows the preamble */
22 MSG_TRAILER_BYTES = 2,
23 MSG_PROTO_BYTES = MSG_HEADER_BYTES + MSG_TRAILER_BYTES,
25 /* Max length of messages */
26 MSG_BYTES = EC_HOST_PARAM_SIZE + MSG_PROTO_BYTES,