coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <arch/io.h>
#include <endian.h>
#include <device/pnp_ops.h>
#include <device/pnp_def.h>
#include "bootblock.h"
Include dependency graph for bootblock.c:

Go to the source code of this file.

Macros

#define PNP_CFG_IDX   0x2e
 
#define PNP_LDN_SERIAL   0x0d
 

Functions

static void pnp_enter_conf_state (pnp_devfn_t dev)
 
static void pnp_exit_conf_state (pnp_devfn_t dev)
 
static void wilco_ec_serial_init (void)
 
void wilco_ec_early_init (void)
 wilco_ec_early_init More...
 

Macro Definition Documentation

◆ PNP_CFG_IDX

#define PNP_CFG_IDX   0x2e

Definition at line 10 of file bootblock.c.

◆ PNP_LDN_SERIAL

#define PNP_LDN_SERIAL   0x0d

Definition at line 11 of file bootblock.c.

Function Documentation

◆ pnp_enter_conf_state()

static void pnp_enter_conf_state ( pnp_devfn_t  dev)
static

Definition at line 13 of file bootblock.c.

References outb(), and PNP_CFG_IDX.

Referenced by aspeed_early_config(), bootblock_mainboard_early_init(), gpio_init(), ite_evc_conf(), ite_gpio_conf(), lpc_read(), lpc_write(), mainboard_configure_super_io(), and wilco_ec_serial_init().

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

◆ pnp_exit_conf_state()

static void pnp_exit_conf_state ( pnp_devfn_t  dev)
static

Definition at line 19 of file bootblock.c.

References outb(), and PNP_CFG_IDX.

Referenced by aspeed_early_config(), bootblock_mainboard_early_init(), gpio_init(), ite_evc_conf(), ite_gpio_conf(), lpc_read(), lpc_write(), mainboard_configure_super_io(), and wilco_ec_serial_init().

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

◆ wilco_ec_early_init()

void wilco_ec_early_init ( void  )

wilco_ec_early_init

This function performs early initialization of the EC:

Definition at line 36 of file bootblock.c.

References CONFIG, and wilco_ec_serial_init().

Referenced by bootblock_mainboard_init().

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

◆ wilco_ec_serial_init()

static void wilco_ec_serial_init ( void  )
static

Definition at line 24 of file bootblock.c.

References PNP_CFG_IDX, PNP_DEV, pnp_enter_conf_state(), pnp_exit_conf_state(), PNP_IDX_IO0, PNP_IDX_IO1, PNP_LDN_SERIAL, pnp_set_enable(), pnp_set_iobase(), pnp_set_logical_device(), and pnp_write_config().

Referenced by wilco_ec_early_init().

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