coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi_pld.h>
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) |
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) |
Definition at line 59 of file acpigen_usb.h.
enum 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.
enum 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.
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.
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().