The Pedigree Project  0.1
Classes | Public Member Functions | Public Attributes | List of all members
ArmVersatileSerial Class Reference

#include <Serial.h>

+ Inheritance diagram for ArmVersatileSerial:
+ Collaboration diagram for ArmVersatileSerial:

Classes

struct  serial
 

Public Member Functions

virtual void setBase (uintptr_t nBaseAddr)
 
virtual char read ()
 
virtual char readNonBlock ()
 
virtual void write (char c)
 
- Public Member Functions inherited from Serial
void write (const char *c)
 

Public Attributes

struct ArmVersatileSerial::serial PACKED
 

Detailed Description

Implements a driver for the Serial connection of the Versatile's UART (A PL011).

Base for UART registers: 0x101f1000 Register offsets: UARTDR: 0x00 Read/write chars TODO: fill in the other regs

Definition at line 35 of file kernel/machine/arm_versatile/Serial.h.

Member Function Documentation

void ArmVersatileSerial::setBase ( uintptr_t  nBaseAddr)
virtual
Todo:
make this generic for Mmaped and port IO.

Implements Serial.

Definition at line 29 of file arm_versatile/Serial.cc.


The documentation for this class was generated from the following files: