Phoenix
Object-oriented orthogonally persistent operating system
Public Member Functions
log::DbgSerialPort Class Reference

Serial console driver implementation in the kernel for debug logging purposes. More...

Collaboration diagram for log::DbgSerialPort:

List of all members.

Public Member Functions

bool Getc (u8 *c, void *arg=0)
 Get character from the port.
bool Putc (u8 c, void *arg=0)
 Output character to the port.

Detailed Description

Serial console driver implementation in the kernel for debug logging purposes.

It is very simple and runs in polling mode so it can be used only for debugging purposes. Normal serial port driver is implemented in the user space.


Member Function Documentation

bool DbgSerialPort::Getc ( u8 c,
void *  arg = 0 
)

Get character from the port.

Parameters:
cPointer to location where to store the character.
argUnused argument for compatibility with upper layers.
Returns:
true if character read, false otherwise.
bool log::DbgSerialPort::Putc ( u8  c,
void *  arg = 0 
)

Output character to the port.

Parameters:
cCharacter to output
argUnused argument for compatibility with upper layers.
Returns:
true if character written, false otherwise.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines