diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-01-17 11:01:13 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-24 09:23:31 +0000 |
commit | a00bf6d576a993f36c0f8fce4c9764b6cfbc430d (patch) | |
tree | 72ba904d75c30896f864e97ace7ca65cd47ae24a /include/usb_pd.h | |
parent | 1f04b10f37eb6e4da944fc73b7dfc301b9fad28f (diff) | |
download | chrome-ec-a00bf6d576a993f36c0f8fce4c9764b6cfbc430d.tar.gz |
TCPMv1/v2: Move EC_CMD_USB_PD_RW_HASH_ENTRY host command to common file
BUG=b:142911453
BRANCH=none
TEST=make buildall -j
Change-Id: Ibcf7b23c9b4c166a59c00b4805d1fbad5e79e5f1
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2008298
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index bc8558922f..f8e416141a 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -30,7 +30,7 @@ #else #define PD_PORT_TO_TASK_ID(port) -1 /* dummy task ID */ #define TASK_ID_TO_PD_PORT(id) 0 -#endif /* CONFIG_COMMON_RUNTIME */ +#endif /* HAS_TASK_PD_C0 */ #endif /* CONFIG_USB_PD_PORT_MAX_COUNT */ enum pd_rx_errors { @@ -287,6 +287,12 @@ extern const struct svdm_response svdm_rsp; extern const struct svdm_amode_fx supported_modes[]; extern const int supported_modes_cnt; +/* 4 entry rw_hash table of type-C devices that AP has firmware updates for. */ +#ifdef CONFIG_COMMON_RUNTIME +#define RW_HASH_ENTRIES 4 +extern struct ec_params_usb_pd_rw_hash_entry rw_hash_table[RW_HASH_ENTRIES]; +#endif /* CONFIG_COMMON_RUNTIME */ + /* * defined in common/usb_common.c * This variable is used in a couple of overridable functions |