diff options
Diffstat (limited to 'src/ec/google/chromeec/ec.h')
-rw-r--r-- | src/ec/google/chromeec/ec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/ec.h b/src/ec/google/chromeec/ec.h index 7679a8bcc6..13e9f234b1 100644 --- a/src/ec/google/chromeec/ec.h +++ b/src/ec/google/chromeec/ec.h @@ -21,6 +21,8 @@ #ifndef _EC_GOOGLE_CHROMEEC_EC_H #define _EC_GOOGLE_CHROMEEC_EC_H +#include <stddef.h> +#include <stdint.h> #ifndef __PRE_RAM__ u32 google_chromeec_get_wake_mask(void); @@ -60,6 +62,13 @@ struct chromeec_command { * actual received size out */ }; +/* internal standard implementation for EC command protocols. */ +typedef int (*crosec_io_t)(uint8_t *write_bytes, size_t write_size, + uint8_t *read_bytes, size_t read_size, + void *context); +int crosec_command_proto(struct chromeec_command *cec_command, + crosec_io_t crosec_io, void *context); + int google_chromeec_command(struct chromeec_command *cec_command); #endif /* _EC_GOOGLE_CHROMEEC_EC_H */ |