summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2022-09-19 11:29:56 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-21 00:40:38 +0000
commit2776eb7a6294fcb360124355a7bab59aa4bc888c (patch)
tree4f97f665793c9133ff8b5681bacdd5232143d503 /zephyr/include
parentf259d9e4426beba5429c7b87ab78d160780ca946 (diff)
downloadchrome-ec-2776eb7a6294fcb360124355a7bab59aa4bc888c.tar.gz
test: virtual_battery: Manufacture Info SB ext cmd
Verify the virtual_battery code appropriately responds to a manufacture info extended smart battery spec command. BRANCH=none BUG=b:246652125 TEST=./twister --clobber -i -s zephyr/test/drivers/drivers.default Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Ibc316a052b26364110b7b8a3712af1ce466cc8f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905884 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/emul/emul_smart_battery.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_smart_battery.h b/zephyr/include/emul/emul_smart_battery.h
index 4ff9d4a613..826e817992 100644
--- a/zephyr/include/emul/emul_smart_battery.h
+++ b/zephyr/include/emul/emul_smart_battery.h
@@ -119,6 +119,10 @@ struct sbat_emul_bat_data {
uint8_t mf_data[MAX_BLOCK_SIZE];
/** Manufacturer data length */
int mf_data_len;
+ /** Manufacture info */
+ uint8_t mf_info[MAX_BLOCK_SIZE];
+ /** Manufacture info length */
+ int mf_info_len;
};
/**