Debian Codegraph @

src/drivers/intel/usb4/retimer/chip.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #ifndef __DRIVERS_INTEL_USB4_RETIMER_H__
4 #define __DRIVERS_INTEL_USB4_RETIMER_H__
5
6 #include <acpi/acpi_device.h>
7 #include <acpi/acpi.h>
8 #include <acpi/acpi_pld.h>
9
10 #define DFP_NUM_MAX 2
11
12 enum ec_typec_port {
13 UNDEFINED = 0,
14 EC_TYPEC_PORT_0,
15 EC_TYPEC_PORT_1,
16 EC_TYPEC_PORT_2,
17 EC_TYPEC_PORT_3
18 };
19
20 struct drivers_intel_usb4_retimer_config {
21 /* Downstream facing port(DFP) */
22 struct {
23 /* GPIO used to control power of retimer device */
24 struct acpi_gpio power_gpio;
25 /* Type-C port associated with retimer */
26 DEVTREE_CONST struct device *typec_port;
27 /*
28 * EC Type-C port associated with retimer. This parameter must be configured
29 * correctly if the CPU Type-C port to EC port mapping is not sequential.
30 */
31 enum ec_typec_port ec_port;
32 } dfp[DFP_NUM_MAX];
33 };
34
35 #endif /* __DRIVERS_INTEL_USB4_RETIMER_H__ */