coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sx9360.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 sx9360.c:

Go to the source code of this file.

Macros

#define I2C_SX9360_ACPI_ID   "STH9360"
 
#define I2C_SX9360_CHIP_NAME   "Semtech SX9360"
 

Functions

static void i2c_sx9360_fill_ssdt (const struct device *dev)
 
static const char * i2c_sx9360_acpi_name (const struct device *dev)
 
static void i2c_sx9360_enable (struct device *dev)
 

Variables

static struct device_operations i2c_sx9360_ops
 
struct chip_operations drivers_i2c_sx9360_ops
 

Macro Definition Documentation

◆ I2C_SX9360_ACPI_ID

#define I2C_SX9360_ACPI_ID   "STH9360"

Definition at line 12 of file sx9360.c.

◆ I2C_SX9360_CHIP_NAME

#define I2C_SX9360_CHIP_NAME   "Semtech SX9360"

Definition at line 13 of file sx9360.c.

Function Documentation

◆ i2c_sx9360_acpi_name()

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

Definition at line 76 of file sx9360.c.

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

Here is the call graph for this function:

◆ i2c_sx9360_enable()

static void i2c_sx9360_enable ( struct device dev)
static

Definition at line 91 of file sx9360.c.

◆ i2c_sx9360_fill_ssdt()

Variable Documentation

◆ drivers_i2c_sx9360_ops

struct chip_operations drivers_i2c_sx9360_ops
Initial value:
= {
.enable_dev = i2c_sx9360_enable
}
static void i2c_sx9360_enable(struct device *dev)
Definition: sx9360.c:91

Definition at line 91 of file sx9360.c.

◆ i2c_sx9360_ops

struct device_operations i2c_sx9360_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = i2c_sx9360_acpi_name,
.acpi_fill_ssdt = i2c_sx9360_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_sx9360_acpi_name(const struct device *dev)
Definition: sx9360.c:76
static void i2c_sx9360_fill_ssdt(const struct device *dev)
Definition: sx9360.c:15

Definition at line 76 of file sx9360.c.