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

Go to the source code of this file.

Typedefs

typedef void soundwire_dp_prop_cb(struct acpi_dp *dsd, unsigned int port_id, const struct soundwire_codec *codec)
 soundwire_dp_prop_cb() - Callback to add custom data port properties. More...
 
typedef void soundwire_link_prop_cb(struct acpi_dp *dsd, unsigned int link_id, const struct soundwire_controller *controller)
 soundwire_link_prop_cb() - Callback to add custom link properties. More...
 

Functions

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. More...
 
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. More...
 

Typedef Documentation

◆ soundwire_dp_prop_cb

typedef void soundwire_dp_prop_cb(struct acpi_dp *dsd, unsigned int port_id, const struct soundwire_codec *codec)

soundwire_dp_prop_cb() - Callback to add custom data port properties.

@dsd: ACPI Device Property handle for this data port. @port_id: Data Port ID from 0-14. @codec: Properties that were passed to soundwire_gen_codec().

Definition at line 15 of file acpi_soundwire.h.

◆ soundwire_link_prop_cb

typedef void soundwire_link_prop_cb(struct acpi_dp *dsd, unsigned int link_id, const struct soundwire_controller *controller)

soundwire_link_prop_cb() - Callback to add custom link properties.

@dsd: ACPI Device Property handle for master link. @link_id: Link number for this master. @controller: Properties that were passed to soundwire_gen_controller().

Definition at line 33 of file acpi_soundwire.h.

Function Documentation

◆ 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_controller()

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().

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