drivers/uart: Replace 'unsigned long int' by 'unsigned long'
[coreboot2.git] / src / ec / google / chromeec / ec_message.h
blob4423bd87e2883048c210bed7be68cb7d9fad9b1e
1 /*
2 * ChromiumOS Matrix Keyboard Message Protocol definitions
3 */
4 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 #ifndef _CROS_MESSAGE_H
7 #define _CROS_MESSAGE_H
9 /*
10 * Command interface between EC and AP, for LPC, I2C and SPI interfaces.
12 * This is copied from the ChromiumOS Open Source Embedded Controller code.
14 enum {
15 /* The header byte, which follows the preamble */
16 MSG_HEADER = 0xec,
18 MSG_HEADER_BYTES = 3,
19 MSG_TRAILER_BYTES = 2,
20 MSG_PROTO_BYTES = MSG_HEADER_BYTES + MSG_TRAILER_BYTES,
22 /* Max length of messages */
23 MSG_BYTES = EC_HOST_PARAM_SIZE + MSG_PROTO_BYTES,
26 #endif /* _CROS_MESSAGE_H */