![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
#include <acpi/acpi_soundwire.h>
#include <commonlib/helpers.h>
#include <device/soundwire.h>
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | soundwire_name_map |
struct soundwire_name_map - Map ACPI name to SoundWire property name. More... | |
Macros | |
#define | SDW_PFX "mipi-sdw-" |
#define | SDW_INT(__key, __val) acpi_dp_add_integer(dsd, SDW_PFX __key, __val) |
#define | SDW_INT_ARRAY(__key, __val) acpi_dp_add_integer_array(dsd, SDW_PFX __key, __val, __val##_count) |
Variables | |
static const struct soundwire_name_map | bra_mode_names [] |
static const struct soundwire_name_map | audio_mode_names [] |
static const struct soundwire_name_map | dpn_source_names [] |
static const struct soundwire_name_map | dpn_sink_names [] |
static const struct soundwire_name_map | link_names [] |
static const char *const | multilane_names [] |
static const char *const | multilane_master_lane_names [] |
static const char *const | multilane_slave_link_names [] |
static const char *const | multilane_bus_holder_names [] |
#define SDW_INT | ( | __key, | |
__val | |||
) | acpi_dp_add_integer(dsd, SDW_PFX __key, __val) |
Definition at line 14 of file soundwire.c.
#define SDW_INT_ARRAY | ( | __key, | |
__val | |||
) | acpi_dp_add_integer_array(dsd, SDW_PFX __key, __val, __val##_count) |
Definition at line 18 of file soundwire.c.
#define SDW_PFX "mipi-sdw-" |
Definition at line 11 of file soundwire.c.
|
static |
Definition at line 220 of file soundwire.c.
References soundwire_audio_mode::bus_frequency_configs, soundwire_audio_mode::bus_frequency_configs_count, soundwire_audio_mode::glitchless_transitions, soundwire_audio_mode::max_bus_frequency, soundwire_audio_mode::max_sampling_frequency, soundwire_audio_mode::min_bus_frequency, soundwire_audio_mode::min_sampling_frequency, soundwire_audio_mode::prepare_channel_behavior, soundwire_audio_mode::sampling_frequency_configs, soundwire_audio_mode::sampling_frequency_configs_count, SDW_INT, SDW_INT_ARRAY, and SOUNDWIRE_MAX.
Referenced by soundwire_gen_codec().
|
static |
Definition at line 206 of file soundwire.c.
References soundwire_bra_mode::bus_frequency_configs, soundwire_bra_mode::bus_frequency_configs_count, soundwire_bra_mode::max_bus_frequency, soundwire_bra_mode::max_data_per_frame, soundwire_bra_mode::min_bus_frequency, soundwire_bra_mode::min_us_between_transactions, SDW_INT, SDW_INT_ARRAY, and SOUNDWIRE_MAX.
Referenced by soundwire_gen_codec().
void soundwire_gen_codec | ( | struct acpi_dp * | dsd, |
const struct soundwire_codec * | codec, | ||
soundwire_dp_prop_cb | dp_prop_cb | ||
) |
soundwire_gen_codec() - Generate SoundWire properties for codec device.
@dsd: ACPI Device Property handle. @prop: Properties for codec which includes all other properties. @dp_prop_cb: Callback to allow custom codec properties.
Definition at line 338 of file soundwire.c.
References acpi_dp_add_child(), acpi_dp_new_table(), soundwire_codec::audio_mode, audio_mode_names, bra_mode_names, soundwire_codec::dp0, soundwire_codec::dp0_bra_mode, soundwire_codec::dpn, dpn_sink_names, dpn_source_names, soundwire_codec::multilane, name, soundwire_dpn_entry::port, soundwire_dpn_entry::sink, soundwire_codec::slave, soundwire_gen_audio_mode(), soundwire_gen_bra_mode(), soundwire_gen_dp0(), soundwire_gen_dpn(), soundwire_gen_multilane(), soundwire_gen_slave(), SOUNDWIRE_MAX_DPN, SOUNDWIRE_MAX_MODE, SOUNDWIRE_MIN_DPN, and soundwire_dpn_entry::source.
Referenced by soundwire_alc1308_fill_ssdt(), soundwire_alc5682_fill_ssdt(), soundwire_alc711_fill_ssdt(), and soundwire_max98373_fill_ssdt().
void soundwire_gen_controller | ( | struct acpi_dp * | dsd, |
const struct soundwire_controller * | prop, | ||
soundwire_link_prop_cb | link_prop_cb | ||
) |
soundwire_gen_controller() - Generate SoundWire properties for master links.
@dsd: ACPI Device Property handle for controller. @prop: Properties for controller which includes all other properties. @link_prop_cb: Callback to allow custom link properties.
Definition at line 318 of file soundwire.c.
References acpi_dp_add_child(), acpi_dp_new_table(), link_names, soundwire_controller::master_list, soundwire_controller::master_list_count, SDW_INT, soundwire_gen_interface_revision(), soundwire_gen_link(), and SOUNDWIRE_MAX_LINK.
Referenced by intel_soundwire_fill_ssdt().
|
static |
Definition at line 246 of file soundwire.c.
References acpi_dp_add_child(), acpi_dp_new_table(), soundwire_dp0::bra_flow_controlled, soundwire_dp0::bra_imp_def_response_supported, soundwire_dp0::bra_mode_count, bra_mode_names, soundwire_dp0::bra_role_supported, soundwire_dp0::imp_def_bpt_supported, soundwire_dp0::imp_def_dp0_interrupts_supported, soundwire_dp0::port_max_wordlength, soundwire_dp0::port_min_wordlength, soundwire_dp0::port_wordlength_configs, soundwire_dp0::port_wordlength_configs_count, SDW_INT, SDW_INT_ARRAY, soundwire_dp0::simplified_channel_prepare_sm, SOUNDWIRE_MAX, and SOUNDWIRE_MAX_MODE.
Referenced by soundwire_gen_codec().
|
static |
Definition at line 272 of file soundwire.c.
References acpi_dp_add_child(), acpi_dp_new_table(), audio_mode_names, soundwire_dpn::block_packing_mode, soundwire_dpn::channel_combination_list, soundwire_dpn::channel_combination_list_count, soundwire_dpn::channel_number_list, soundwire_dpn::channel_number_list_count, soundwire_dpn::data_port_type, soundwire_dpn::imp_def_dpn_interrupts_supported, soundwire_dpn::max_async_buffer, soundwire_dpn::max_channel_number, soundwire_dpn::max_grouping_supported, soundwire_dpn::min_channel_number, soundwire_dpn::modes_supported, soundwire_dpn::port_audio_mode_count, soundwire_dpn::port_channelprepare_timeout, soundwire_dpn::port_encoding_type, soundwire_dpn::port_max_wordlength, soundwire_dpn::port_min_wordlength, soundwire_dpn::port_wordlength_configs, soundwire_dpn::port_wordlength_configs_count, SDW_INT, SDW_INT_ARRAY, soundwire_dpn::simplified_channelprepare_sm, SOUNDWIRE_MAX, and SOUNDWIRE_MAX_MODE.
Referenced by soundwire_gen_codec().
Definition at line 134 of file soundwire.c.
References acpi_dp_add_integer(), SDW_PFX, and SOUNDWIRE_SW_VERSION_1_0.
Referenced by soundwire_gen_controller(), soundwire_gen_multilane(), and soundwire_gen_slave().
|
static |
Definition at line 190 of file soundwire.c.
References soundwire_link::clock_frequencies_supported, soundwire_link::clock_frequencies_supported_count, soundwire_link::clock_stop_mode0_supported, soundwire_link::clock_stop_mode1_supported, soundwire_link::command_error_threshold, soundwire_link::default_frame_col_size, soundwire_link::default_frame_rate, soundwire_link::default_frame_row_size, soundwire_link::dynamic_frame_shape, SDW_INT, SDW_INT_ARRAY, and SOUNDWIRE_MAX.
Referenced by soundwire_gen_controller().
|
static |
Definition at line 164 of file soundwire.c.
References acpi_dp_add_integer(), acpi_dp_add_string(), soundwire_multilane_map::connection, soundwire_multilane_map::direction, soundwire_multilane_map::lane, soundwire_multilane::lane_bus_holder, soundwire_multilane::lane_bus_holder_count, soundwire_multilane::lane_mapping, soundwire_multilane::lane_mapping_count, MASTER_LANE, soundwire_multilane_map::lane_type::master_lane, multilane_bus_holder_names, multilane_master_lane_names, multilane_names, multilane_slave_link_names, name, soundwire_multilane_map::lane_type::slave_link, soundwire_gen_interface_revision(), and SOUNDWIRE_MAX_LANE.
Referenced by soundwire_gen_codec().
|
static |
Definition at line 139 of file soundwire.c.
References soundwire_slave::bank_delay_supported, soundwire_slave::clock_stop_mode1_supported, soundwire_slave::clockstopprepare_hard_reset_behavior, soundwire_slave::clockstopprepare_timeout, soundwire_slave::highPHY_capable, soundwire_slave::master_count, soundwire_slave::paging_supported, soundwire_slave::port15_read_behavior, SDW_INT, soundwire_slave::simplified_clockstopprepare_sm_supported, soundwire_slave::sink_port_list, soundwire_slave::slave_channelprepare_timeout, soundwire_gen_interface_revision(), soundwire_slave::source_port_list, soundwire_slave::test_mode_supported, and soundwire_slave::wake_up_unavailable.
Referenced by soundwire_gen_codec().
|
static |
Definition at line 1 of file soundwire.c.
Referenced by soundwire_gen_codec(), and soundwire_gen_dpn().
|
static |
Definition at line 1 of file soundwire.c.
Referenced by soundwire_gen_codec(), and soundwire_gen_dp0().
|
static |
|
static |
|
static |
Definition at line 1 of file soundwire.c.
Referenced by soundwire_gen_controller().
|
static |
Definition at line 123 of file soundwire.c.
Referenced by soundwire_gen_multilane().
|
static |
Definition at line 101 of file soundwire.c.
Referenced by soundwire_gen_multilane().
|
static |
Definition at line 90 of file soundwire.c.
Referenced by soundwire_gen_multilane().
|
static |