NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
Virtual Bios disk routines. More...
Public Member Functions | |
bool | receive (MessageDiskCommit &msg) |
Get disk commit. | |
bool | receive (MessageTimeout &msg) |
Get disk timeout. | |
bool | receive (MessageBios &msg) |
VirtualBiosDisk (Motherboard &mb) | |
Public Member Functions inherited from StaticReceiver< VirtualBiosDisk > | |
StaticReceiver () | |
Public Member Functions inherited from Device | |
void | debug_dump () |
Device (const char *debug_name) |
Private Types | |
enum | { MAX_DISKS = 8, MAGIC_DISK_TAG = ~0u, FREQ = 1000, DISK_TIMEOUT = 5000, DISK_COMPLETION_CODE = 0x79, DISK_COUNT = 0x75, WAKEUP_IRQ = 1 } |
Private Member Functions | |
void | init_params () |
bool | check_drive (MessageBios &msg, unsigned &disk_nr) |
bool | disk_op (MessageBios &msg, unsigned disk_nr, unsigned long long blocknr, unsigned long address, unsigned count, bool write) |
Read/Write disk helper. | |
bool | boot_from_disk (MessageBios &msg) |
bool | handle_int13 (MessageBios &msg) |
Disk INT. |
Private Attributes | |
unsigned | _timer |
DiskParameter | _disk_params [MAX_DISKS] |
unsigned | _disk_count |
bool | _diskop_inprogress |
Additional Inherited Members | |
Public Types inherited from BiosCommon | |
enum | { RESET_VECTOR = 0x100, MAX_VECTOR } |
Static Public Member Functions inherited from StaticReceiver< VirtualBiosDisk > | |
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) |
Virtual Bios disk routines.
Features: int13, boot from disk Missing: multiple disks
|
private |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Read/Write disk helper.
|
inlineprivate |
Disk INT.
|
inlineprivate |
|
inline |
Get disk commit.
|
inline |
Get disk timeout.
|
inline |
|
private |
|
private |
|
private |
|
private |