diff options
Diffstat (limited to 'include/usb_prl_sm.h')
-rw-r--r-- | include/usb_prl_sm.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/usb_prl_sm.h b/include/usb_prl_sm.h index 6607bd2824..99b69f156f 100644 --- a/include/usb_prl_sm.h +++ b/include/usb_prl_sm.h @@ -1,4 +1,4 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. +/* Copyright 2019 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -80,8 +80,7 @@ void prl_run(int port, int evt, int en); * @param type port address * @param rev revision */ -void prl_set_rev(int port, enum tcpci_msg_type type, - enum pd_rev_type rev); +void prl_set_rev(int port, enum tcpci_msg_type type, enum pd_rev_type rev); /** * Get the PD revision @@ -93,6 +92,15 @@ void prl_set_rev(int port, enum tcpci_msg_type type, enum pd_rev_type prl_get_rev(int port, enum tcpci_msg_type type); /** + * Reset Tx and Rx message IDs for the specified partner to their initial + * values. + * + * @param port USB-C port number + * @param type Transmit type + */ +void prl_reset_msg_ids(int port, enum tcpci_msg_type type); + +/** * Sends a PD control message * * @param port USB-C port number @@ -100,7 +108,7 @@ enum pd_rev_type prl_get_rev(int port, enum tcpci_msg_type type); * @param msg Control message type */ void prl_send_ctrl_msg(int port, enum tcpci_msg_type type, - enum pd_ctrl_msg_type msg); + enum pd_ctrl_msg_type msg); /** * Sends a PD data message @@ -110,7 +118,7 @@ void prl_send_ctrl_msg(int port, enum tcpci_msg_type type, * @param msg Data message type */ void prl_send_data_msg(int port, enum tcpci_msg_type type, - enum pd_data_msg_type msg); + enum pd_data_msg_type msg); /** * Sends a PD extended data message @@ -120,7 +128,7 @@ void prl_send_data_msg(int port, enum tcpci_msg_type type, * @param msg Extended data message type */ void prl_send_ext_data_msg(int port, enum tcpci_msg_type type, - enum pd_ext_msg_type msg); + enum pd_ext_msg_type msg); /** * Informs the Protocol Layer that a hard reset has completed |