coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soundwire.c File Reference
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
#include <acpi/acpi_soundwire.h>
#include <commonlib/helpers.h>
#include <device/device.h>
#include <device/path.h>
#include <device/soundwire.h>
#include <stdbool.h>
#include "soundwire.h"
#include "chip.h"
Include dependency graph for soundwire.c:

Go to the source code of this file.

Functions

__weak int soc_fill_soundwire_controller (struct intel_soundwire_controller **controller)
 soc_fill_soundwire_controller() - Get SoundWire controller properties from the SoC. More...
 
static bool link_enabled (const struct device *dev, unsigned int link)
 
static void intel_soundwire_link_prop_cb (struct acpi_dp *dsd, unsigned int id, const struct soundwire_controller *controller)
 
static void intel_soundwire_fill_ssdt (const struct device *dev)
 
static const char * intel_soundwire_acpi_name (const struct device *dev)
 
static void intel_soundwire_enable (struct device *dev)
 

Variables

static struct device_operations intel_soundwire_ops
 
struct chip_operations drivers_intel_soundwire_ops
 

Function Documentation

◆ intel_soundwire_acpi_name()

static const char* intel_soundwire_acpi_name ( const struct device dev)
static

Definition at line 78 of file soundwire.c.

◆ intel_soundwire_enable()

static void intel_soundwire_enable ( struct device dev)
static

Definition at line 91 of file soundwire.c.

◆ intel_soundwire_fill_ssdt()

◆ intel_soundwire_link_prop_cb()

static void intel_soundwire_link_prop_cb ( struct acpi_dp dsd,
unsigned int  id,
const struct soundwire_controller controller 
)
static

◆ link_enabled()

static bool link_enabled ( const struct device dev,
unsigned int  link 
)
static

◆ soc_fill_soundwire_controller()

__weak int soc_fill_soundwire_controller ( struct intel_soundwire_controller **  controller)

soc_fill_soundwire_controller() - Get SoundWire controller properties from the SoC.

@controller: Properties to be filled by the SoC. Return zero for success, -1 if there was any error filling the properties.

Definition at line 15 of file soundwire.c.

Referenced by intel_soundwire_fill_ssdt().

Here is the caller graph for this function:

Variable Documentation

◆ drivers_intel_soundwire_ops

struct chip_operations drivers_intel_soundwire_ops
Initial value:
= {
.enable_dev = intel_soundwire_enable
}
static void intel_soundwire_enable(struct device *dev)
Definition: soundwire.c:91

Definition at line 91 of file soundwire.c.

◆ intel_soundwire_ops

struct device_operations intel_soundwire_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_fill_ssdt = intel_soundwire_fill_ssdt,
.scan_bus = scan_static_bus,
}
static const char * intel_soundwire_acpi_name(const struct device *dev)
Definition: soundwire.c:78
static void intel_soundwire_fill_ssdt(const struct device *dev)
Definition: soundwire.c:47
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
void scan_static_bus(struct device *bus)
Definition: root_device.c:89

Definition at line 78 of file soundwire.c.