summaryrefslogtreecommitdiff
path: root/board/MAI/bios_emulator/scitech/include/pmimp.h
blob: 817f5e6a21447a5683e1b1710101228a3a37d31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/****************************************************************************
*
*                   SciTech OS Portability Manager Library
*
*  ========================================================================
*
*    The contents of this file are subject to the SciTech MGL Public
*    License Version 1.0 (the "License"); you may not use this file
*    except in compliance with the License. You may obtain a copy of
*    the License at http://www.scitechsoft.com/mgl-license.txt
*
*    Software distributed under the License is distributed on an
*    "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
*    implied. See the License for the specific language governing
*    rights and limitations under the License.
*
*    The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
*
*    The Initial Developer of the Original Code is SciTech Software, Inc.
*    All Rights Reserved.
*
*  ========================================================================
*
* Language:     ANSI C
* Environment:  Any
*
* Description:  Header file declaring all the PM imports structure for the
*               current version of the PM library. Included in all code
*               that needs to pass the PM imports to BPD files.
*
****************************************************************************/

PM_imports  _VARAPI _PM_imports = {
    sizeof(PM_imports),
    PM_getModeType,
    PM_getBIOSPointer,
    PM_getA0000Pointer,
    PM_mapPhysicalAddr,
    PM_mallocShared,
    NULL,
    PM_freeShared,
    PM_mapToProcess,
    PM_mapRealPointer,
    PM_allocRealSeg,
    PM_freeRealSeg,
    PM_allocLockedMem,
    PM_freeLockedMem,
    PM_callRealMode,
    PM_int86,
    PM_int86x,
    DPMI_int86,
    PM_availableMemory,
    PM_getVESABuf,
    PM_getOSType,
    PM_fatalError,
    PM_setBankA,
    PM_setBankAB,
    PM_setCRTStart,
    PM_getCurrentPath,
    PM_getVBEAFPath,
    PM_getNucleusPath,
    PM_getNucleusConfigPath,
    PM_getUniqueID,
    PM_getMachineName,
    VF_available,
    VF_init,
    VF_exit,
    PM_openConsole,
    PM_getConsoleStateSize,
    PM_saveConsoleState,
    PM_restoreConsoleState,
    PM_closeConsole,
    PM_setOSCursorLocation,
    PM_setOSScreenWidth,
    PM_enableWriteCombine,
    PM_backslash,
    PM_lockDataPages,
    PM_unlockDataPages,
    PM_lockCodePages,
    PM_unlockCodePages,
    PM_setRealTimeClockHandler,
    PM_setRealTimeClockFrequency,
    PM_restoreRealTimeClockHandler,
    PM_doBIOSPOST,
    PM_getBootDrive,
    PM_freePhysicalAddr,
    PM_inpb,
    PM_inpw,
    PM_inpd,
    PM_outpb,
    PM_outpw,
    PM_outpd,
    NULL,
    PM_setSuspendAppCallback,
    PM_haveBIOSAccess,
    PM_kbhit,
    PM_getch,
    PM_findBPD,
    PM_getPhysicalAddr,
    PM_sleep,
    PM_getCOMPort,
    PM_getLPTPort,
    PM_loadLibrary,
    PM_getProcAddress,
    PM_freeLibrary,
    PCI_enumerate,
    PCI_accessReg,
    PCI_setHardwareIRQ,
    PCI_generateSpecialCyle,
    NULL,
    PCIBIOS_getEntry,
    CPU_getProcessorType,
    CPU_haveMMX,
    CPU_have3DNow,
    CPU_haveSSE,
    CPU_haveRDTSC,
    CPU_getProcessorSpeed,
    ZTimerInit,
    LZTimerOn,
    LZTimerLap,
    LZTimerOff,
    LZTimerCount,
    LZTimerOnExt,
    LZTimerLapExt,
    LZTimerOffExt,
    LZTimerCountExt,
    ULZTimerOn,
    ULZTimerLap,
    ULZTimerOff,
    ULZTimerCount,
    ULZReadTime,
    ULZElapsedTime,
    ULZTimerResolution,
    PM_findFirstFile,
    PM_findNextFile,
    PM_findClose,
    PM_makepath,
    PM_splitpath,
    PM_driveValid,
    PM_getdcwd,
    PM_setFileAttr,
    PM_mkdir,
    PM_rmdir,
    PM_getFileAttr,
    PM_getFileTime,
    PM_setFileTime,
    CPU_getProcessorName,
    PM_getVGAStateSize,
    PM_saveVGAState,
    PM_restoreVGAState,
    PM_vgaBlankDisplay,
    PM_vgaUnblankDisplay,
    PM_blockUntilTimeout,
    _PM_add64,
    _PM_sub64,
    _PM_mul64,
    _PM_div64,
    _PM_shr64,
    _PM_sar64,
    _PM_shl64,
    _PM_neg64,
    PCI_findBARSize,
    PCI_readRegBlock,
    PCI_writeRegBlock,
    PM_flushTLB,
    PM_useLocalMalloc,
    PM_malloc,
    PM_calloc,
    PM_realloc,
    PM_free,
    PM_getPhysicalAddrRange,
    PM_allocPage,
    PM_freePage,
    PM_agpInit,
    PM_agpExit,
    PM_agpReservePhysical,
    PM_agpReleasePhysical,
    PM_agpCommitPhysical,
    PM_agpFreePhysical,
    PCI_getNumDevices,
    PM_setLocalBPDPath,
#ifdef __WINDOWS32__
    PM_loadDirectDraw,
    PM_unloadDirectDraw,
    PM_getDirectDrawWindow,
    PM_doSuspendApp,
#else
    NULL,
    NULL,
    NULL,
    NULL,
#endif
    };