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

Go to the source code of this file.

Macros

#define CROS_EC_I2C_TUNNEL_HID   "GOOG0012"
 
#define CROS_EC_I2C_TUNNEL_DDN   "Cros EC I2C Tunnel"
 

Functions

static void crosec_i2c_tunnel_fill_ssdt (const struct device *dev)
 
static const char * crosec_i2c_tunnel_acpi_name (const struct device *dev)
 
static void crosec_i2c_tunnel_enable (struct device *dev)
 

Variables

static struct device_operations crosec_i2c_tunnel_ops
 
struct chip_operations ec_google_chromeec_i2c_tunnel_ops
 

Macro Definition Documentation

◆ CROS_EC_I2C_TUNNEL_DDN

#define CROS_EC_I2C_TUNNEL_DDN   "Cros EC I2C Tunnel"

Definition at line 12 of file i2c_tunnel.c.

◆ CROS_EC_I2C_TUNNEL_HID

#define CROS_EC_I2C_TUNNEL_HID   "GOOG0012"

Definition at line 11 of file i2c_tunnel.c.

Function Documentation

◆ crosec_i2c_tunnel_acpi_name()

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

Definition at line 42 of file i2c_tunnel.c.

References device::chip_info, device_path::generic, generic_path::id, name, ec_google_chromeec_i2c_tunnel_config::name, device::path, and snprintf().

Here is the call graph for this function:

◆ crosec_i2c_tunnel_enable()

static void crosec_i2c_tunnel_enable ( struct device dev)
static

Definition at line 62 of file i2c_tunnel.c.

References crosec_i2c_tunnel_ops, and device::ops.

◆ crosec_i2c_tunnel_fill_ssdt()

Variable Documentation

◆ crosec_i2c_tunnel_ops

struct device_operations crosec_i2c_tunnel_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_fill_ssdt = crosec_i2c_tunnel_fill_ssdt,
.scan_bus = scan_static_bus,
}
static void crosec_i2c_tunnel_fill_ssdt(const struct device *dev)
Definition: i2c_tunnel.c:14
static const char * crosec_i2c_tunnel_acpi_name(const struct device *dev)
Definition: i2c_tunnel.c:42
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
void scan_static_bus(struct device *bus)
Definition: root_device.c:89

Definition at line 42 of file i2c_tunnel.c.

Referenced by crosec_i2c_tunnel_enable().

◆ ec_google_chromeec_i2c_tunnel_ops

struct chip_operations ec_google_chromeec_i2c_tunnel_ops
Initial value:
= {
}
static void crosec_i2c_tunnel_enable(struct device *dev)
Definition: i2c_tunnel.c:62

Definition at line 62 of file i2c_tunnel.c.