Barrelfish
Functions
serial.h File Reference

Architecture-independent interface to the kernel serial port subsystem. More...

Functions

errval_t serial_init (unsigned port, bool initialize_hw)
 Initialise the serial driver. More...
 
errval_t serial_early_init (unsigned port)
 Configure the serial interface, from a caller that knows that this is a bunch of PL011s, and furthermore where they are in the physical address space.
 
errval_t serial_early_init_mmu_enabled (unsigned port)
 Configure the serial interface, from a caller that knows that this is a bunch of PL011s, and furthermore where they are in the physical address space.
 
void serial_putchar (unsigned port, char c)
 Prints a single character to a serial port. More...
 
char serial_getchar (unsigned port)
 Reads a single character from the default serial port. More...
 

Detailed Description

Architecture-independent interface to the kernel serial port subsystem.

Function Documentation

char serial_getchar ( unsigned  port)

Reads a single character from the default serial port.

Reads a single character from the default serial port.

errval_t serial_init ( unsigned  port,
bool  initialize_hw 
)

Initialise the serial driver.

Parameters
portSerial Port number.
initialize_hwShould the Hardware be initialized or just mackerel representation.
void serial_putchar ( unsigned  port,
char  c 
)

Prints a single character to a serial port.

Prints a single character to a serial port.