summaryrefslogtreecommitdiff
path: root/include/mock/usb_pd_mock.h
blob: 55bc6630010a703b673c59dbc4d508737ffbc2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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 PD */

#ifndef __MOCK_USB_PD_MOCK_H
#define __MOCK_USB_PD_MOCK_H

#include "common.h"
#include "usb_pd.h"

struct mock_pd_port_t {
	enum pd_data_role data_role;
	enum pd_power_role power_role;
};

extern struct mock_pd_port_t mock_pd_port[CONFIG_USB_PD_PORT_MAX_COUNT];

#endif /* __MOCK_USB_PD_MOCK_H */