2013-06-17 00:00:36 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: GPL - See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Virtual DOS Machine
|
|
|
|
* FILE: bios.c
|
2014-02-17 22:20:03 +00:00
|
|
|
* PURPOSE: VDM BIOS Support Library
|
|
|
|
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
2013-06-17 00:00:36 +00:00
|
|
|
*/
|
|
|
|
|
2013-06-26 22:58:41 +00:00
|
|
|
/* INCLUDES *******************************************************************/
|
2013-06-17 00:00:36 +00:00
|
|
|
|
2013-07-22 13:51:26 +00:00
|
|
|
#define NDEBUG
|
|
|
|
|
2013-11-09 22:15:40 +00:00
|
|
|
#include "bios.h"
|
2013-11-09 23:01:11 +00:00
|
|
|
|
2013-06-26 22:58:41 +00:00
|
|
|
/* PRIVATE VARIABLES **********************************************************/
|
|
|
|
|
2014-02-17 22:20:03 +00:00
|
|
|
static BOOLEAN Bios32Loaded = FALSE;
|
2013-07-15 01:37:38 +00:00
|
|
|
|
2013-08-05 23:20:25 +00:00
|
|
|
/* PRIVATE FUNCTIONS **********************************************************/
|
2013-06-26 22:58:41 +00:00
|
|
|
|
2014-01-25 00:21:51 +00:00
|
|
|
/* PUBLIC FUNCTIONS ***********************************************************/
|
2013-07-05 01:31:50 +00:00
|
|
|
|
2014-02-17 22:20:03 +00:00
|
|
|
BOOLEAN BiosInitialize(IN LPCWSTR BiosFileName,
|
|
|
|
IN HANDLE ConsoleInput,
|
|
|
|
IN HANDLE ConsoleOutput)
|
2013-06-21 00:47:07 +00:00
|
|
|
{
|
2014-02-17 22:20:03 +00:00
|
|
|
Bios32Loaded = Bios32Initialize(ConsoleInput, ConsoleOutput);
|
|
|
|
return Bios32Loaded;
|
2014-01-25 00:21:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VOID BiosCleanup(VOID)
|
|
|
|
{
|
2014-02-17 22:20:03 +00:00
|
|
|
if (Bios32Loaded) Bios32Cleanup();
|
2013-06-21 00:47:07 +00:00
|
|
|
}
|
|
|
|
|
2013-06-17 00:00:36 +00:00
|
|
|
/* EOF */
|