2 * Misc. emulation definitions
4 * Copyright 1995 Alexandre Julliard
7 #ifndef __WINE_MISCEMU_H
8 #define __WINE_MISCEMU_H
14 extern HANDLE16 DOSMEM_BiosSeg
;
15 extern DWORD DOSMEM_CollateTable
;
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 */
26 /* msdos/interrupts.c */
27 extern FARPROC16
INT_GetHandler( BYTE intnum
);
28 extern void INT_SetHandler( BYTE intnum
, FARPROC16 handler
);
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
);
36 extern DWORD
INT1A_GetTicksSinceMidnight(void);
39 extern BOOL32
SIGNAL_Init(void);
40 extern void SIGNAL_SetHandler( int sig
, void (*func
)(), int flags
);
41 extern void SIGNAL_MaskAsyncEvents( BOOL32 flag
);
44 extern BOOL32
SIGNAL_InitEmulator(void);
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) )
54 #endif /* __WINE_MISCEMU_H */