2014-03-02 22:50:31 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: GPL - See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Virtual DOS Machine
|
2015-09-18 17:01:49 +00:00
|
|
|
* FILE: subsystems/mvdm/ntvdm/bios/bios32/bios32p.h
|
2014-03-02 22:50:31 +00:00
|
|
|
* PURPOSE: VDM 32-bit BIOS
|
|
|
|
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BIOS32P_H_
|
|
|
|
#define _BIOS32P_H_
|
|
|
|
|
2015-10-04 11:49:28 +00:00
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
|
|
|
|
#include <bios/bios.h>
|
|
|
|
|
|
|
|
/**/ #include "int32.h" /**/
|
|
|
|
|
2014-03-02 22:50:31 +00:00
|
|
|
/* DEFINES ********************************************************************/
|
|
|
|
|
|
|
|
#define BIOS_PIC_MASTER_INT 0x08
|
|
|
|
#define BIOS_PIC_SLAVE_INT 0x70
|
|
|
|
|
|
|
|
#define BIOS_EQUIPMENT_INTERRUPT 0x11
|
|
|
|
#define BIOS_MEMORY_SIZE 0x12
|
|
|
|
#define BIOS_MISC_INTERRUPT 0x15
|
2014-09-18 00:16:17 +00:00
|
|
|
#define BIOS_ROM_BASIC 0x18
|
|
|
|
#define BIOS_BOOTSTRAP_LOADER 0x19
|
2014-03-02 22:50:31 +00:00
|
|
|
#define BIOS_TIME_INTERRUPT 0x1A
|
|
|
|
#define BIOS_SYS_TIMER_INTERRUPT 0x1C
|
|
|
|
|
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
|
|
|
|
extern CALLBACK16 BiosContext;
|
2014-05-19 01:12:25 +00:00
|
|
|
#define RegisterBiosInt32(IntNumber, IntHandler) \
|
2014-03-02 22:50:31 +00:00
|
|
|
do { \
|
2014-05-19 01:12:25 +00:00
|
|
|
RegisterInt32(BiosContext.TrampolineFarPtr + \
|
|
|
|
BiosContext.TrampolineSize + \
|
|
|
|
(IntNumber) * Int16To32StubSize, \
|
|
|
|
(IntNumber), (IntHandler), NULL); \
|
2014-03-02 22:50:31 +00:00
|
|
|
} while(0);
|
|
|
|
|
|
|
|
VOID EnableHwIRQ(UCHAR hwirq, EMULATOR_INT32_PROC func);
|
2015-06-15 23:43:16 +00:00
|
|
|
VOID PicIRQComplete(BYTE IntNum);
|
2014-03-02 22:50:31 +00:00
|
|
|
|
2015-10-04 11:49:28 +00:00
|
|
|
#endif // _BIOS32P_H_
|
|
|
|
|
|
|
|
/* EOF */
|