[mvdm] Fix missing pointer dereference
[reactos.git] / subsystems / mvdm / ntvdm / bios / rom.h
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
44 SearchAndInitRoms(IN PCALLBACK16 Context);
45
46 #endif /* _ROM_H_ */