Add EC_CMD_BLOB host command to pass opaque data around

This provides a way to experiment with or support random
functionality not specifically related to the normal EC
operation. With this, we can use a standard host command to pass
opaque data blobs between the AP and EC without specifying a
particular meaning to them.

BUG=chrome-os-partner:40969
BRANCH=none
TEST=make buildall

Nothing in the normal EC usage sends these messages. I have a
test/example program coming soon.

Change-Id: I77fe434cbd9151e4c2c22bc36d1ed6063d3bf940
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/283070
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Bill Richardson
2015-07-01 10:53:19 -07:00
committed by ChromeOS Commit Bot
parent 3196828344
commit eded0406a3

View File

@@ -3314,6 +3314,14 @@ struct ec_params_pd_write_log_entry {
#endif /* !__ACPI__ */
/*****************************************************************************/
/*
* Blob commands are just opaque chunks of data, sent with proto v3.
* params is struct ec_host_request, response is struct ec_host_response.
*/
#define EC_CMD_BLOB 0x200
/*****************************************************************************/
/*
* Passthru commands