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

Go to the source code of this file.

Macros

#define NUVOTON_ENTRY_KEY   0x87
 
#define NUVOTON_EXIT_KEY   0xAA
 

Functions

void nuvoton_pnp_enter_conf_state (pnp_devfn_t dev)
 
void nuvoton_pnp_exit_conf_state (pnp_devfn_t dev)
 
void nuvoton_enable_serial (pnp_devfn_t dev, u16 iobase)
 

Macro Definition Documentation

◆ NUVOTON_ENTRY_KEY

#define NUVOTON_ENTRY_KEY   0x87

Definition at line 28 of file early_serial.c.

◆ NUVOTON_EXIT_KEY

#define NUVOTON_EXIT_KEY   0xAA

Definition at line 29 of file early_serial.c.

Function Documentation

◆ nuvoton_enable_serial()

void nuvoton_enable_serial ( pnp_devfn_t  dev,
u16  iobase 
)

◆ nuvoton_pnp_enter_conf_state()

void nuvoton_pnp_enter_conf_state ( pnp_devfn_t  dev)

Definition at line 33 of file early_serial.c.

References NUVOTON_ENTRY_KEY, and outb().

Referenced by bootblock_mainboard_early_init(), mainboard_config_superio(), nuvoton_enable_serial(), and superio_init().

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

◆ nuvoton_pnp_exit_conf_state()

void nuvoton_pnp_exit_conf_state ( pnp_devfn_t  dev)

Definition at line 41 of file early_serial.c.

References NUVOTON_EXIT_KEY, and outb().

Referenced by bootblock_mainboard_early_init(), mainboard_config_superio(), nuvoton_enable_serial(), and superio_init().

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