summaryrefslogtreecommitdiff
path: root/include/usb_prl_sm.h
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2020-04-22 15:12:15 -0700
committerCommit Bot <commit-bot@chromium.org>2020-04-29 21:50:30 +0000
commit9abfcc7ced52511ce1c6d501a4b54014fa21f19e (patch)
tree8b6c22b99468456c812253bb95eb7a7777975fd6 /include/usb_prl_sm.h
parent459021082eb95870af2ad49ac58b5c479895c8dd (diff)
downloadchrome-ec-9abfcc7ced52511ce1c6d501a4b54014fa21f19e.tar.gz
TCPMv2: Add dump pd command needed by PD_FAFT
Add dump pd command that sets the debug level of the Policy Engine Layer and Protocol layer. BUG=b:151481791 BRANCH=none TEST=make -j buildall manual: pd dump 0 - verified PRL layer didn't print packet info and PE layer didn't print state names pd dump 1 - verified PRL layer printed packet info and PE layer printed state names Change-Id: I49430573278a4c51f52698c1528ace2c639cc30f Signed-off-by: Sam Hurst <shurst@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2162190 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'include/usb_prl_sm.h')
-rw-r--r--include/usb_prl_sm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_prl_sm.h b/include/usb_prl_sm.h
index e17a28c131..58ce044f54 100644
--- a/include/usb_prl_sm.h
+++ b/include/usb_prl_sm.h
@@ -10,6 +10,7 @@
#include "common.h"
#include "usb_pd.h"
#include "usb_pd_tcpm.h"
+#include "usb_sm.h"
/*
* Number of times the Protocol Layer will try to transmit a message
@@ -26,6 +27,13 @@
int prl_is_running(int port);
/**
+ * Sets the debug level for the PRL layer
+ *
+ * @param level debug level
+ */
+void prl_set_debug_level(enum debug_level level);
+
+/**
* Resets the Protocol Layer State Machine
*
* @param port USB-C port number