coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
#include <types.h>
#include <device/device.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <arch/io.h>
#include <arch/interrupt.h>
#include "onboard.h"
#include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/common/gpio.h>
#include <smbios.h>
#include <ec/google/chromeec/ec.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void mainboard_init (struct device *dev)
 
static int link_onboard_smbios_data (struct device *dev, int *handle, unsigned long *current)
 
static void mainboard_enable (struct device *dev)
 

Variables

struct chip_operations mainboard_ops
 

Function Documentation

◆ link_onboard_smbios_data()

static int link_onboard_smbios_data ( struct device dev,
int *  handle,
unsigned long *  current 
)
static

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 167 of file mainboard.c.

References device_operations::init, int15_handler(), link_onboard_smbios_data(), mainboard_init(), mainboard_interrupt_handlers(), and device::ops.

Here is the call graph for this function:

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

Definition at line 106 of file mainboard.c.

References google_chromeec_get_board_version(), GPI_INV, GPIO_BASE, inl(), link_ec_init(), outl(), pci_read_config16(), and pcidev_on_root().

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,
}

Definition at line 167 of file mainboard.c.