coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpigen_usb.h File Reference
#include <acpi/acpi_pld.h>
Include dependency graph for acpigen_usb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  typec_connector_class_config
 Configuration required to write out a Type-C Connector ACPI object. More...
 

Typedefs

typedef void(* add_custom_dsd_property_cb) (struct acpi_dp *dsd, int port_number)
 

Enumerations

enum  usb_typec_power_role { TYPEC_POWER_ROLE_SOURCE , TYPEC_POWER_ROLE_SINK , TYPEC_POWER_ROLE_DUAL }
 
enum  usb_typec_try_power_role { TYPEC_TRY_POWER_ROLE_NONE , TYPEC_TRY_POWER_ROLE_SINK , TYPEC_TRY_POWER_ROLE_SOURCE }
 
enum  usb_typec_data_role { TYPEC_DATA_ROLE_DFP , TYPEC_DATA_ROLE_UFP , TYPEC_DATA_ROLE_DUAL }
 

Functions

void acpigen_write_typec_connector (const struct typec_connector_class_config *config, int port_number, add_custom_dsd_property_cb add_custom_dsd_property)
 

Typedef Documentation

◆ add_custom_dsd_property_cb

typedef void(* add_custom_dsd_property_cb) (struct acpi_dp *dsd, int port_number)

Definition at line 59 of file acpigen_usb.h.

Enumeration Type Documentation

◆ usb_typec_data_role

Enumerator
TYPEC_DATA_ROLE_DFP 
TYPEC_DATA_ROLE_UFP 
TYPEC_DATA_ROLE_DUAL 

Definition at line 20 of file acpigen_usb.h.

◆ usb_typec_power_role

Enumerator
TYPEC_POWER_ROLE_SOURCE 
TYPEC_POWER_ROLE_SINK 
TYPEC_POWER_ROLE_DUAL 

Definition at line 8 of file acpigen_usb.h.

◆ usb_typec_try_power_role

Enumerator
TYPEC_TRY_POWER_ROLE_NONE 
TYPEC_TRY_POWER_ROLE_SINK 
TYPEC_TRY_POWER_ROLE_SOURCE 

Definition at line 14 of file acpigen_usb.h.

Function Documentation

◆ acpigen_write_typec_connector()

void acpigen_write_typec_connector ( const struct typec_connector_class_config config,
int  port_number,
add_custom_dsd_property_cb  add_custom_dsd_property 
)

Definition at line 111 of file acpigen_usb.c.

References acpi_dp_add_integer(), acpi_dp_new_table(), acpi_dp_write(), acpigen_pop_len(), acpigen_write_device(), acpigen_write_name_integer(), acpigen_write_pld(), add_device_references(), add_port_caps(), config, name, and snprintf().

Referenced by fill_ssdt_typec_device().

Here is the call graph for this function:
Here is the caller graph for this function: