35#define BOP_EQUIPLIST 0x11
36#define BOP_GETMEMSIZE 0x12
55 DisplayMessage(
L"ReactOS NTVDM doesn't support Windows NTVDM BIOS at the moment. The VDM will shut down.");
83 if (BiosFileName ==
NULL)
87 else if (BiosFileName[0] !=
'\0')
92 DPRINT1(
"BIOS file '%s' loading %s at address 0x%08x; GetLastError() = %u\n",
111 RomFileName[
ARRAYSIZE(RomFileName)-1] =
'\0';
119 if (RomAddress == 0)
goto Skip;
122 DPRINT1(
"ROM file '%s' loading %s at address 0x%08x; GetLastError() = %u\n",
123 RomFileName, Success2 ?
"succeeded" :
"failed", RomAddress,
GetLastError());
126 RomFile +=
strlen(RomFile) + 1;
145 wprintf(
L"FATAL: Failed to initialize the UMA manager.\n");
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
ACPI_SIZE strlen(const char *String)
char * strchr(const char *String, int ch)
INT __cdecl DisplayMessage(_In_opt_ HWND hWnd, _In_ UINT uType, _In_opt_ PCWSTR pszTitle, _In_opt_ PCWSTR pszFormatMessage,...)
BOOLEAN Bios32Initialize(VOID)
VOID WINAPI BiosEquipmentService(LPWORD Stack)
VOID WINAPI BiosGetMemorySize(LPWORD Stack)
struct BIOS_DATA_AREA * PBIOS_DATA_AREA
struct _BIOS_CONFIG_TABLE * PBIOS_CONFIG_TABLE
VOID RegisterBop(BYTE BopCode, EMULATOR_BOP_PROC BopHandler)
VOID EmulatorTerminate(VOID)
#define SEG_OFF_TO_PTR(seg, off)
BOOLEAN LoadBios(IN PCSTR BiosFileName, OUT PVOID *BiosLocation OPTIONAL, OUT PULONG BiosSize OPTIONAL)
BOOLEAN LoadRom(IN PCSTR RomFileName, IN PVOID RomLocation, OUT PULONG RomSize OPTIONAL)
STDMETHOD() Skip(THIS_ ULONG celt) PURE
PULONG MinorVersion OPTIONAL
VOID WINAPI WinNtVdmBiosReset(LPWORD Stack)
static BOOLEAN Bios32Loaded
BOOLEAN BiosInitialize(IN LPCSTR BiosFileName, IN LPCSTR RomFiles OPTIONAL)
BOOLEAN UmaMgrInitialize(VOID)
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
DWORD WINAPI GetLastError(void)