4 * Copyright 1998 Ove Kåven
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
10 #include <sys/types.h> /* pid_t */
11 #include "winbase.h" /* for LPSTARTUPINFO32A */
12 #include "winnt.h" /* for PCONTEXT */
16 typedef void (*DOSRELAY
)(CONTEXT86
*,void*);
18 typedef struct _DOSTASK
{
21 } DOSTASK
, *LPDOSTASK
;
23 #define DOS_PRIORITY_REALTIME 0 /* IRQ0 */
24 #define DOS_PRIORITY_KEYBOARD 1 /* IRQ1 */
25 #define DOS_PRIORITY_VGA 2 /* IRQ9 */
26 #define DOS_PRIORITY_MOUSE 5 /* IRQ12 */
27 #define DOS_PRIORITY_SERIAL 10 /* IRQ4 */
29 #if defined(linux) && defined(__i386__)
31 #endif /* linux-i386 */
33 #define V86_FLAG 0x00020000
35 extern void WINAPI
MZ_LoadImage( LPCSTR filename
, HANDLE hFile
);
36 extern BOOL WINAPI
MZ_Exec( CONTEXT86
*context
, LPCSTR filename
, BYTE func
, LPVOID paramblk
);
37 extern void WINAPI
MZ_Exit( CONTEXT86
*context
, BOOL cs_psp
, WORD retval
);
38 extern LPDOSTASK WINAPI
MZ_Current( void );
39 extern LPDOSTASK WINAPI
MZ_AllocDPMITask( void );
40 extern INT WINAPI
DOSVM_Enter( CONTEXT86
*context
);
41 extern void WINAPI
DOSVM_Wait( INT read_pipe
, HANDLE hObject
);
42 extern void WINAPI
DOSVM_QueueEvent( INT irq
, INT priority
, DOSRELAY relay
, LPVOID data
);
43 extern void WINAPI
DOSVM_PIC_ioport_out( WORD port
, BYTE val
);
44 extern void WINAPI
DOSVM_SetTimer( UINT ticks
);
45 extern UINT WINAPI
DOSVM_GetTimer( void );
47 #endif /* __WINE_DOSEXE_H */