summaryrefslogtreecommitdiff
path: root/include/usb_tbt_alt_mode.h
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2021-08-18 11:43:25 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-18 23:04:51 +0000
commit59e395027ab03c0ca2b5263193b30dff1c063c44 (patch)
tree7965d55bbc96f1515bdd2ca063fe5d48b69f1bd4 /include/usb_tbt_alt_mode.h
parentfb89306a92228081e4203a33725357dd9754b6c8 (diff)
downloadchrome-ec-59e395027ab03c0ca2b5263193b30dff1c063c44.tar.gz
TCPM: Rename enum tcpm_transmit_type
Rename tcpm_transmit_type to tcpm_sop_type to reflect that it can be used for Rx as well. Describe it in comments. This prepares to consolidate enum pd_msg_type into this enum. BUG=b:155476419 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Ife97d4ad51c48f2e832b94e007954919e236a309 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3104290 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_tbt_alt_mode.h')
-rw-r--r--include/usb_tbt_alt_mode.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/usb_tbt_alt_mode.h b/include/usb_tbt_alt_mode.h
index 01604d72ae..5190f00ec1 100644
--- a/include/usb_tbt_alt_mode.h
+++ b/include/usb_tbt_alt_mode.h
@@ -14,6 +14,7 @@
#include <stdint.h>
#include "tcpm/tcpm.h"
+#include "usb_pd_tcpm.h"
/*
* Initialize Thunderbolt state for the specified port.
@@ -75,7 +76,7 @@ bool tbt_is_active(int port);
* @param vdo_count The number of VDOs in the ACK VDM
* @param vdm VDM from ACK
*/
-void intel_vdm_acked(int port, enum tcpm_transmit_type type, int vdo_count,
+void intel_vdm_acked(int port, enum tcpm_sop_type type, int vdo_count,
uint32_t *vdm);
/*
@@ -86,7 +87,7 @@ void intel_vdm_acked(int port, enum tcpm_transmit_type type, int vdo_count,
* @param svid The SVID of the request
* @param vdm_cmd The VDM command of the request
*/
-void intel_vdm_naked(int port, enum tcpm_transmit_type type, uint8_t vdm_cmd);
+void intel_vdm_naked(int port, enum tcpm_sop_type type, uint8_t vdm_cmd);
/*
* Construct the next Thunderbolt VDM that should be sent.
@@ -99,6 +100,6 @@ void intel_vdm_naked(int port, enum tcpm_transmit_type type, uint8_t vdm_cmd);
* @return The number of VDOs written to VDM or -1 to indicate error
*/
int tbt_setup_next_vdm(int port, int vdo_count, uint32_t *vdm,
- enum tcpm_transmit_type *tx_type);
+ enum tcpm_sop_type *tx_type);
#endif