diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-01-27 18:45:18 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-28 23:51:33 +0000 |
commit | 9c853d14068fe636a24c2c670f6f278851117f89 (patch) | |
tree | 02a7a72575d40cefab8f08ccbad3d03af6cb7ac0 /include | |
parent | 786dedfb15f333ac5a70b83a110eb37805f3be7d (diff) | |
download | chrome-ec-9c853d14068fe636a24c2c670f6f278851117f89.tar.gz |
TCPMv1/v2: Move EC_CMD_USB_PD_GET_AMODE host command to common file
BUG=b:142911453
BRANCH=none
TEST=make buildall -j
Change-Id: I0b9cb76adbc5e385cb20256f693bd2b0687b30de
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2024428
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index c27310484e..b14cf8b241 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1563,6 +1563,43 @@ uint16_t pd_get_identity_pid(int port); uint8_t pd_get_product_type(int port); /** + * Return the SVID count of port partner connected to a specified port + * + * @param port USB-C port number + * @return SVID count + */ +int pd_get_svid_count(int port); + +/** + * Return the SVID of given SVID index of port partner connected + * to a specified port + * + * @param port USB-C port number + * @param svid_idx SVID Index + * @return SVID + */ +uint16_t pd_get_svid(int port, uint16_t svid_idx); + +/** + * Return the pointer to modes of VDO of port partner connected + * to a specified port + * + * @param port USB-C port number + * @param svid_idx SVID Index + * @return Pointer to modes of VDO + */ +uint32_t *pd_get_mode_vdo(int port, uint16_t svid_idx); + +/** + * Return the alternate mode entry and exit data + * + * @param port USB-C port number + * @param svid SVID + * @return pointer to SVDM mode data + */ +struct svdm_amode_data *pd_get_amode_data(int port, uint16_t svid); + +/** * Returns the status of cable flag - CABLE_FLAGS_SOP_PRIME_ENABLE * * @param port USB-C port number |