summaryrefslogtreecommitdiff
path: root/include/usb_pe_sm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_pe_sm.h')
-rw-r--r--include/usb_pe_sm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h
index 90069f6cf6..e69eff572f 100644
--- a/include/usb_pe_sm.h
+++ b/include/usb_pe_sm.h
@@ -178,5 +178,16 @@ void pe_set_sysjump(void);
* @param port USB-C port number
*/
void pe_invalidate_explicit_contract(int port);
+
+/*
+ * Return true if the PE is is within an atomic
+ * messaging sequence that it initiated with a SOP* port partner.
+ *
+ * Note the PRL layer polls this instead of using AMS_START and AMS_END
+ * notification from the PE that is called out by the spec
+ *
+ * @param port USB-C port number
+ */
+bool pe_in_local_ams(int port);
#endif /* __CROS_EC_USB_PE_H */