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

Go to the source code of this file.

Macros

#define MAX98373_ACPI_NAME   "MAXI"
 
#define MAX98373_ACPI_HID   "MX98373"
 

Functions

static void max98373_fill_ssdt (const struct device *dev)
 
static const char * max98373_acpi_name (const struct device *dev)
 
static void max98373_enable (struct device *dev)
 

Variables

static struct device_operations max98373_ops
 
struct chip_operations drivers_i2c_max98373_ops
 

Macro Definition Documentation

◆ MAX98373_ACPI_HID

#define MAX98373_ACPI_HID   "MX98373"

Definition at line 12 of file max98373.c.

◆ MAX98373_ACPI_NAME

#define MAX98373_ACPI_NAME   "MAXI"

Definition at line 11 of file max98373.c.

Function Documentation

◆ max98373_acpi_name()

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

Definition at line 64 of file max98373.c.

References device::chip_info, config, and MAX98373_ACPI_NAME.

◆ max98373_enable()

static void max98373_enable ( struct device dev)
static

Definition at line 81 of file max98373.c.

◆ max98373_fill_ssdt()

Variable Documentation

◆ drivers_i2c_max98373_ops

struct chip_operations drivers_i2c_max98373_ops
Initial value:
= {
.enable_dev = max98373_enable
}
static void max98373_enable(struct device *dev)
Definition: max98373.c:81

Definition at line 81 of file max98373.c.

◆ max98373_ops

struct device_operations max98373_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = max98373_acpi_name,
.acpi_fill_ssdt = max98373_fill_ssdt,
}
static void max98373_fill_ssdt(const struct device *dev)
Definition: max98373.c:14
static const char * max98373_acpi_name(const struct device *dev)
Definition: max98373.c:64
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

Definition at line 64 of file max98373.c.