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 <device/pci_ops.h>
#include <drivers/intel/gma/int15.h>
#include "ec_oem.c"
#include "mainboard.h"
Include dependency graph for mainboard.c:

Go to the source code of this file.

Macros

#define MAX_LCD_BRIGHTNESS   0xd8
 

Functions

static void ec_enable (void)
 
static void mainboard_init (struct device *dev)
 
static void mainboard_enable (struct device *dev)
 

Variables

struct chip_operations mainboard_ops
 

Macro Definition Documentation

◆ MAX_LCD_BRIGHTNESS

#define MAX_LCD_BRIGHTNESS   0xd8

Definition at line 12 of file mainboard.c.

Function Documentation

◆ ec_enable()

static void ec_enable ( void  )
static

Definition at line 14 of file mainboard.c.

References ec_write(), MAX_LCD_BRIGHTNESS, send_ec_oem_command(), and send_ec_oem_data().

Referenced by mainboard_init().

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

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 45 of file mainboard.c.

References device_operations::init, mainboard_init(), mainboard_write_acpi_tables(), and device::ops.

Here is the call graph for this function:

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

Definition at line 37 of file mainboard.c.

References ec_enable(), GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_TXT_STRETCH, and install_intel_vga_int15_handler().

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:45

Definition at line 45 of file mainboard.c.