coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpi_soundwire.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __ACPI_ACPI_SOUNDWIRE_H__
4 #define __ACPI_ACPI_SOUNDWIRE_H__
5 
6 #include <acpi/acpi_device.h>
7 #include <device/soundwire.h>
8 
9 /**
10  * soundwire_dp_prop_cb() - Callback to add custom data port properties.
11  * @dsd: ACPI Device Property handle for this data port.
12  * @port_id: Data Port ID from 0-14.
13  * @codec: Properties that were passed to soundwire_gen_codec().
14  */
15 typedef void soundwire_dp_prop_cb(struct acpi_dp *dsd, unsigned int port_id,
16  const struct soundwire_codec *codec);
17 
18 /**
19  * soundwire_gen_codec() - Generate SoundWire properties for codec device.
20  * @dsd: ACPI Device Property handle.
21  * @prop: Properties for codec which includes all other properties.
22  * @dp_prop_cb: Callback to allow custom codec properties.
23  */
24 void soundwire_gen_codec(struct acpi_dp *dsd, const struct soundwire_codec *codec,
25  soundwire_dp_prop_cb dp_prop_cb);
26 
27 /**
28  * soundwire_link_prop_cb() - Callback to add custom link properties.
29  * @dsd: ACPI Device Property handle for master link.
30  * @link_id: Link number for this master.
31  * @controller: Properties that were passed to soundwire_gen_controller().
32  */
33 typedef void soundwire_link_prop_cb(struct acpi_dp *dsd, unsigned int link_id,
34  const struct soundwire_controller *controller);
35 
36 /**
37  * soundwire_gen_controller() - Generate SoundWire properties for master links.
38  * @dsd: ACPI Device Property handle for controller.
39  * @prop: Properties for controller which includes all other properties.
40  * @link_prop_cb: Callback to allow custom link properties.
41  */
42 void soundwire_gen_controller(struct acpi_dp *dsd, const struct soundwire_controller *prop,
43  soundwire_link_prop_cb link_prop_cb);
44 
45 #endif /* __ACPI_ACPI_SOUNDWIRE_H__ */
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.
Definition: soundwire.c:318
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.
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.
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.
Definition: soundwire.c:338
struct soundwire_codec - Contains all configuration for a SoundWire codec slave device.
Definition: soundwire.h:419
struct soundwire_controller - SoundWire controller properties.
Definition: soundwire.h:127