[DDK]
[reactos.git] / reactos / subsystems / ntvdm / bios / bios32 / bios32p.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: bios32.h
5 * PURPOSE: VDM 32-bit BIOS
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 */
8
9 #ifndef _BIOS32P_H_
10 #define _BIOS32P_H_
11
12 /* INCLUDES *******************************************************************/
13
14 #include "ntvdm.h"
15 #include "../bios.h"
16
17 /**/ #include "callback.h" /**/
18
19 /* DEFINES ********************************************************************/
20
21 #define BIOS_PIC_MASTER_INT 0x08
22 #define BIOS_PIC_SLAVE_INT 0x70
23
24 #define BIOS_EQUIPMENT_INTERRUPT 0x11
25 #define BIOS_MEMORY_SIZE 0x12
26 #define BIOS_MISC_INTERRUPT 0x15
27 #define BIOS_TIME_INTERRUPT 0x1A
28 #define BIOS_SYS_TIMER_INTERRUPT 0x1C
29
30 /* FUNCTIONS ******************************************************************/
31
32 extern CALLBACK16 BiosContext;
33 #define RegisterBiosInt32(IntNumber, IntHandler) \
34 do { \
35 BiosContext.NextOffset += RegisterInt32(MAKELONG(BiosContext.NextOffset, \
36 BiosContext.Segment), \
37 (IntNumber), (IntHandler), NULL); \
38 } while(0);
39
40 VOID EnableHwIRQ(UCHAR hwirq, EMULATOR_INT32_PROC func);
41 VOID PicIRQComplete(LPWORD Stack);
42
43 #endif // _BIOS32P_H_
44
45 /* EOF */