xref: /aosp_15_r20/external/coreboot/src/ec/dasharo/ec/dasharo_ec.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef DASHARO_EC_H
4 #define DASHARO_EC_H
5 
6 #include <stdbool.h>
7 #include <stdint.h>
8 
9 /*
10  * Send a command to the EC.  request_data/request_size are the request payload,
11  * request_data can be NULL if request_size is 0.  reply_data/reply_size are
12  * the reply payload, reply_data can be NULL if reply_size is 0.
13  */
14 bool dasharo_ec_cmd(uint8_t cmd, const uint8_t *request_data,
15 	uint8_t request_size, uint8_t *reply_data, uint8_t reply_size);
16 
17 #endif
18