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 <cbfs.h>
#include <device/device.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <drivers/intel/gma/int15.h>
#include <fmap.h>
#include <arch/io.h>
#include "onboard.h"
#include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h>
#include <smbios.h>
#include <ec/quanta/ene_kb3940q/ec.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static unsigned int search (char *p, char *a, unsigned int lengthp, unsigned int lengtha)
 
static unsigned char get_hex_digit (char *offset)
 
static int get_mac_address (u32 *high_dword, u32 *low_dword, u32 search_address, u32 search_length)
 
static void program_mac_address (u16 io_base, u32 search_address, u32 search_length)
 
static void program_keyboard_type (u32 search_address, u32 search_length)
 
static void mainboard_init (struct device *dev)
 
static int butterfly_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

◆ butterfly_onboard_smbios_data()

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

Definition at line 234 of file mainboard.c.

References BOARD_TRACKPAD_I2C_ADDR, BOARD_TRACKPAD_IRQ, BOARD_TRACKPAD_NAME, SMBIOS_DEVICE_TYPE_OTHER, and smbios_write_type41().

Referenced by mainboard_enable().

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

◆ get_hex_digit()

static unsigned char get_hex_digit ( char *  offset)
static

Definition at line 32 of file mainboard.c.

References BIOS_DEBUG, offset, and printk.

Referenced by get_mac_address().

Here is the caller graph for this function:

◆ get_mac_address()

static int get_mac_address ( u32 high_dword,
u32 low_dword,
u32  search_address,
u32  search_length 
)
static

Definition at line 51 of file mainboard.c.

References BIOS_DEBUG, get_hex_digit(), offset, printk, and search().

Referenced by program_mac_address().

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

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

◆ program_keyboard_type()

static void program_keyboard_type ( u32  search_address,
u32  search_length 
)
static

Definition at line 122 of file mainboard.c.

References BIOS_DEBUG, EC_KBD_EN, EC_KBD_JP, EC_KBID_REG, ec_mem_write(), offset, printk, and search().

Referenced by mainboard_init().

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

◆ program_mac_address()

static void program_mac_address ( u16  io_base,
u32  search_address,
u32  search_length 
)
static

Definition at line 99 of file mainboard.c.

References BIOS_DEBUG, get_mac_address(), outb(), outl(), and printk.

Referenced by mainboard_init().

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

◆ search()

static unsigned int search ( char *  p,
char *  a,
unsigned int  lengthp,
unsigned int  lengtha 
)
static

Definition at line 17 of file mainboard.c.

Referenced by get_mac_address(), and program_keyboard_type().

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

Definition at line 255 of file mainboard.c.