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

Go to the source code of this file.

Macros

#define NUVOTON_ENTRY_KEY   0x87
 
#define NUVOTON_EXIT_KEY   0xAA
 

Functions

static void pnp_enter_conf_state (pnp_devfn_t dev)
 
static void pnp_exit_conf_state (pnp_devfn_t dev)
 
void nct5104d_enable_uartd (pnp_devfn_t dev)
 

Macro Definition Documentation

◆ NUVOTON_ENTRY_KEY

#define NUVOTON_ENTRY_KEY   0x87

Definition at line 8 of file early_init.c.

◆ NUVOTON_EXIT_KEY

#define NUVOTON_EXIT_KEY   0xAA

Definition at line 9 of file early_init.c.

Function Documentation

◆ nct5104d_enable_uartd()

void nct5104d_enable_uartd ( pnp_devfn_t  dev)

Definition at line 28 of file early_init.c.

References inb(), outb(), pnp_enter_conf_state(), and pnp_exit_conf_state().

Referenced by bootblock_mainboard_early_init().

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

◆ pnp_enter_conf_state()

static void pnp_enter_conf_state ( pnp_devfn_t  dev)
static

Definition at line 13 of file early_init.c.

References NUVOTON_ENTRY_KEY, and outb().

Referenced by nct5104d_enable_uartd().

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 21 of file early_init.c.

References NUVOTON_EXIT_KEY, and outb().

Referenced by nct5104d_enable_uartd().

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