ReactOS 0.4.15-dev-8131-g4988de4
rom.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: subsystems/mvdm/ntvdm/bios/rom.h
5 * PURPOSE: ROM Support Functions
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7 */
8
9#ifndef _ROM_H_
10#define _ROM_H_
11
12/* DEFINES ********************************************************************/
13
14#define ROM_AREA_START 0xE0000
15#define ROM_AREA_END 0xFFFFF
16
17#define OPTION_ROM_SIGNATURE 0xAA55
18
19/* FUNCTIONS ******************************************************************/
20
22WriteProtectRom(IN PVOID RomLocation,
23 IN ULONG RomSize);
24
26WriteUnProtectRom(IN PVOID RomLocation,
27 IN ULONG RomSize);
28
30CalcRomChecksum(IN ULONG RomLocation,
31 IN ULONG RomSize);
32
34LoadBios(IN PCSTR BiosFileName,
35 OUT PVOID* BiosLocation OPTIONAL,
36 OUT PULONG BiosSize OPTIONAL);
37
39LoadRom(IN PCSTR RomFileName,
40 IN PVOID RomLocation,
41 OUT PULONG RomSize OPTIONAL);
42
43VOID
45
46#endif /* _ROM_H_ */
unsigned char BOOLEAN
UCHAR CalcRomChecksum(IN ULONG RomLocation, IN ULONG RomSize)
Definition: rom.c:153
BOOLEAN LoadBios(IN PCSTR BiosFileName, OUT PVOID *BiosLocation OPTIONAL, OUT PULONG BiosSize OPTIONAL)
Definition: rom.c:169
VOID SearchAndInitRoms(IN PCALLBACK16 Context)
Definition: rom.c:252
BOOLEAN LoadRom(IN PCSTR RomFileName, IN PVOID RomLocation, OUT PULONG RomSize OPTIONAL)
Definition: rom.c:214
BOOLEAN WriteUnProtectRom(IN PVOID RomLocation, IN ULONG RomSize)
Definition: rom.c:146
BOOLEAN WriteProtectRom(IN PVOID RomLocation, IN ULONG RomSize)
Definition: rom.c:138
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
uint32_t * PULONG
Definition: typedefs.h:59
const char * PCSTR
Definition: typedefs.h:52
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
unsigned char UCHAR
Definition: xmlstorage.h:181