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