coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | acpi_dp |
struct | acpi_irq |
struct | acpi_gpio |
struct | acpi_i2c |
struct | acpi_spi |
struct | acpi_uart |
struct | acpi_power_res_params |
struct | acpi_gpio_res_params |
Functions | |
const char * | acpi_device_name (const struct device *dev) |
const char * | acpi_device_hid (const struct device *dev) |
uint32_t | acpi_device_uid (const struct device *dev) |
const char * | acpi_device_path (const struct device *dev) |
const char * | acpi_device_scope (const struct device *dev) |
const char * | acpi_device_path_join (const struct device *dev, const char *name) |
int | acpi_device_status (const struct device *dev) |
void | acpi_device_write_uid (const struct device *dev) |
void | acpi_device_write_interrupt (const struct acpi_irq *irq) |
void | acpi_device_write_gpio (const struct acpi_gpio *gpio) |
void | acpi_device_write_i2c (const struct acpi_i2c *i2c) |
void | acpi_device_write_spi (const struct acpi_spi *spi) |
void | acpi_device_write_uart (const struct acpi_uart *uart) |
void | acpi_device_add_power_res (const struct acpi_power_res_params *params) |
struct acpi_dp * | acpi_dp_new_table (const char *ref) |
struct acpi_dp * | acpi_dp_add_package (struct acpi_dp *dp, struct acpi_dp *package) |
struct acpi_dp * | acpi_dp_add_integer (struct acpi_dp *dp, const char *name, uint64_t value) |
struct acpi_dp * | acpi_dp_add_string (struct acpi_dp *dp, const char *name, const char *string) |
struct acpi_dp * | acpi_dp_add_reference (struct acpi_dp *dp, const char *name, const char *reference) |
struct acpi_dp * | acpi_dp_add_array (struct acpi_dp *dp, struct acpi_dp *array) |
struct acpi_dp * | acpi_dp_add_integer_array (struct acpi_dp *dp, const char *name, const uint64_t *array, int len) |
struct acpi_dp * | acpi_dp_add_gpio (struct acpi_dp *dp, const char *name, const char *ref, int index, int pin, int active_low) |
struct acpi_dp * | acpi_dp_add_gpio_array (struct acpi_dp *dp, const char *name, const struct acpi_gpio_res_params *params, size_t param_count) |
struct acpi_dp * | acpi_dp_add_child (struct acpi_dp *dp, const char *name, struct acpi_dp *child) |
size_t | acpi_dp_add_property_list (struct acpi_dp *dp, const struct acpi_dp *property_list, size_t property_count) |
void | acpi_dp_write (struct acpi_dp *table) |
void | acpi_device_write_pci_dev (const struct device *dev) |
#define ACPI_DESCRIPTOR_GPIO (ACPI_DESCRIPTOR_LARGE | 12) |
Definition at line 38 of file acpi_device.h.
#define ACPI_DESCRIPTOR_INTERRUPT (ACPI_DESCRIPTOR_LARGE | 9) |
Definition at line 37 of file acpi_device.h.
#define ACPI_DESCRIPTOR_LARGE (1 << 7) |
Definition at line 36 of file acpi_device.h.
#define ACPI_DESCRIPTOR_SERIAL_BUS (ACPI_DESCRIPTOR_LARGE | 14) |
Definition at line 39 of file acpi_device.h.
#define ACPI_DT_NAMESPACE_HID "PRP0001" |
Definition at line 51 of file acpi_device.h.
#define ACPI_GPIO_CFG | ( | _gpio, | |
_io_restrict, | |||
_active_low | |||
) |
Definition at line 194 of file acpi_device.h.
#define ACPI_GPIO_INPUT | ( | gpio | ) | ACPI_GPIO_INPUT_CFG(gpio, 0) |
Definition at line 214 of file acpi_device.h.
#define ACPI_GPIO_INPUT_ACTIVE_HIGH | ( | gpio | ) | ACPI_GPIO_INPUT_CFG(gpio, 0) |
Definition at line 215 of file acpi_device.h.
#define ACPI_GPIO_INPUT_ACTIVE_LOW | ( | gpio | ) | ACPI_GPIO_INPUT_CFG(gpio, 1) |
Definition at line 216 of file acpi_device.h.
#define ACPI_GPIO_INPUT_CFG | ( | gpio, | |
polarity | |||
) | ACPI_GPIO_CFG(gpio, ACPI_GPIO_IO_RESTRICT_INPUT, polarity) |
Definition at line 211 of file acpi_device.h.
#define ACPI_GPIO_IRQ_CFG | ( | _gpio, | |
_mode, | |||
_polarity, | |||
_wake | |||
) |
Definition at line 219 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE | ( | gpio, | |
polarity | |||
) | ACPI_GPIO_IRQ_CFG(gpio, ACPI_IRQ_EDGE_TRIGGERED, polarity, 0) |
Definition at line 228 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_BOTH | ( | gpio | ) | ACPI_GPIO_IRQ_EDGE(gpio, ACPI_IRQ_ACTIVE_BOTH) |
Definition at line 249 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_BOTH_WAKE | ( | gpio | ) | ACPI_GPIO_IRQ_EDGE_WAKE(gpio, ACPI_IRQ_ACTIVE_BOTH) |
Definition at line 261 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_HIGH | ( | gpio | ) | ACPI_GPIO_IRQ_EDGE(gpio, ACPI_IRQ_ACTIVE_HIGH) |
Definition at line 241 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_HIGH_WAKE | ( | gpio | ) | ACPI_GPIO_IRQ_EDGE_WAKE(gpio, ACPI_IRQ_ACTIVE_HIGH) |
Definition at line 253 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_LOW | ( | gpio | ) | ACPI_GPIO_IRQ_EDGE(gpio, ACPI_IRQ_ACTIVE_LOW) |
Definition at line 245 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_LOW_WAKE | ( | gpio | ) | ACPI_GPIO_IRQ_EDGE_WAKE(gpio, ACPI_IRQ_ACTIVE_LOW) |
Definition at line 257 of file acpi_device.h.
#define ACPI_GPIO_IRQ_EDGE_WAKE | ( | gpio, | |
polarity | |||
) | ACPI_GPIO_IRQ_CFG(gpio, ACPI_IRQ_EDGE_TRIGGERED, polarity, ACPI_IRQ_WAKE) |
Definition at line 231 of file acpi_device.h.
#define ACPI_GPIO_IRQ_LEVEL | ( | gpio, | |
polarity | |||
) | ACPI_GPIO_IRQ_CFG(gpio, ACPI_IRQ_LEVEL_TRIGGERED, polarity, 0) |
Definition at line 234 of file acpi_device.h.
#define ACPI_GPIO_IRQ_LEVEL_HIGH | ( | gpio | ) | ACPI_GPIO_IRQ_LEVEL(gpio, ACPI_IRQ_ACTIVE_HIGH) |
Definition at line 265 of file acpi_device.h.
#define ACPI_GPIO_IRQ_LEVEL_HIGH_WAKE | ( | gpio | ) | ACPI_GPIO_IRQ_LEVEL_WAKE(gpio, ACPI_IRQ_ACTIVE_HIGH) |
Definition at line 273 of file acpi_device.h.
#define ACPI_GPIO_IRQ_LEVEL_LOW | ( | gpio | ) | ACPI_GPIO_IRQ_LEVEL(gpio, ACPI_IRQ_ACTIVE_LOW) |
Definition at line 269 of file acpi_device.h.
#define ACPI_GPIO_IRQ_LEVEL_LOW_WAKE | ( | gpio | ) | ACPI_GPIO_IRQ_LEVEL_WAKE(gpio, ACPI_IRQ_ACTIVE_LOW) |
Definition at line 277 of file acpi_device.h.
#define ACPI_GPIO_IRQ_LEVEL_WAKE | ( | gpio, | |
polarity | |||
) | ACPI_GPIO_IRQ_CFG(gpio, ACPI_IRQ_LEVEL_TRIGGERED, polarity, ACPI_IRQ_WAKE) |
Definition at line 237 of file acpi_device.h.
#define ACPI_GPIO_MAX_PINS 8 |
Definition at line 162 of file acpi_device.h.
#define ACPI_GPIO_OUTPUT | ( | gpio | ) | ACPI_GPIO_OUTPUT_CFG(gpio, 0) |
Definition at line 206 of file acpi_device.h.
#define ACPI_GPIO_OUTPUT_ACTIVE_HIGH | ( | gpio | ) | ACPI_GPIO_OUTPUT_CFG(gpio, 0) |
Definition at line 207 of file acpi_device.h.
#define ACPI_GPIO_OUTPUT_ACTIVE_LOW | ( | gpio | ) | ACPI_GPIO_OUTPUT_CFG(gpio, 1) |
Definition at line 208 of file acpi_device.h.
#define ACPI_GPIO_OUTPUT_CFG | ( | gpio, | |
active_low | |||
) | ACPI_GPIO_CFG(gpio, ACPI_GPIO_IO_RESTRICT_OUTPUT, active_low) |
Definition at line 203 of file acpi_device.h.
#define ACPI_GPIO_REVISION_ID 1 |
Definition at line 161 of file acpi_device.h.
#define ACPI_I2C_SERIAL_BUS_REVISION_ID 1 /* TODO: upgrade to 2 */ |
Definition at line 291 of file acpi_device.h.
#define ACPI_I2C_TYPE_SPECIFIC_REVISION_ID 1 |
Definition at line 292 of file acpi_device.h.
#define ACPI_IRQ_CFG | ( | _pin, | |
_mode, | |||
_pol, | |||
_shared, | |||
_wake | |||
) |
Definition at line 96 of file acpi_device.h.
#define ACPI_IRQ_EDGE_HIGH | ( | x | ) |
Definition at line 107 of file acpi_device.h.
#define ACPI_IRQ_EDGE_LOW | ( | x | ) |
Definition at line 103 of file acpi_device.h.
#define ACPI_IRQ_LEVEL_HIGH | ( | x | ) |
Definition at line 115 of file acpi_device.h.
#define ACPI_IRQ_LEVEL_LOW | ( | x | ) |
Definition at line 111 of file acpi_device.h.
#define ACPI_IRQ_WAKE_EDGE_HIGH | ( | x | ) |
Definition at line 123 of file acpi_device.h.
#define ACPI_IRQ_WAKE_EDGE_LOW | ( | x | ) |
Definition at line 119 of file acpi_device.h.
#define ACPI_IRQ_WAKE_LEVEL_HIGH | ( | x | ) |
Definition at line 131 of file acpi_device.h.
#define ACPI_IRQ_WAKE_LEVEL_LOW | ( | x | ) |
Definition at line 127 of file acpi_device.h.
#define ACPI_SERIAL_BUS_TYPE_I2C 1 |
Definition at line 287 of file acpi_device.h.
#define ACPI_SERIAL_BUS_TYPE_SPI 2 |
Definition at line 288 of file acpi_device.h.
#define ACPI_SERIAL_BUS_TYPE_UART 3 |
Definition at line 289 of file acpi_device.h.
#define ACPI_SPI_SERIAL_BUS_REVISION_ID 1 |
Definition at line 293 of file acpi_device.h.
#define ACPI_SPI_TYPE_SPECIFIC_REVISION_ID 1 |
Definition at line 294 of file acpi_device.h.
#define ACPI_UART_RAW_DEVICE | ( | baud_rate, | |
fifo_bytes | |||
) |
Definition at line 413 of file acpi_device.h.
#define ACPI_UART_SERIAL_BUS_REVISION_ID 1 |
Definition at line 295 of file acpi_device.h.
#define ACPI_UART_TYPE_SPECIFIC_REVISION_ID 1 |
Definition at line 296 of file acpi_device.h.
enum acpi_dp_type |
Enumerator | |
---|---|
ACPI_DP_TYPE_UNKNOWN | |
ACPI_DP_TYPE_INTEGER | |
ACPI_DP_TYPE_STRING | |
ACPI_DP_TYPE_REFERENCE | |
ACPI_DP_TYPE_TABLE | |
ACPI_DP_TYPE_ARRAY | |
ACPI_DP_TYPE_CHILD | |
ACPI_DP_TYPE_PACKAGE |
Definition at line 10 of file acpi_device.h.
Enumerator | |
---|---|
ACPI_GPIO_IO_RESTRICT_NONE | |
ACPI_GPIO_IO_RESTRICT_INPUT | |
ACPI_GPIO_IO_RESTRICT_OUTPUT | |
ACPI_GPIO_IO_RESTRICT_PRESERVE |
Definition at line 154 of file acpi_device.h.
enum acpi_gpio_pull |
Enumerator | |
---|---|
ACPI_GPIO_PULL_DEFAULT | |
ACPI_GPIO_PULL_UP | |
ACPI_GPIO_PULL_DOWN | |
ACPI_GPIO_PULL_NONE |
Definition at line 147 of file acpi_device.h.
enum acpi_gpio_type |
Enumerator | |
---|---|
ACPI_GPIO_TYPE_INTERRUPT | |
ACPI_GPIO_TYPE_IO |
Definition at line 142 of file acpi_device.h.
enum acpi_irq_mode |
Enumerator | |
---|---|
ACPI_IRQ_EDGE_TRIGGERED | |
ACPI_IRQ_LEVEL_TRIGGERED |
Definition at line 67 of file acpi_device.h.
enum acpi_irq_polarity |
Enumerator | |
---|---|
ACPI_IRQ_ACTIVE_LOW | |
ACPI_IRQ_ACTIVE_HIGH | |
ACPI_IRQ_ACTIVE_BOTH |
Definition at line 72 of file acpi_device.h.
enum acpi_irq_shared |
Enumerator | |
---|---|
ACPI_IRQ_EXCLUSIVE | |
ACPI_IRQ_SHARED |
Definition at line 78 of file acpi_device.h.
enum acpi_irq_wake |
Enumerator | |
---|---|
ACPI_IRQ_NO_WAKE | |
ACPI_IRQ_WAKE |
Definition at line 83 of file acpi_device.h.
enum acpi_uart_data_bits |
Enumerator | |
---|---|
ACPI_UART_DATA_BITS_5 | |
ACPI_UART_DATA_BITS_6 | |
ACPI_UART_DATA_BITS_7 | |
ACPI_UART_DATA_BITS_8 | |
ACPI_UART_DATA_BITS_9 |
Definition at line 346 of file acpi_device.h.
enum acpi_uart_endian |
Enumerator | |
---|---|
ACPI_UART_ENDIAN_LITTLE | |
ACPI_UART_ENDIAN_BIG |
Definition at line 370 of file acpi_device.h.
Enumerator | |
---|---|
ACPI_UART_FLOW_NONE | |
ACPI_UART_FLOW_HARDWARE | |
ACPI_UART_FLOW_SOFTWARE |
Definition at line 383 of file acpi_device.h.
enum acpi_uart_lines |
Enumerator | |
---|---|
ACPI_UART_LINE_DTD | |
ACPI_UART_LINE_RI | |
ACPI_UART_LINE_DSR | |
ACPI_UART_LINE_DTR | |
ACPI_UART_LINE_CTS | |
ACPI_UART_LINE_RTS |
Definition at line 361 of file acpi_device.h.
enum acpi_uart_parity |
Enumerator | |
---|---|
ACPI_UART_PARITY_NONE | |
ACPI_UART_PARITY_EVEN | |
ACPI_UART_PARITY_ODD | |
ACPI_UART_PARITY_MARK | |
ACPI_UART_PARITY_SPACE |
Definition at line 375 of file acpi_device.h.
enum acpi_uart_stop_bits |
Enumerator | |
---|---|
ACPI_UART_STOP_BITS_0 | |
ACPI_UART_STOP_BITS_1 | |
ACPI_UART_STOP_BITS_1_5 | |
ACPI_UART_STOP_BITS_2 |
Definition at line 354 of file acpi_device.h.
void acpi_device_add_power_res | ( | const struct acpi_power_res_params * | params | ) |
Definition at line 646 of file device.c.
References ACPI_NAME_BUFFER_SIZE, ACPI_POWER_RESOURCE_STATUS_ON_OP, acpigen_disable_tx_gpio(), acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_enable_tx_gpio(), acpigen_pop_len(), acpigen_write_if_end(), acpigen_write_if_lequal_op_op(), acpigen_write_method_serialized(), acpigen_write_power_res(), acpigen_write_power_res_STA(), acpigen_write_return_op(), acpigen_write_sleep(), acpigen_write_STA(), acpigen_write_store(), ARRAY_SIZE, LOCAL0_OP, params, snprintf(), and ZERO_OP.
Referenced by pcie_rtd3_device_acpi_fill_ssdt(), spi_acpi_fill_ssdt_generator(), uart_acpi_fill_ssdt(), and usb_acpi_fill_ssdt_generator().
const char* acpi_device_hid | ( | const struct device * | dev | ) |
Definition at line 78 of file device.c.
References NULL, and device::ops.
Referenced by superio_common_fill_ssdt_generator().
const char* acpi_device_name | ( | const struct device * | dev | ) |
Definition at line 49 of file device.c.
References device::bus, bus::dev, DEVICE_PATH_ROOT, name, NULL, device::ops, device::path, and device_path::type.
Referenced by acpi_device_path_fill(), acpi_device_write_gpp_pci_dev(), acpi_device_write_pci_dev(), alc1015_fill_ssdt(), crosec_audio_codec_fill_ssdt(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gpio_keys_fill_ssdt_generator(), i2c_gpiomux_bus_fill_ssdt(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_ssdt(), intel_soundwire_fill_ssdt(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), nau8315_fill_ssdt(), pcie_generic_acpi_name(), pcie_generic_fill_ssdt(), pcie_rtd3_acpi_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), soc_pmc_fill_ssdt(), soundwire_alc1308_fill_ssdt(), soundwire_alc5682_fill_ssdt(), soundwire_alc711_fill_ssdt(), soundwire_max98373_fill_ssdt(), spi_acpi_fill_ssdt_generator(), superio_common_fill_ssdt_generator(), thermal_zone_fill_ssdt(), uart_acpi_fill_ssdt(), write_i2c_camera_device(), write_open_dptf_device(), write_pci_camera_device(), and xhci_fill_ssdt().
const char* acpi_device_path | ( | const struct device * | dev | ) |
Definition at line 144 of file device.c.
References acpi_device_path_fill(), buf, DEVICE_PATH_MAX, and NULL.
Referenced by acp_fill_wov_method(), acpi_device_uid(), acpi_write_dbg2_pci_uart(), add_device_ref(), alc1015_fill_ssdt(), camera_fill_sensor(), camera_fill_ssdt(), crb_tpm_fill_ssdt(), crosec_audio_codec_fill_ssdt(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), dw_i2c_acpi_fill_ssdt(), fill_ssdt_typec_device(), generate_atif(), gpio_keys_fill_ssdt_generator(), h8_dsdt_scope(), h8_ssdt_generator(), hda_soc_ssdt_quirks(), i2c_gpiomux_bus_fill_ssdt(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_ssdt(), intel_acpi_gen_def_acpi_pirq(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), nau8315_fill_ssdt(), pcie_generic_fill_ssdt(), pcie_rtd3_acpi_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), soc_pmc_fill_ssdt(), spi_acpi_fill_ssdt_generator(), uart_acpi_fill_ssdt(), uart_inject_ssdt(), usb_acpi_fill_ssdt_generator(), wifi_cnvi_fill_ssdt(), wifi_pcie_fill_ssdt(), and wwan_fm350gl_acpi_fill_ssdt().
const char* acpi_device_path_join | ( | const struct device * | dev, |
const char * | name | ||
) |
Definition at line 172 of file device.c.
References acpi_device_path_fill(), buf, DEVICE_PATH_MAX, name, NULL, snprintf(), and strlen().
Referenced by get_pmc_ipcs_method(), mainboard_generate_shutdown(), pmc_ipc_acpi_set_pci_clock(), thermal_zone_fill_ssdt(), wilco_ec_fill_ssdt_generator(), write_charger_PPPC(), write_charger_SPPC(), write_dptf_OSC(), write_fan_fsl(), write_fan_fst(), write_thermal_methods(), wwan_fm350gl_acpi_method_fhrf(), wwan_fm350gl_acpi_method_mrst_rst(), wwan_fm350gl_acpi_method_rst(), and wwan_fm350gl_acpi_method_shrf().
const char* acpi_device_scope | ( | const struct device * | dev | ) |
Definition at line 158 of file device.c.
References acpi_device_path_fill(), buf, device::bus, bus::dev, DEVICE_PATH_MAX, and NULL.
Referenced by acpi_device_write_gpp_pci_dev(), acpi_device_write_pci_dev(), acpi_fill_root_complex_tom(), alc1015_fill_ssdt(), camera_fill_ssdt(), crosec_audio_codec_fill_ssdt(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gfx_fill_ssdt_generator(), gpio_keys_fill_ssdt_generator(), i2c_gpiomux_bus_fill_ssdt(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_ssdt(), intel_soundwire_fill_ssdt(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), nau8315_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), soc_pmc_fill_ssdt(), soundwire_alc1308_fill_ssdt(), soundwire_alc5682_fill_ssdt(), soundwire_alc711_fill_ssdt(), soundwire_max98373_fill_ssdt(), spi_acpi_fill_ssdt_generator(), superio_common_fill_ssdt_generator(), thermal_zone_fill_ssdt(), uart_acpi_fill_ssdt(), and xhci_fill_ssdt().
int acpi_device_status | ( | const struct device * | dev | ) |
Definition at line 193 of file device.c.
References ACPI_STATUS_DEVICE_ALL_OFF, ACPI_STATUS_DEVICE_ALL_ON, ACPI_STATUS_DEVICE_HIDDEN_ON, device::enabled, and device::hidden.
Referenced by acpi_device_write_gpp_pci_dev(), acpi_device_write_pci_dev(), alc1015_fill_ssdt(), crosec_audio_codec_fill_ssdt(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), i2c_gpiomux_bus_fill_ssdt(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_ssdt(), intel_soundwire_fill_ssdt(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), nau8315_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), soundwire_alc1308_fill_ssdt(), soundwire_alc5682_fill_ssdt(), soundwire_alc711_fill_ssdt(), soundwire_max98373_fill_ssdt(), spi_acpi_fill_ssdt_generator(), uart_acpi_fill_ssdt(), uart_inject_ssdt(), write_i2c_camera_device(), and xhci_fill_ssdt().
Definition at line 99 of file device.c.
References acpi_device_path(), CRC, crc32_byte(), device::path, and strlen().
Referenced by acpi_device_write_uid().
Definition at line 258 of file device.c.
References ACPI_DESCRIPTOR_GPIO, acpi_device_fill_from_len(), acpi_device_fill_len(), acpi_device_write_zero_len(), ACPI_GPIO_REVISION_ID, ACPI_GPIO_TYPE_INTERRUPT, ACPI_GPIO_TYPE_IO, ACPI_IRQ_ACTIVE_BOTH, ACPI_IRQ_ACTIVE_HIGH, ACPI_IRQ_ACTIVE_LOW, ACPI_IRQ_EDGE_TRIGGERED, ACPI_IRQ_SHARED, ACPI_IRQ_WAKE, acpigen_emit_byte(), acpigen_emit_string(), acpigen_emit_word(), acpigen_get_current(), gpio_acpi_path(), gpio_acpi_pin(), and gpio::pull.
Referenced by alc1015_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gpio_keys_fill_ssdt_generator(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_crs_dsd(), max98357a_fill_ssdt(), nau8315_fill_ssdt(), rt5663_fill_ssdt(), spi_acpi_write_gpio(), uart_acpi_fill_ssdt(), uart_acpi_write_gpio(), and usb_acpi_write_gpio().
Definition at line 399 of file device.c.
References ACPI_DESCRIPTOR_SERIAL_BUS, acpi_device_fill_len(), acpi_device_write_zero_len(), ACPI_I2C_SERIAL_BUS_REVISION_ID, ACPI_I2C_TYPE_SPECIFIC_REVISION_ID, ACPI_SERIAL_BUS_TYPE_I2C, acpigen_emit_byte(), acpigen_emit_dword(), acpigen_emit_string(), acpigen_emit_word(), acpi_i2c::address, acpi_i2c::mode_10bit, acpi_i2c::resource, and acpi_i2c::speed.
Referenced by cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), and write_i2c_camera_device().
Definition at line 209 of file device.c.
References ACPI_DESCRIPTOR_INTERRUPT, acpi_device_fill_len(), acpi_device_write_zero_len(), ACPI_IRQ_ACTIVE_BOTH, ACPI_IRQ_ACTIVE_LOW, ACPI_IRQ_EDGE_TRIGGERED, ACPI_IRQ_SHARED, ACPI_IRQ_WAKE, acpigen_emit_byte(), acpigen_emit_dword(), acpi_irq::mode, acpi_irq::pin, acpi_irq::polarity, acpi_irq::shared, and acpi_irq::wake.
Referenced by cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), rt5663_fill_ssdt(), spi_acpi_fill_ssdt_generator(), and uart_acpi_fill_ssdt().
Definition at line 1168 of file device.c.
References acpi_device_name(), acpi_device_scope(), acpi_device_status(), acpigen_pop_len(), acpigen_write_ADR_pci_device(), acpigen_write_device(), acpigen_write_scope(), acpigen_write_STA(), assert, DEVICE_PATH_PCI, name, device::path, and device_path::type.
Referenced by graphics_fill_ssdt().
Definition at line 456 of file device.c.
References ACPI_DESCRIPTOR_SERIAL_BUS, acpi_device_fill_len(), acpi_device_write_zero_len(), ACPI_SERIAL_BUS_TYPE_SPI, ACPI_SPI_SERIAL_BUS_REVISION_ID, ACPI_SPI_TYPE_SPECIFIC_REVISION_ID, acpigen_emit_byte(), acpigen_emit_dword(), acpigen_emit_string(), acpigen_emit_word(), acpi_spi::clock_phase, acpi_spi::clock_polarity, acpi_spi::data_bit_length, acpi_spi::device_select, acpi_spi::device_select_polarity, acpi_spi::resource, acpi_spi::speed, SPI_3_WIRE_MODE, SPI_POLARITY_HIGH, and acpi_spi::wire_mode.
Referenced by spi_acpi_fill_ssdt_generator().
Definition at line 528 of file device.c.
References ACPI_DESCRIPTOR_SERIAL_BUS, acpi_device_fill_len(), acpi_device_write_zero_len(), ACPI_SERIAL_BUS_TYPE_UART, ACPI_UART_SERIAL_BUS_REVISION_ID, ACPI_UART_TYPE_SPECIFIC_REVISION_ID, acpigen_emit_byte(), acpigen_emit_dword(), acpigen_emit_string(), acpigen_emit_word(), BIT, acpi_uart::data_bits, acpi_uart::endian, acpi_uart::flow_control, acpi_uart::initial_baud_rate, acpi_uart::lines_in_use, acpi_uart::parity, acpi_uart::resource, acpi_uart::rx_fifo_bytes, acpi_uart::stop_bits, and acpi_uart::tx_fifo_bytes.
Referenced by uart_acpi_fill_ssdt().
Definition at line 203 of file device.c.
References acpi_device_uid(), and acpigen_write_name_integer().
Referenced by crb_tpm_fill_ssdt(), superio_common_fill_ssdt_generator(), and wifi_ssdt_write_device().
Definition at line 1052 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_ARRAY, ACPI_DP_TYPE_TABLE, acpi_dp::array, acpi_dp::name, NULL, and acpi_dp::type.
Referenced by acpi_dp_add_gpio_array(), acpi_dp_add_integer_array(), acpi_dp_add_property_list(), camera_fill_cio2(), camera_fill_sensor(), i2c_sx9310_fill_ssdt(), ssdt_generate_keymap(), and ssdt_generate_physmap().
struct acpi_dp* acpi_dp_add_child | ( | struct acpi_dp * | dp, |
const char * | name, | ||
struct acpi_dp * | child | ||
) |
Definition at line 1019 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_CHILD, ACPI_DP_TYPE_TABLE, acpi_dp::child, name, acpi_dp::name, NULL, acpi_dp::string, and acpi_dp::type.
Referenced by acpi_dp_add_property_list(), camera_fill_cio2(), camera_fill_sensor(), gpio_keys_fill_ssdt_generator(), soundwire_gen_codec(), soundwire_gen_controller(), soundwire_gen_dp0(), and soundwire_gen_dpn().
struct acpi_dp* acpi_dp_add_gpio | ( | struct acpi_dp * | dp, |
const char * | name, | ||
const char * | ref, | ||
int | index, | ||
int | pin, | ||
int | active_low | ||
) |
Definition at line 1142 of file device.c.
References acpi_dp_add_gpio_array(), acpi_gpio_res_params::active_low, acpi_gpio_res_params::index, name, acpi_gpio_res_params::pin, and acpi_gpio_res_params::ref.
Referenced by alc1015_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gpio_keys_add_child_node(), i2s_machine_dev_fill_crs_dsd(), max98357a_fill_ssdt(), nau8315_fill_ssdt(), rt5663_fill_ssdt(), spi_acpi_fill_ssdt_generator(), uart_acpi_fill_ssdt(), and usb_acpi_fill_ssdt_generator().
struct acpi_dp* acpi_dp_add_gpio_array | ( | struct acpi_dp * | dp, |
const char * | name, | ||
const struct acpi_gpio_res_params * | params, | ||
size_t | param_count | ||
) |
Definition at line 1088 of file device.c.
References acpi_dp_add_array(), acpi_dp_add_integer(), acpi_dp_add_reference(), acpi_dp_new_table(), name, NULL, and params.
Referenced by acpi_dp_add_gpio(), and i2c_gpiomux_mux_fill_ssdt().
Definition at line 977 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_INTEGER, name, NULL, and value.
Referenced by acpi_dp_add_gpio_array(), acpi_dp_add_integer_array(), acpi_dp_add_property_list(), acpigen_write_typec_connector(), camera_fill_cio2(), camera_fill_nvm(), camera_fill_sensor(), camera_fill_vcm(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gpio_keys_add_child_node(), gpio_keys_fill_ssdt_generator(), i2c_sx9310_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), intel_soundwire_link_prop_cb(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), pcie_generic_fill_ssdt(), pcie_rtd3_acpi_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), soundwire_gen_interface_revision(), soundwire_gen_multilane(), ssdt_generate_keymap(), ssdt_generate_physmap(), wifi_ssdt_write_properties(), and wwan_fm350gl_acpi_fill_ssdt().
struct acpi_dp* acpi_dp_add_integer_array | ( | struct acpi_dp * | dp, |
const char * | name, | ||
const uint64_t * | array, | ||
int | len | ||
) |
Definition at line 1066 of file device.c.
References acpi_dp_add_array(), acpi_dp_add_integer(), acpi_dp_new_table(), acpi_dp::array, name, and NULL.
Referenced by cs42l42_fill_ssdt().
Definition at line 1036 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_PACKAGE, ACPI_DP_TYPE_TABLE, acpi_dp::name, NULL, and acpi_dp::type.
Referenced by pcie_rtd3_acpi_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), and wifi_ssdt_write_properties().
size_t acpi_dp_add_property_list | ( | struct acpi_dp * | dp, |
const struct acpi_dp * | property_list, | ||
size_t | property_count | ||
) |
Definition at line 935 of file device.c.
References acpi_dp_add_array(), acpi_dp_add_child(), acpi_dp_add_integer(), acpi_dp_add_reference(), acpi_dp_add_string(), ACPI_DP_TYPE_ARRAY, ACPI_DP_TYPE_CHILD, ACPI_DP_TYPE_INTEGER, ACPI_DP_TYPE_REFERENCE, ACPI_DP_TYPE_STRING, ACPI_DP_TYPE_UNKNOWN, acpi_dp::array, acpi_dp::child, acpi_dp::integer, acpi_dp::name, acpi_dp::string, and acpi_dp::type.
struct acpi_dp* acpi_dp_add_reference | ( | struct acpi_dp * | dp, |
const char * | name, | ||
const char * | reference | ||
) |
Definition at line 1005 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_REFERENCE, name, and NULL.
Referenced by acpi_dp_add_gpio_array(), acpi_dp_add_property_list(), add_device_ref(), camera_fill_cio2(), and camera_fill_sensor().
Definition at line 991 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_STRING, name, NULL, and acpi_dp::string.
Referenced by acpi_dp_add_property_list(), add_port_caps(), add_port_location(), camera_fill_nvm(), camera_fill_vcm(), gpio_keys_add_child_node(), gpio_keys_fill_ssdt_generator(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), max98390_fill_ssdt(), soundwire_gen_multilane(), spi_acpi_fill_ssdt_generator(), and uart_acpi_fill_ssdt().
struct acpi_dp* acpi_dp_new_table | ( | const char * | ref | ) |
Definition at line 930 of file device.c.
References acpi_dp_new(), ACPI_DP_TYPE_TABLE, name, and NULL.
Referenced by acpi_dp_add_gpio_array(), acpi_dp_add_integer_array(), acpigen_ps2_keyboard_dsd(), acpigen_write_typec_connector(), alc1015_fill_ssdt(), camera_fill_cio2(), camera_fill_nvm(), camera_fill_sensor(), camera_fill_vcm(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gpio_keys_add_child_node(), gpio_keys_fill_ssdt_generator(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_crs_dsd(), intel_soundwire_fill_ssdt(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), nau8315_fill_ssdt(), pcie_generic_fill_ssdt(), pcie_rtd3_acpi_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), soundwire_alc1308_fill_ssdt(), soundwire_alc5682_fill_ssdt(), soundwire_alc711_fill_ssdt(), soundwire_gen_codec(), soundwire_gen_controller(), soundwire_gen_dp0(), soundwire_gen_dpn(), soundwire_max98373_fill_ssdt(), spi_acpi_fill_ssdt_generator(), ssdt_generate_keymap(), ssdt_generate_physmap(), uart_acpi_fill_ssdt(), usb_acpi_fill_ssdt_generator(), wifi_ssdt_write_properties(), and wwan_fm350gl_acpi_fill_ssdt().
Definition at line 898 of file device.c.
References acpi_dp_free(), and acpi_dp_write_().
Referenced by acpigen_ps2_keyboard_dsd(), acpigen_write_typec_connector(), alc1015_fill_ssdt(), camera_fill_cio2(), camera_fill_nvm(), camera_fill_sensor(), camera_fill_vcm(), crosec_i2c_tunnel_fill_ssdt(), cs35l53_fill_ssdt(), cs42l42_fill_ssdt(), gpio_keys_fill_ssdt_generator(), i2c_gpiomux_mux_fill_ssdt(), i2c_sx9310_fill_ssdt(), i2c_sx9324_fill_ssdt(), i2c_sx9360_fill_ssdt(), i2c_tpm_fill_ssdt(), i2s_machine_dev_fill_crs_dsd(), intel_soundwire_fill_ssdt(), max98357a_fill_ssdt(), max98373_fill_ssdt(), max98390_fill_ssdt(), max98927_fill_ssdt(), nau8315_fill_ssdt(), pcie_generic_fill_ssdt(), pcie_rtd3_acpi_fill_ssdt(), pcie_rtd3_device_acpi_fill_ssdt(), rt1011_fill_ssdt(), rt5663_fill_ssdt(), soundwire_alc1308_fill_ssdt(), soundwire_alc5682_fill_ssdt(), soundwire_alc711_fill_ssdt(), soundwire_max98373_fill_ssdt(), spi_acpi_fill_ssdt_generator(), uart_acpi_fill_ssdt(), usb_acpi_fill_ssdt_generator(), wifi_ssdt_write_properties(), and wwan_fm350gl_acpi_fill_ssdt().