ReactOS  0.4.14-dev-614-gbfd8a84
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 
21 BOOLEAN
22 WriteProtectRom(IN PVOID RomLocation,
23  IN ULONG RomSize);
24 
25 BOOLEAN
26 WriteUnProtectRom(IN PVOID RomLocation,
27  IN ULONG RomSize);
28 
29 UCHAR
30 CalcRomChecksum(IN ULONG RomLocation,
31  IN ULONG RomSize);
32 
33 BOOLEAN
34 LoadBios(IN PCSTR BiosFileName,
35  OUT PVOID* BiosLocation OPTIONAL,
36  OUT PULONG BiosSize OPTIONAL);
37 
38 BOOLEAN
39 LoadRom(IN PCSTR RomFileName,
40  IN PVOID RomLocation,
41  OUT PULONG RomSize OPTIONAL);
42 
43 VOID
45 
46 #endif /* _ROM_H_ */
#define IN
Definition: typedefs.h:38
VOID SearchAndInitRoms(IN PCALLBACK16 Context)
Definition: rom.c:252
BOOLEAN WriteUnProtectRom(IN PVOID RomLocation, IN ULONG RomSize)
Definition: rom.c:146
BOOLEAN LoadRom(IN PCSTR RomFileName, IN PVOID RomLocation, OUT PULONG RomSize OPTIONAL)
Definition: rom.c:214
unsigned char BOOLEAN
UCHAR CalcRomChecksum(IN ULONG RomLocation, IN ULONG RomSize)
Definition: rom.c:153
unsigned char UCHAR
Definition: xmlstorage.h:181
BOOLEAN WriteProtectRom(IN PVOID RomLocation, IN ULONG RomSize)
Definition: rom.c:138
BOOLEAN LoadBios(IN PCSTR BiosFileName, OUT PVOID *BiosLocation OPTIONAL, OUT PULONG BiosSize OPTIONAL)
Definition: rom.c:169
unsigned int * PULONG
Definition: retypes.h:1
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
const char * PCSTR
Definition: typedefs.h:51
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68