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

Go to the source code of this file.

Macros

#define RT1011_ACPI_HID   "10EC1011"
 
#define RT1011_DP_INT(key, val)   acpi_dp_add_integer(dp, "realtek," key, (val))
 

Functions

static void rt1011_fill_ssdt (const struct device *dev)
 
static const char * rt1011_acpi_name (const struct device *dev)
 
static void rt1011_enable (struct device *dev)
 

Variables

static struct device_operations rt1011_ops
 
struct chip_operations drivers_i2c_rt1011_ops
 

Macro Definition Documentation

◆ RT1011_ACPI_HID

#define RT1011_ACPI_HID   "10EC1011"

Definition at line 13 of file rt1011.c.

◆ RT1011_DP_INT

#define RT1011_DP_INT (   key,
  val 
)    acpi_dp_add_integer(dp, "realtek," key, (val))

Definition at line 15 of file rt1011.c.

Function Documentation

◆ rt1011_acpi_name()

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

Definition at line 72 of file rt1011.c.

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

Here is the call graph for this function:

◆ rt1011_enable()

static void rt1011_enable ( struct device dev)
static

Definition at line 91 of file rt1011.c.

◆ rt1011_fill_ssdt()

Variable Documentation

◆ drivers_i2c_rt1011_ops

struct chip_operations drivers_i2c_rt1011_ops
Initial value:
= {
.enable_dev = rt1011_enable
}
static void rt1011_enable(struct device *dev)
Definition: rt1011.c:91

Definition at line 91 of file rt1011.c.

◆ rt1011_ops

struct device_operations rt1011_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = rt1011_acpi_name,
.acpi_fill_ssdt = rt1011_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 * rt1011_acpi_name(const struct device *dev)
Definition: rt1011.c:72
static void rt1011_fill_ssdt(const struct device *dev)
Definition: rt1011.c:17

Definition at line 72 of file rt1011.c.