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

Go to the source code of this file.

Macros

#define SMSCSUPERIO_SP1   4 /* Com1 */
 
#define SMSCSUPERIO_SP2   5 /* Com2 */
 

Functions

void smscsuperio_enable_serial (pnp_devfn_t dev, u16 iobase)
 Enable the specified serial port. More...
 

Macro Definition Documentation

◆ SMSCSUPERIO_SP1

#define SMSCSUPERIO_SP1   4 /* Com1 */

Definition at line 12 of file smscsuperio.h.

◆ SMSCSUPERIO_SP2

#define SMSCSUPERIO_SP2   5 /* Com2 */

Definition at line 13 of file smscsuperio.h.

Function Documentation

◆ smscsuperio_enable_serial()

void smscsuperio_enable_serial ( pnp_devfn_t  dev,
u16  iobase 
)

Enable the specified serial port.

Parameters
devThe device to use.
iobaseThe I/O base of the serial port (usually 0x3f8/0x2f8).

Definition at line 33 of file early_serial.c.

References pnp_enter_conf_state(), pnp_exit_conf_state(), PNP_IDX_IO0, PNP_IDX_IRQ0, pnp_set_enable(), pnp_set_iobase(), pnp_set_irq(), 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: