diff options
Diffstat (limited to 'util/comm-host.h')
-rw-r--r-- | util/comm-host.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/util/comm-host.h b/util/comm-host.h index d890156af0..695fc33c4f 100644 --- a/util/comm-host.h +++ b/util/comm-host.h @@ -12,12 +12,23 @@ #include "common.h" #include "ec_commands.h" -/* Perform initializations needed for subsequent requests +/* Maximum output and input sizes for EC command, in bytes */ +extern int ec_max_outsize, ec_max_insize; + +/* + * Maximum-size output and input buffers, for use by callers. This saves each + * caller needing to allocate/free its own buffers. + */ +extern void *ec_outbuf; +extern void *ec_inbuf; + +/** + * Perform initializations needed for subsequent requests * * returns 0 in case of success or error code. */ int comm_init(void); -/* +/** * Send a command to the EC. Returns the length of output data returned (0 if * none), or negative on error. */ @@ -25,7 +36,7 @@ extern int (*ec_command)(int command, int version, const void *outdata, int outsize, /* to the EC */ void *indata, int insize); /* from the EC */ -/* +/** * Return the content of the EC information area mapped as "memory". * The offsets are defined by the EC_MEMMAP_ constants. Returns the number * of bytes read, or negative on error. Specifying bytes=0 will read a |