blob: f5c599ca1f6b1da04d2fb966e43a7f16320f6d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Mock USB TC state machine*/
#ifndef __MOCK_USB_TC_SM_MOCK_H
#define __MOCK_USB_TC_SM_MOCK_H
#include "common.h"
#include "usb_tc_sm.h"
struct mock_tc_port_t {
int rev;
int pd_enable;
int msg_tx_id;
int msg_rx_id;
enum tcpm_transmit_type sop;
enum tcpc_rp_value lcl_rp;
int attached_snk;
int attached_src;
bool vconn_src;
};
extern struct mock_tc_port_t mock_tc_port[CONFIG_USB_PD_PORT_MAX_COUNT];
void mock_tc_port_reset(void);
#endif /* __MOCK_USB_TC_SM_MOCK_H */
|