From eded0406a367bbfed69d3f78871df5f9be7b7b41 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Wed, 1 Jul 2015 10:53:19 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/283070 Reviewed-by: Randall Spangler --- include/ec_commands.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ec_commands.h b/include/ec_commands.h index 4bfbbb0e39..6ef13c408b 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -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 -- cgit v1.2.1