NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HostSerialPci Class Reference

A PCI 16550-based serial port driver. More...

Inheritance diagram for HostSerialPci:
StaticReceiver< HostSerialPci > Device

Public Member Functions

bool receive (MessageIrq &msg)
bool receive (MessageSerial &msg)
 HostSerialPci (DBus< MessageSerial > &bus_serial, unsigned serialdev, char *base, unsigned irq, unsigned clk, unsigned speed, unsigned lcr, unsigned ier)
- Public Member Functions inherited from StaticReceiver< HostSerialPci >
 StaticReceiver ()
- Public Member Functions inherited from Device
void debug_dump ()
 Device (const char *debug_name)

Private Member Functions

unsigned char inb (volatile char *addr)
void outb (unsigned char value, volatile char *addr)
bool get_char (unsigned char &value)

Private Attributes

DBus< MessageSerial > & _bus_serial
unsigned _serialdev
volatile char * _base
unsigned _irq
unsigned _speed
unsigned _lcr

Additional Inherited Members

- Static Public Member Functions inherited from StaticReceiver< HostSerialPci >
static bool receive_static (Device *o, M &msg)

Detailed Description

A PCI 16550-based serial port driver.

State: testing Features: send, receive, FIFO, different LCR+speed

Constructor & Destructor Documentation

HostSerialPci::HostSerialPci ( DBus< MessageSerial > &  bus_serial,
unsigned  serialdev,
char *  base,
unsigned  irq,
unsigned  clk,
unsigned  speed,
unsigned  lcr,
unsigned  ier 
)
inline

Member Function Documentation

bool HostSerialPci::get_char ( unsigned char &  value)
inlineprivate
unsigned char HostSerialPci::inb ( volatile char *  addr)
inlineprivate
void HostSerialPci::outb ( unsigned char  value,
volatile char *  addr 
)
inlineprivate
bool HostSerialPci::receive ( MessageIrq msg)
inline
bool HostSerialPci::receive ( MessageSerial msg)
inline

Member Data Documentation

volatile char* HostSerialPci::_base
private
DBus<MessageSerial>& HostSerialPci::_bus_serial
private
unsigned HostSerialPci::_irq
private
unsigned HostSerialPci::_lcr
private
unsigned HostSerialPci::_serialdev
private
unsigned HostSerialPci::_speed
private

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