coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sx9310.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 <string.h>
#include "chip.h"
Include dependency graph for sx9310.c:

Go to the source code of this file.

Macros

#define I2C_SX9310_ACPI_ID   "STH9310"
 
#define I2C_SX9310_ACPI_NAME   "Semtech SX9310"
 

Functions

static void i2c_sx9310_fill_ssdt (const struct device *dev)
 
static const char * i2c_sx9310_acpi_name (const struct device *dev)
 
static void i2c_sx9310_enable (struct device *dev)
 

Variables

static const char *const i2c_sx9310_resolution []
 
static struct device_operations i2c_sx9310_ops
 
struct chip_operations drivers_i2c_sx9310_ops
 

Macro Definition Documentation

◆ I2C_SX9310_ACPI_ID

#define I2C_SX9310_ACPI_ID   "STH9310"

Definition at line 12 of file sx9310.c.

◆ I2C_SX9310_ACPI_NAME

#define I2C_SX9310_ACPI_NAME   "Semtech SX9310"

Definition at line 13 of file sx9310.c.

Function Documentation

◆ i2c_sx9310_acpi_name()

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

Definition at line 103 of file sx9310.c.

References i2c_path::device, device_path::i2c, name, device::path, and snprintf().

Here is the call graph for this function:

◆ i2c_sx9310_enable()

static void i2c_sx9310_enable ( struct device dev)
static

Definition at line 118 of file sx9310.c.

◆ i2c_sx9310_fill_ssdt()

Variable Documentation

◆ drivers_i2c_sx9310_ops

struct chip_operations drivers_i2c_sx9310_ops
Initial value:
= {
.enable_dev = i2c_sx9310_enable
}
static void i2c_sx9310_enable(struct device *dev)
Definition: sx9310.c:118

Definition at line 118 of file sx9310.c.

◆ i2c_sx9310_ops

struct device_operations i2c_sx9310_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = i2c_sx9310_acpi_name,
.acpi_fill_ssdt = i2c_sx9310_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 const char * i2c_sx9310_acpi_name(const struct device *dev)
Definition: sx9310.c:103
static void i2c_sx9310_fill_ssdt(const struct device *dev)
Definition: sx9310.c:26

Definition at line 103 of file sx9310.c.

◆ i2c_sx9310_resolution

const char* const i2c_sx9310_resolution[]
static
Initial value:
= {
[SX9310_COARSEST] = "coarsest",
[SX9310_VERY_COARSE] = "very-coarse",
[SX9310_COARSE] = "coarse",
[SX9310_MEDIUM_COARSE] = "medium-coarse",
[SX9310_MEDIUM] = "medium",
[SX9310_FINE] = "fine",
[SX9310_VERY_FINE] = "very-fine",
[SX9310_FINEST] = "finest",
}
@ SX9310_VERY_COARSE
Definition: chip.h:13
@ SX9310_FINEST
Definition: chip.h:19
@ SX9310_VERY_FINE
Definition: chip.h:18
@ SX9310_COARSE
Definition: chip.h:14
@ SX9310_MEDIUM_COARSE
Definition: chip.h:15
@ SX9310_MEDIUM
Definition: chip.h:16
@ SX9310_FINE
Definition: chip.h:17
@ SX9310_COARSEST
Definition: chip.h:12

Definition at line 15 of file sx9310.c.

Referenced by i2c_sx9310_fill_ssdt().