diff options
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index e4ab8f6432..92580252a5 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -8,15 +8,14 @@ #ifndef __CROS_EC_USB_PD_H #define __CROS_EC_USB_PD_H +#include <stdbool.h> +#include <stdint.h> #include "common.h" #include "ec_commands.h" #include "usb_pd_tbt.h" #include "usb_pd_tcpm.h" #include "usb_pd_vdo.h" -#include <stdbool.h> -#include <stdint.h> - /* PD Host command timeout */ #define PD_HOST_COMMAND_TIMEOUT_US SECOND @@ -477,6 +476,7 @@ struct partner_active_modes { * VDM object is minimum of VDM header + 6 additional data objects. */ #define VDO_HDR_SIZE 1 +#define VDO_MAX_SIZE 7 #define VDM_VER10 0 #define VDM_VER20 1 @@ -3189,6 +3189,13 @@ __override_proto void board_process_pd_alert(int port); */ void board_reset_pd_mcu(void); +/** + * Return true if specified PD port is debug accessory. + * + * @param port USB-C port number + */ +bool pd_is_debug_acc(int port); + /* * Notify the AP that we have entered into DisplayPort Alternate Mode. This * sets a DP_ALT_MODE_ENTERED MKBP event which may wake the AP. |