blob: 819f086c5a83dac55a042e12b682a4c61cf4b794 (
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
30
|
/* Copyright 2020 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Mock USB PE state machine */
#ifndef __MOCK_USB_PE_SM_MOCK_H
#define __MOCK_USB_PE_SM_MOCK_H
#include "common.h"
#include "usb_pe_sm.h"
#include "usb_pd_tcpm.h"
struct mock_pe_port_t {
enum tcpci_msg_type sop;
int mock_pe_message_sent;
int mock_pe_error;
int mock_pe_hard_reset_sent;
int mock_pe_got_hard_reset;
int mock_pe_message_received;
int mock_got_soft_reset;
int mock_pe_message_discarded;
};
extern struct mock_pe_port_t mock_pe_port[CONFIG_USB_PD_PORT_MAX_COUNT];
void mock_pe_port_reset(void);
#endif /* __MOCK_USB_PE_SM_MOCK_H */
|