coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_message.h
Go to the documentation of this file.
1
/*
2
* Chromium OS Matrix Keyboard Message Protocol definitions
3
*/
4
/* SPDX-License-Identifier: GPL-2.0-or-later */
5
6
#ifndef _CROS_MESSAGE_H
7
#define _CROS_MESSAGE_H
8
9
/*
10
* Command interface between EC and AP, for LPC, I2C and SPI interfaces.
11
*
12
* This is copied from the Chromium OS Open Source Embedded Controller code.
13
*/
14
enum
{
15
/* The header byte, which follows the preamble */
16
MSG_HEADER
= 0xec,
17
18
MSG_HEADER_BYTES
= 3,
19
MSG_TRAILER_BYTES
= 2,
20
MSG_PROTO_BYTES
=
MSG_HEADER_BYTES
+
MSG_TRAILER_BYTES
,
21
22
/* Max length of messages */
23
MSG_BYTES
=
EC_HOST_PARAM_SIZE
+
MSG_PROTO_BYTES
,
24
};
25
26
#endif
/* _CROS_MESSAGE_H */
EC_HOST_PARAM_SIZE
#define EC_HOST_PARAM_SIZE
Definition:
ec_commands.h:7554
MSG_HEADER
@ MSG_HEADER
Definition:
ec_message.h:16
MSG_BYTES
@ MSG_BYTES
Definition:
ec_message.h:23
MSG_PROTO_BYTES
@ MSG_PROTO_BYTES
Definition:
ec_message.h:20
MSG_TRAILER_BYTES
@ MSG_TRAILER_BYTES
Definition:
ec_message.h:19
MSG_HEADER_BYTES
@ MSG_HEADER_BYTES
Definition:
ec_message.h:18
src
ec
google
chromeec
ec_message.h
Generated by
1.9.1