coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
#include <device/device.h>
#include <console/console.h>
#include <drivers/intel/gma/int15.h>
#include <ec/acpi/ec.h>
#include <southbridge/intel/common/gpio.h>
#include <string.h>
#include <smbios.h>
#include "ec.h"
#include <acpi/acpi.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static u8 mainboard_fill_ec_version (char *buf, u8 buf_len)
 
static void mainboard_smbios_strings (struct device *dev, struct smbios_type11 *t)
 
static void mainboard_enable (struct device *dev)
 

Variables

struct chip_operations mainboard_ops
 

Function Documentation

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

◆ mainboard_fill_ec_version()

static u8 mainboard_fill_ec_version ( char *  buf,
u8  buf_len 
)
static

Definition at line 14 of file mainboard.c.

References buf, c, ec_mm_read, memcpy(), MIN, and snprintf().

Referenced by mainboard_smbios_strings().

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

◆ mainboard_smbios_strings()

static void mainboard_smbios_strings ( struct device dev,
struct smbios_type11 t 
)
static

Definition at line 35 of file mainboard.c.

References BIOS_INFO, smbios_type11::count, ec_mm_read, smbios_type11::eos, mainboard_fill_ec_version(), printk, and smbios_add_string().

Referenced by mainboard_enable().

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

Variable Documentation

◆ mainboard_ops

struct chip_operations mainboard_ops
Initial value:
= {
.enable_dev = mainboard_enable,
}
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:52

Definition at line 52 of file mainboard.c.