diff options
Diffstat (limited to 'test/fake_usbc.c')
-rw-r--r-- | test/fake_usbc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index dc27c0e941..e60bd16898 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -7,6 +7,7 @@ #include "common.h" #include "usb_tc_sm.h" #include "usb_pd.h" +#include "usb_pd_tcpm.h" __overridable int pd_is_vbus_present(int port) { @@ -56,7 +57,7 @@ __overridable enum pd_cable_plug tc_get_cable_plug(int port) return PD_PLUG_FROM_DFP_UFP; } -__overridable int pd_get_rev(int port, enum tcpm_transmit_type type) +__overridable int pd_get_rev(int port, enum tcpm_sop_type type) { return IS_ENABLED(CONFIG_USB_PD_REV30) ? PD_REV30 : PD_REV20; } @@ -258,12 +259,12 @@ void dpm_init(int port) { } -void dpm_vdm_acked(int port, enum tcpm_transmit_type type, int vdo_count, +void dpm_vdm_acked(int port, enum tcpm_sop_type type, int vdo_count, uint32_t *vdm) { } -void dpm_vdm_naked(int port, enum tcpm_transmit_type type, uint16_t svid, +void dpm_vdm_naked(int port, enum tcpm_sop_type type, uint16_t svid, uint8_t vdm_cmd) { } |