coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ite.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/pnp.h>
#include <ec/acpi/ec.h>
#include <option.h>
#include <pc80/keyboard.h>
#include "ec.h"
#include "ecdefs.h"
Include dependency graph for ite.c:

Go to the source code of this file.

Functions

uint16_t ec_get_version (void)
 
static uint8_t get_ec_value_from_option (const char *name, unsigned int fallback, const uint8_t *lut, size_t lut_size)
 
static uint16_t ec_get_chip_id (unsigned int port)
 
static void merlin_init (struct device *dev)
 
static void enable_dev (struct device *dev)
 

Variables

static struct device_operations ops
 
static struct pnp_info pnp_dev_info []
 
struct chip_operations ec_starlabs_merlin_ops
 

Function Documentation

◆ ec_get_chip_id()

static uint16_t ec_get_chip_id ( unsigned int  port)
static

Definition at line 29 of file ite.c.

References ITE_CHIPID1, ITE_CHIPID2, and pnp_read_index().

Referenced by merlin_init().

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

◆ ec_get_version()

uint16_t ec_get_version ( void  )

Definition at line 13 of file ite.c.

◆ enable_dev()

static void enable_dev ( struct device dev)
static

Definition at line 293 of file ite.c.

◆ get_ec_value_from_option()

static uint8_t get_ec_value_from_option ( const char *  name,
unsigned int  fallback,
const uint8_t lut,
size_t  lut_size 
)
static

Definition at line 18 of file ite.c.

References get_uint_option(), and name.

Referenced by merlin_init().

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

◆ merlin_init()

Variable Documentation

◆ ec_starlabs_merlin_ops

struct chip_operations ec_starlabs_merlin_ops
Initial value:
= {
.enable_dev = enable_dev
}
static void enable_dev(struct device *dev)
Definition: ite.c:293

Definition at line 293 of file ite.c.

◆ ops

struct device_operations ops
static
Initial value:
= {
.init = merlin_init,
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
}
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 void merlin_init(struct device *dev)
Definition: ite.c:35

Definition at line 35 of file ite.c.

◆ pnp_dev_info

struct pnp_info pnp_dev_info[]
static

Definition at line 35 of file ite.c.