coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpc47m10x.h File Reference
#include <device/pnp_type.h>
#include <stdint.h>
Include dependency graph for lpc47m10x.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LPC47M10X2_FDC   0 /* Floppy */
 
#define LPC47M10X2_PP   3 /* Parallel Port */
 
#define LPC47M10X2_SP1   4 /* Com1 */
 
#define LPC47M10X2_SP2   5 /* Com2 */
 
#define LPC47M10X2_KBC   7 /* Keyboard & Mouse */
 
#define LPC47M10X2_GAME   9 /* GAME */
 
#define LPC47M10X2_PME   10 /* PME reg*/
 
#define LPC47M10X2_MPU   11 /* MPU-401 MIDI */
 
#define LPC47M10X2_MAX_CONFIG_REGISTER   0x5F
 

Functions

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...
 
void pnp_enter_conf_state (pnp_devfn_t dev)
 
void pnp_exit_conf_state (pnp_devfn_t dev)
 

Macro Definition Documentation

◆ LPC47M10X2_FDC

#define LPC47M10X2_FDC   0 /* Floppy */

Definition at line 9 of file lpc47m10x.h.

◆ LPC47M10X2_GAME

#define LPC47M10X2_GAME   9 /* GAME */

Definition at line 14 of file lpc47m10x.h.

◆ LPC47M10X2_KBC

#define LPC47M10X2_KBC   7 /* Keyboard & Mouse */

Definition at line 13 of file lpc47m10x.h.

◆ LPC47M10X2_MAX_CONFIG_REGISTER

#define LPC47M10X2_MAX_CONFIG_REGISTER   0x5F

Definition at line 18 of file lpc47m10x.h.

◆ LPC47M10X2_MPU

#define LPC47M10X2_MPU   11 /* MPU-401 MIDI */

Definition at line 16 of file lpc47m10x.h.

◆ LPC47M10X2_PME

#define LPC47M10X2_PME   10 /* PME reg*/

Definition at line 15 of file lpc47m10x.h.

◆ LPC47M10X2_PP

#define LPC47M10X2_PP   3 /* Parallel Port */

Definition at line 10 of file lpc47m10x.h.

◆ LPC47M10X2_SP1

#define LPC47M10X2_SP1   4 /* Com1 */

Definition at line 11 of file lpc47m10x.h.

◆ LPC47M10X2_SP2

#define LPC47M10X2_SP2   5 /* Com2 */

Definition at line 12 of file lpc47m10x.h.

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 30 of file early_serial.c.

◆ pnp_exit_conf_state()

void pnp_exit_conf_state ( pnp_devfn_t  dev)

Definition at line 38 of file early_serial.c.