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

#include <bios.h>

Inheritance diagram for BiosCommon:
DiscoveryHelper< BiosCommon > Vga VirtualBiosDisk VirtualBiosKeyboard VirtualBiosMem VirtualBiosMultiboot VirtualBiosReset VirtualBiosTime

Public Types

enum  { RESET_VECTOR = 0x100, MAX_VECTOR }

Public Attributes

Motherboard_mb

Protected Member Functions

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)
- Protected Member Functions inherited from DiscoveryHelper< BiosCommon >
bool discovery_write_st (const char *resource, unsigned offset, const void *value, unsigned count)
bool discovery_write_dw (const char *resource, unsigned offset, unsigned value, unsigned count=4)
 Write a dword or less than it.
bool discovery_read_dw (const char *resource, unsigned offset, unsigned &value)
 Read a dword.
unsigned discovery_length (const char *resource, unsigned minlen)
 Return the length of an ACPI table or minlen if it is smaller.

Additional Inherited Members

- Static Public Member Functions inherited from DiscoveryHelper< BiosCommon >
static bool discover (Device *o, MessageDiscovery &msg)

Member Enumeration Documentation

anonymous enum
Enumerator:
RESET_VECTOR 
MAX_VECTOR 

Constructor & Destructor Documentation

BiosCommon::BiosCommon ( Motherboard mb)
inlineprotected

Member Function Documentation

void BiosCommon::error ( MessageBios msg,
unsigned char  errorcode 
)
inlineprotected

Set the usual error indication.

bool BiosCommon::jmp_hlt ( MessageBios msg)
inlineprotected
bool BiosCommon::jmp_int ( MessageBios msg,
unsigned char  number 
)
inlineprotected

Jump to another realmode INT handler.

void BiosCommon::outb ( unsigned short  port,
unsigned  value 
)
inlineprotected

Out to IO-port.

unsigned BiosCommon::read_bda ( unsigned  offset)
inlineprotected

Read bios data helper.

void BiosCommon::write_bda ( unsigned short  offset,
unsigned  value,
unsigned  len 
)
inlineprotected

Write bios data helper.

Member Data Documentation

Motherboard& BiosCommon::_mb

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