Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / include / pmimp.h
1 /****************************************************************************
2 *
3 *                   SciTech OS Portability Manager Library
4 *
5 *  ========================================================================
6 *
7 *    The contents of this file are subject to the SciTech MGL Public
8 *    License Version 1.0 (the "License"); you may not use this file
9 *    except in compliance with the License. You may obtain a copy of
10 *    the License at http://www.scitechsoft.com/mgl-license.txt
11 *
12 *    Software distributed under the License is distributed on an
13 *    "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14 *    implied. See the License for the specific language governing
15 *    rights and limitations under the License.
16 *
17 *    The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
18 *
19 *    The Initial Developer of the Original Code is SciTech Software, Inc.
20 *    All Rights Reserved.
21 *
22 *  ========================================================================
23 *
24 * Language:     ANSI C
25 * Environment:  Any
26 *
27 * Description:  Header file declaring all the PM imports structure for the
28 *               current version of the PM library. Included in all code
29 *               that needs to pass the PM imports to BPD files.
30 *
31 ****************************************************************************/
32
33 PM_imports  _VARAPI _PM_imports = {
34     sizeof(PM_imports),
35     PM_getModeType,
36     PM_getBIOSPointer,
37     PM_getA0000Pointer,
38     PM_mapPhysicalAddr,
39     PM_mallocShared,
40     NULL,
41     PM_freeShared,
42     PM_mapToProcess,
43     PM_mapRealPointer,
44     PM_allocRealSeg,
45     PM_freeRealSeg,
46     PM_allocLockedMem,
47     PM_freeLockedMem,
48     PM_callRealMode,
49     PM_int86,
50     PM_int86x,
51     DPMI_int86,
52     PM_availableMemory,
53     PM_getVESABuf,
54     PM_getOSType,
55     PM_fatalError,
56     PM_setBankA,
57     PM_setBankAB,
58     PM_setCRTStart,
59     PM_getCurrentPath,
60     PM_getVBEAFPath,
61     PM_getNucleusPath,
62     PM_getNucleusConfigPath,
63     PM_getUniqueID,
64     PM_getMachineName,
65     VF_available,
66     VF_init,
67     VF_exit,
68     PM_openConsole,
69     PM_getConsoleStateSize,
70     PM_saveConsoleState,
71     PM_restoreConsoleState,
72     PM_closeConsole,
73     PM_setOSCursorLocation,
74     PM_setOSScreenWidth,
75     PM_enableWriteCombine,
76     PM_backslash,
77     PM_lockDataPages,
78     PM_unlockDataPages,
79     PM_lockCodePages,
80     PM_unlockCodePages,
81     PM_setRealTimeClockHandler,
82     PM_setRealTimeClockFrequency,
83     PM_restoreRealTimeClockHandler,
84     PM_doBIOSPOST,
85     PM_getBootDrive,
86     PM_freePhysicalAddr,
87     PM_inpb,
88     PM_inpw,
89     PM_inpd,
90     PM_outpb,
91     PM_outpw,
92     PM_outpd,
93     NULL,
94     PM_setSuspendAppCallback,
95     PM_haveBIOSAccess,
96     PM_kbhit,
97     PM_getch,
98     PM_findBPD,
99     PM_getPhysicalAddr,
100     PM_sleep,
101     PM_getCOMPort,
102     PM_getLPTPort,
103     PM_loadLibrary,
104     PM_getProcAddress,
105     PM_freeLibrary,
106     PCI_enumerate,
107     PCI_accessReg,
108     PCI_setHardwareIRQ,
109     PCI_generateSpecialCyle,
110     NULL,
111     PCIBIOS_getEntry,
112     CPU_getProcessorType,
113     CPU_haveMMX,
114     CPU_have3DNow,
115     CPU_haveSSE,
116     CPU_haveRDTSC,
117     CPU_getProcessorSpeed,
118     ZTimerInit,
119     LZTimerOn,
120     LZTimerLap,
121     LZTimerOff,
122     LZTimerCount,
123     LZTimerOnExt,
124     LZTimerLapExt,
125     LZTimerOffExt,
126     LZTimerCountExt,
127     ULZTimerOn,
128     ULZTimerLap,
129     ULZTimerOff,
130     ULZTimerCount,
131     ULZReadTime,
132     ULZElapsedTime,
133     ULZTimerResolution,
134     PM_findFirstFile,
135     PM_findNextFile,
136     PM_findClose,
137     PM_makepath,
138     PM_splitpath,
139     PM_driveValid,
140     PM_getdcwd,
141     PM_setFileAttr,
142     PM_mkdir,
143     PM_rmdir,
144     PM_getFileAttr,
145     PM_getFileTime,
146     PM_setFileTime,
147     CPU_getProcessorName,
148     PM_getVGAStateSize,
149     PM_saveVGAState,
150     PM_restoreVGAState,
151     PM_vgaBlankDisplay,
152     PM_vgaUnblankDisplay,
153     PM_blockUntilTimeout,
154     _PM_add64,
155     _PM_sub64,
156     _PM_mul64,
157     _PM_div64,
158     _PM_shr64,
159     _PM_sar64,
160     _PM_shl64,
161     _PM_neg64,
162     PCI_findBARSize,
163     PCI_readRegBlock,
164     PCI_writeRegBlock,
165     PM_flushTLB,
166     PM_useLocalMalloc,
167     PM_malloc,
168     PM_calloc,
169     PM_realloc,
170     PM_free,
171     PM_getPhysicalAddrRange,
172     PM_allocPage,
173     PM_freePage,
174     PM_agpInit,
175     PM_agpExit,
176     PM_agpReservePhysical,
177     PM_agpReleasePhysical,
178     PM_agpCommitPhysical,
179     PM_agpFreePhysical,
180     PCI_getNumDevices,
181     PM_setLocalBPDPath,
182 #ifdef __WINDOWS32__
183     PM_loadDirectDraw,
184     PM_unloadDirectDraw,
185     PM_getDirectDrawWindow,
186     PM_doSuspendApp,
187 #else
188     NULL,
189     NULL,
190     NULL,
191     NULL,
192 #endif
193     };