c3e2b0175c39b2073584fd97cb409c49df048c87
[reactos.git] / subsystems / ntvdm / bios.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: bios.h
5 * PURPOSE: VDM BIOS (header file)
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 */
8
9 #ifndef _BIOS_H_
10 #define _BIOS_H_
11
12 /* INCLUDES *******************************************************************/
13
14 #include "ntvdm.h"
15
16 /* DEFINES ********************************************************************/
17
18 #define CONSOLE_VIDEO_MEM_START 0xB8000
19 #define CONSOLE_VIDEO_MEM_END 0xBFFFF
20 #define ROM_AREA_START 0xC0000
21 #define ROM_AREA_END 0xFFFFF
22 #define BIOS_PIC_MASTER_INT 0x08
23 #define BIOS_PIC_SLAVE_INT 0x70
24 #define BIOS_SEGMENT 0xF000
25 #define VIDEO_BIOS_INTERRUPT 0x10
26 #define CONSOLE_FONT_HEIGHT 8
27
28 /* FUNCTIONS ******************************************************************/
29
30 BOOLEAN BiosInitialize();
31 VOID BiosUpdateConsole(ULONG StartAddress, ULONG EndAddress);
32 VOID BiosUpdateVideoMemory(ULONG StartAddress, ULONG EndAddress);
33 VOID BiosVideoService();
34 VOID BiosHandleIrq(BYTE IrqNumber);
35
36 #endif