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

Go to the source code of this file.

Functions

static int spi_acpi_get_bus (const struct device *dev)
 
static bool spi_acpi_add_gpios_to_crs (struct drivers_spi_acpi_config *config)
 
static int spi_acpi_write_gpio (struct acpi_gpio *gpio, int *curr_index)
 
static void spi_acpi_fill_ssdt_generator (const struct device *dev)
 
static const char * spi_acpi_name (const struct device *dev)
 
static void spi_acpi_enable (struct device *dev)
 

Variables

static struct device_operations spi_acpi_ops
 
struct chip_operations drivers_spi_acpi_ops
 

Function Documentation

◆ spi_acpi_add_gpios_to_crs()

static bool spi_acpi_add_gpios_to_crs ( struct drivers_spi_acpi_config config)
static

Definition at line 31 of file acpi.c.

References config.

Referenced by spi_acpi_fill_ssdt_generator().

Here is the caller graph for this function:

◆ spi_acpi_enable()

static void spi_acpi_enable ( struct device dev)
static

Definition at line 197 of file acpi.c.

◆ spi_acpi_fill_ssdt_generator()

◆ spi_acpi_get_bus()

static int spi_acpi_get_bus ( const struct device dev)
static

Definition at line 13 of file acpi.c.

References device::bus, bus::dev, spi_bus_operations::dev_to_bus, ops, device::ops, and device_operations::ops_spi_bus.

Referenced by spi_acpi_fill_ssdt_generator(), and spi_acpi_name().

Here is the caller graph for this function:

◆ spi_acpi_name()

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

Definition at line 177 of file acpi.c.

References device::chip_info, config, name, snprintf(), and spi_acpi_get_bus().

Here is the call graph for this function:

◆ spi_acpi_write_gpio()

static int spi_acpi_write_gpio ( struct acpi_gpio gpio,
int *  curr_index 
)
static

Definition at line 46 of file acpi.c.

References acpi_device_write_gpio().

Referenced by spi_acpi_fill_ssdt_generator().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ drivers_spi_acpi_ops

struct chip_operations drivers_spi_acpi_ops
Initial value:
= {
.enable_dev = spi_acpi_enable
}
static void spi_acpi_enable(struct device *dev)
Definition: acpi.c:197

Definition at line 197 of file acpi.c.

◆ spi_acpi_ops

struct device_operations spi_acpi_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = spi_acpi_name,
.acpi_fill_ssdt = spi_acpi_fill_ssdt_generator,
}
static void spi_acpi_fill_ssdt_generator(const struct device *dev)
Definition: acpi.c:60
static const char * spi_acpi_name(const struct device *dev)
Definition: acpi.c:177
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 177 of file acpi.c.