coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#ifndef __DRIVERS_INTEL_PMC_MUX_CONN_H__
4
#define __DRIVERS_INTEL_PMC_MUX_CONN_H__
5
6
#include <
boot/coreboot_tables.h
>
7
8
struct
drivers_intel_pmc_mux_conn_config
{
9
/* A pointer to the SoC's USB-2 device */
10
DEVTREE_CONST
struct
device
*
usb2_port
;
11
/* A pointer to the SoC's USB-3 device */
12
DEVTREE_CONST
struct
device
*
usb3_port
;
13
/* Orientation of the sideband signals (SBU) */
14
enum
type_c_orientation
sbu_orientation
;
15
/* Orientation of the High Speed lines */
16
enum
type_c_orientation
hsl_orientation
;
17
};
18
19
/*
20
* Method verifies input "conn" device.
21
* Returns 'true' if device passed is Intel PMC MUX Conn device else returns 'false'.
22
* Method also outputs the usb2 and usb3 port numbers associated with the 'conn' device
23
*/
24
bool
intel_pmc_mux_conn_get_ports
(
const
struct
device
*conn,
unsigned
int
*usb2_port,
25
unsigned
int
*usb3_port);
26
27
#endif
/* __DRIVERS_INTEL_PMC_MUX_CONN_H__ */
type_c_orientation
type_c_orientation
Definition:
coreboot_tables.h:410
intel_pmc_mux_conn_get_ports
bool intel_pmc_mux_conn_get_ports(const struct device *conn, unsigned int *usb2_port, unsigned int *usb3_port)
Definition:
conn.c:160
coreboot_tables.h
DEVTREE_CONST
#define DEVTREE_CONST
Definition:
stddef.h:30
device
Definition:
device.h:107
drivers_intel_pmc_mux_conn_config
Definition:
chip.h:8
drivers_intel_pmc_mux_conn_config::usb2_port
DEVTREE_CONST struct device * usb2_port
Definition:
chip.h:10
drivers_intel_pmc_mux_conn_config::hsl_orientation
enum type_c_orientation hsl_orientation
Definition:
chip.h:16
drivers_intel_pmc_mux_conn_config::sbu_orientation
enum type_c_orientation sbu_orientation
Definition:
chip.h:14
drivers_intel_pmc_mux_conn_config::usb3_port
DEVTREE_CONST struct device * usb3_port
Definition:
chip.h:12
src
drivers
intel
pmc_mux
conn
chip.h
Generated by
1.9.1