diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-01-07 12:05:15 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-14 01:43:41 +0000 |
commit | 329045e9bcd3af6294460fcf0ab9be5fa583c1c7 (patch) | |
tree | 66984ce21b88984040f632a7fbdca960335a64a1 /include/usb_pd.h | |
parent | cb9c91ae78238429e0e7a1514333bc5fe8238431 (diff) | |
download | chrome-ec-329045e9bcd3af6294460fcf0ab9be5fa583c1c7.tar.gz |
TCPMv1 & TCPMv2: Move common functions to common code
BUG=b:147249926, b:146623068
BRANCH=none
TEST=make buildall -j
Change-Id: Ibb24bdad4e9ec24b02106c05ca5fe51269efcb1c
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1990425
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 5bef019930..ced7ae26cd 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -899,7 +899,7 @@ enum pd_data_role pd_get_data_role(int port); /** * Get current power role * - * @param port Port number from which to get role + * @param port Port number from which to get power role */ enum pd_power_role pd_get_power_role(int port); @@ -2042,7 +2042,14 @@ uint8_t pd_get_src_cap_cnt(int port); * * @param port USB-C port number */ -int pd_get_partner_usb_comm_capable(int port); +bool pd_get_partner_usb_comm_capable(int port); + +/** + * Return true if PD is in disconnect state + * + * @param port USB-C port number + */ +bool pd_is_disconnected(int port); /** * Return true if vbus is present on the specified port. |