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

Go to the source code of this file.

Macros

#define MAX98357A_ACPI_NAME   "MAXM"
 

Functions

static void max98357a_fill_ssdt (const struct device *dev)
 
static const char * max98357a_acpi_name (const struct device *dev)
 
static void max98357a_enable (struct device *dev)
 

Variables

static struct device_operations max98357a_ops
 
struct chip_operations drivers_generic_max98357a_ops
 

Macro Definition Documentation

◆ MAX98357A_ACPI_NAME

#define MAX98357A_ACPI_NAME   "MAXM"

Definition at line 11 of file max98357a.c.

Function Documentation

◆ max98357a_acpi_name()

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

Definition at line 62 of file max98357a.c.

References MAX98357A_ACPI_NAME.

◆ max98357a_enable()

static void max98357a_enable ( struct device dev)
static

Definition at line 74 of file max98357a.c.

◆ max98357a_fill_ssdt()

Variable Documentation

◆ drivers_generic_max98357a_ops

struct chip_operations drivers_generic_max98357a_ops
Initial value:
= {
.enable_dev = max98357a_enable
}
static void max98357a_enable(struct device *dev)
Definition: max98357a.c:74

Definition at line 74 of file max98357a.c.

◆ max98357a_ops

struct device_operations max98357a_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = max98357a_acpi_name,
.acpi_fill_ssdt = max98357a_fill_ssdt,
}
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
static void max98357a_fill_ssdt(const struct device *dev)
Definition: max98357a.c:13
static const char * max98357a_acpi_name(const struct device *dev)
Definition: max98357a.c:62

Definition at line 62 of file max98357a.c.