@@ -5862,6 +5862,7 @@ enum tcpc_cc_polarity {
5862
5862
#define PD_STATUS_EVENT_MUX_1_SET_DONE BIT(5)
5863
5863
#define PD_STATUS_EVENT_VDM_REQ_REPLY BIT(6)
5864
5864
#define PD_STATUS_EVENT_VDM_REQ_FAILED BIT(7)
5865
+ #define PD_STATUS_EVENT_VDM_ATTENTION BIT(8)
5865
5866
5866
5867
struct ec_params_typec_status {
5867
5868
uint8_t port ;
@@ -5906,7 +5907,8 @@ struct ec_response_typec_status {
5906
5907
} __ec_align1 ;
5907
5908
5908
5909
/*
5909
- * Gather the response to the most recent VDM REQ from the AP
5910
+ * Gather the response to the most recent VDM REQ from the AP, as well
5911
+ * as popping the oldest VDM:Attention from the DPM queue
5910
5912
*/
5911
5913
#define EC_CMD_TYPEC_VDM_RESPONSE 0x013C
5912
5914
@@ -5919,10 +5921,18 @@ struct ec_response_typec_vdm_response {
5919
5921
uint8_t vdm_data_objects ;
5920
5922
/* Partner to address - see enum typec_partner_type */
5921
5923
uint8_t partner_type ;
5922
- /* Reserved */
5923
- uint16_t reserved ;
5924
+ /* enum ec_status describing VDM response */
5925
+ uint16_t vdm_response_err ;
5924
5926
/* VDM data, including VDM header */
5925
5927
uint32_t vdm_response [VDO_MAX_SIZE ];
5928
+ /* Number of 32-bit Attention fields filled in */
5929
+ uint8_t vdm_attention_objects ;
5930
+ /* Number of remaining messages to consume */
5931
+ uint8_t vdm_attention_left ;
5932
+ /* Reserved */
5933
+ uint16_t reserved1 ;
5934
+ /* VDM:Attention contents */
5935
+ uint32_t vdm_attention [2 ];
5926
5936
} __ec_align1 ;
5927
5937
5928
5938
#undef VDO_MAX_SIZE
0 commit comments