1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef EC_GOOGLE_COMMON_MEC_H
4 #define EC_GOOGLE_COMMON_MEC_H
9 /* Indicate read or write from MEC IO region */
16 * mec_io_bytes - Read / write bytes to MEC EMI port
18 * @type: Indicate read or write operation
19 * @base: Base address for MEC EMI region
20 * @offset: Base read / write address
21 * @buffer: Destination / source buffer
22 * @size: Number of bytes to read / write
24 * @returns 8-bit checksum of all bytes read or written
27 uint8_t mec_io_bytes(enum mec_io_type type
, uint16_t base
,
28 uint16_t offset
, void *buffer
, size_t size
);
30 #endif /* EC_GOOGLE_COMMON_MEC_H */