Release 980517
[wine] / include / miscemu.h
1 /*
2  * Misc. emulation definitions
3  *
4  * Copyright 1995 Alexandre Julliard
5  */
6
7 #ifndef __WINE_MISCEMU_H
8 #define __WINE_MISCEMU_H
9
10 #include <stdio.h>
11 #include "winnt.h"
12
13   /* msdos/dosmem.c */
14 extern HANDLE16 DOSMEM_BiosSeg;
15 extern DWORD DOSMEM_CollateTable;
16
17 extern BOOL32 DOSMEM_Init(void);
18 extern void   DOSMEM_Tick(void);
19 extern WORD   DOSMEM_AllocSelector(WORD);
20 extern LPVOID DOSMEM_GetBlock(UINT32 size, UINT16* p);
21 extern BOOL32 DOSMEM_FreeBlock(void* ptr);
22 extern LPVOID DOSMEM_MapRealToLinear(DWORD); /* real-mode to linear */
23 extern LPVOID DOSMEM_MapDosToLinear(UINT32); /* linear DOS to Wine */
24 extern UINT32 DOSMEM_MapLinearToDos(LPVOID); /* linear Wine to DOS */
25
26 /* msdos/interrupts.c */
27 extern FARPROC16 INT_GetHandler( BYTE intnum );
28 extern void INT_SetHandler( BYTE intnum, FARPROC16 handler );
29
30 /* msdos/ioports.c */
31 extern void IO_port_init (void);
32 extern DWORD IO_inport( int port, int count );
33 extern void IO_outport( int port, int count, DWORD value );
34
35 /* msdos/int1a.c */
36 extern DWORD INT1A_GetTicksSinceMidnight(void);
37
38 /* loader/signal.c */
39 extern BOOL32 SIGNAL_Init(void);
40 extern void SIGNAL_SetHandler( int sig, void (*func)(), int flags );
41 extern void SIGNAL_MaskAsyncEvents( BOOL32 flag );
42
43 /* if1632/signal.c */
44 extern BOOL32 SIGNAL_InitEmulator(void);
45
46 #define INT_BARF(context,num) \
47     fprintf( stderr, "int%x: unknown/not implemented parameters:\n" \
48                      "int%x: AX %04x, BX %04x, CX %04x, DX %04x, " \
49                      "SI %04x, DI %04x, DS %04x, ES %04x\n", \
50              (num), (num), AX_reg(context), BX_reg(context), CX_reg(context), \
51              DX_reg(context), SI_reg(context), DI_reg(context), \
52              (WORD)DS_reg(context), (WORD)ES_reg(context) )
53
54 #endif /* __WINE_MISCEMU_H */