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 "lpc47m10x.h"
Include dependency graph for early_serial.c:

Go to the source code of this file.

Functions

void pnp_enter_conf_state (pnp_devfn_t dev)
 
void pnp_exit_conf_state (pnp_devfn_t dev)
 
void lpc47m10x_enable_serial (pnp_devfn_t dev, u16 iobase)
 Configure the base I/O port of the specified serial device and enable the serial device. More...
 

Function Documentation

◆ lpc47m10x_enable_serial()

void lpc47m10x_enable_serial ( pnp_devfn_t  dev,
u16  iobase 
)

Configure the base I/O port of the specified serial device and enable the serial device.

Parameters
devHigh 8 bits = Super I/O port, low 8 bits = logical device number.
iobaseProcessor I/O port address to assign to this serial device.

Definition at line 28 of file early_serial.c.

References pnp_enter_conf_state(), pnp_exit_conf_state(), PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), and pnp_set_logical_device().

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()

void pnp_enter_conf_state ( pnp_devfn_t  dev)

Definition at line 9 of file early_serial.c.

References outb().

Here is the call graph for this function:

◆ pnp_exit_conf_state()

void pnp_exit_conf_state ( pnp_devfn_t  dev)

Definition at line 15 of file early_serial.c.

References outb().

Here is the call graph for this function: