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

Virtual Bios keyboard routines. More...

Inheritance diagram for VirtualBiosKeyboard:
StaticReceiver< VirtualBiosKeyboard > BiosCommon Device DiscoveryHelper< BiosCommon >

Public Member Functions

bool receive (MessageInput &msg)
 Handle messages from the keyboard host driver.
bool receive (MessageHostOp &msg)
 Answer HostRequests from DummyHostDevices.
bool receive (MessageIOIn &msg)
 Forward IO messages to the device models and vice-versa.
bool receive (MessageIOOut &msg)
bool receive (MessageBios &msg)
bool receive (MessageDiscovery &msg)
 VirtualBiosKeyboard (Motherboard &mb)
- Public Member Functions inherited from StaticReceiver< VirtualBiosKeyboard >
 StaticReceiver ()
- Public Member Functions inherited from Device
void debug_dump ()
 Device (const char *debug_name)

Private Member Functions

void check_key (unsigned &status, unsigned key, unsigned bit, unsigned keycode)
void update_status (unsigned key)
bool handle_int09 (CpuState *cpu)
 Handle the Keyboard IRQ.
bool handle_int16 (MessageBios &msg)
 Keyboard INT handler.

Static Private Member Functions

static unsigned keycode2bios (unsigned value)
 Converts our internal keycode format into the BIOS one.

Private Attributes

Motherboard_hostmb
unsigned _lastkey

Additional Inherited Members

- Public Types inherited from BiosCommon
enum  { RESET_VECTOR = 0x100, MAX_VECTOR }
- Static Public Member Functions inherited from StaticReceiver< VirtualBiosKeyboard >
static bool receive_static (Device *o, M &msg)
- Static Public Member Functions inherited from DiscoveryHelper< BiosCommon >
static bool discover (Device *o, MessageDiscovery &msg)
- Public Attributes inherited from BiosCommon
Motherboard_mb
- Protected Member Functions inherited from BiosCommon
void write_bda (unsigned short offset, unsigned value, unsigned len)
 Write bios data helper.
unsigned read_bda (unsigned offset)
 Read bios data helper.
bool jmp_int (MessageBios &msg, unsigned char number)
 Jump to another realmode INT handler.
bool jmp_hlt (MessageBios &msg)
void error (MessageBios &msg, unsigned char errorcode)
 Set the usual error indication.
void outb (unsigned short port, unsigned value)
 Out to IO-port.
 BiosCommon (Motherboard &mb)

Detailed Description

Virtual Bios keyboard routines.

Features: keybuffer Missing: shift state in bda.

Constructor & Destructor Documentation

VirtualBiosKeyboard::VirtualBiosKeyboard ( Motherboard mb)
inline

Member Function Documentation

void VirtualBiosKeyboard::check_key ( unsigned &  status,
unsigned  key,
unsigned  bit,
unsigned  keycode 
)
inlineprivate
bool VirtualBiosKeyboard::handle_int09 ( CpuState cpu)
inlineprivate

Handle the Keyboard IRQ.

bool VirtualBiosKeyboard::handle_int16 ( MessageBios msg)
inlineprivate

Keyboard INT handler.

static unsigned VirtualBiosKeyboard::keycode2bios ( unsigned  value)
inlinestaticprivate

Converts our internal keycode format into the BIOS one.

bool VirtualBiosKeyboard::receive ( MessageInput msg)
inline

Handle messages from the keyboard host driver.

bool VirtualBiosKeyboard::receive ( MessageHostOp msg)
inline

Answer HostRequests from DummyHostDevices.

bool VirtualBiosKeyboard::receive ( MessageIOIn msg)
inline

Forward IO messages to the device models and vice-versa.

bool VirtualBiosKeyboard::receive ( MessageIOOut msg)
inline
bool VirtualBiosKeyboard::receive ( MessageBios msg)
inline
bool VirtualBiosKeyboard::receive ( MessageDiscovery msg)
inline
void VirtualBiosKeyboard::update_status ( unsigned  key)
inlineprivate

Member Data Documentation

Motherboard* VirtualBiosKeyboard::_hostmb
private
unsigned VirtualBiosKeyboard::_lastkey
private

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