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 <drivers/intel/gma/int15.h>
#include <acpi/acpi.h>
#include <ec/smsc/mec1308/ec.h>
#include "ec.h"
#include "onboard.h"
#include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

void mainboard_suspend_resume (void)
 
static void mainboard_init (struct device *dev)
 
static int lumpy_smbios_type41_irq (int *handle, unsigned long *current, const char *name, u8 irq, u8 addr)
 
static int lumpy_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

◆ lumpy_onboard_smbios_data()

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

Definition at line 49 of file mainboard.c.

References BOARD_LIGHTSENSOR_I2C_ADDR, BOARD_LIGHTSENSOR_IRQ, BOARD_LIGHTSENSOR_NAME, BOARD_TRACKPAD_I2C_ADDR, BOARD_TRACKPAD_IRQ, BOARD_TRACKPAD_NAME, and lumpy_smbios_type41_irq().

Referenced by mainboard_enable().

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

◆ lumpy_smbios_type41_irq()

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

Definition at line 20 of file mainboard.c.

References lumpy_ec_init().

Referenced by mainboard_enable().

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

◆ mainboard_suspend_resume()

void mainboard_suspend_resume ( void  )

Definition at line 13 of file mainboard.c.

References EC_ACPI_ENABLE, EC_SMI_DISABLE, and send_ec_command().

Here is the call 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:70

Definition at line 70 of file mainboard.c.