3 #include <stddef.h> /* Definition of NULL */
\r
4 #include <limits.h> /* Definition of UINT_MAX */
\r
5 #include <stdio.h> /* fprintf and (FILE *) */
\r
7 /* Allow external configuration of maximum concurrent XMS allocations */
\r
8 #ifndef MAX_XMS_ALLOCATIONS
\r
9 #define MAX_XMS_ALLOCATIONS 4
\r
12 /* Address of the XMS driver */
\r
13 static long XMSControl;
\r
15 /* Mapping of XMS handle <-> normal pointer */
\r
17 unsigned int XMSHandle;
\r
18 void huge * XMSPointer;
\r
21 static XMSHandleMap allocMapXMS[MAX_XMS_ALLOCATIONS];
\r
23 static int initxms(void);
\r
24 void huge * xmsmalloc(long unsigned int size);
\r
25 void xmsfree(void huge * XMSPointer);
\r
26 void xmsreport(void/*FILE * stream*/);
\r