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