summaryrefslogtreecommitdiff
path: root/include/usb_prl_sm.h
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-07-15 11:03:25 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-29 03:33:52 +0000
commit545e72a8540f14416c3d91bf1b5483882a10519e (patch)
treeac91cc9b5159ad208aa931eea46677acc3c53da0 /include/usb_prl_sm.h
parenta3a577297d83798dd7a74771cfbc621d9228b838 (diff)
downloadchrome-ec-545e72a8540f14416c3d91bf1b5483882a10519e.tar.gz
TCPMv2: Optionally build extended message support
If CONFIG_USB_PD_EXTENDED_MESSAGES is defined, support sending and receiving extended messages. If it is not, remove the chunking state machines from the PRL and modify the PE to respond with Not Supported as appropriate. BUG=b:160374787,b:158572770 TEST=Attach various devices; observe PD traffic TEST=make run-usb_prl_noextended; make run-usb_pe_drp_noextended BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I862020155927b5613d599274708e60678c49c43c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2304263 Commit-Queue: Jett Rink <jettrink@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_prl_sm.h')
-rw-r--r--include/usb_prl_sm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usb_prl_sm.h b/include/usb_prl_sm.h
index 6b35bd67e8..3575d9443b 100644
--- a/include/usb_prl_sm.h
+++ b/include/usb_prl_sm.h
@@ -124,6 +124,11 @@ void prl_execute_hard_reset(int port);
* Fake to track the last sent control message
*/
enum pd_ctrl_msg_type fake_prl_get_last_sent_ctrl_msg(int port);
+
+/**
+ * Fake to set the last sent control message to an invalid value.
+ */
+void fake_prl_clear_last_sent_ctrl_msg(int port);
#endif
#endif /* __CROS_EC_USB_PRL_H */