]> 4ch.mooo.com Git - 16.git/blob - 16/xlib/xdetect.h
more
[16.git] / 16 / xlib / xdetect.h
1 /*-----------------------------------------------------------------------\r
2 ;\r
3 ; XDETECT - header file\r
4 ;\r
5 ;\r
6 ;\r
7 ; ****** XLIB - Mode X graphics library                ****************\r
8 ; ******                                               ****************\r
9 ; ****** Written By Themie Gouthas                     ****************\r
10 ;\r
11 ; egg@dstos3.dsto.gov.au\r
12 ; teg@bart.dsto.gov.au\r
13 ;\r
14 ;  Terminology & notes:\r
15 ;         VRAM ==   Video RAM\r
16 ;         SRAM ==   System RAM\r
17 ;         X coordinates are in pixels unless explicitly stated\r
18 ;\r
19 ;-----------------------------------------------------------------------*/\r
20 \r
21 #ifndef _XDETECT_H_\r
22 #define _XDETECT_H_\r
23 \r
24 #define I8086    0\r
25 #define I80186   1\r
26 #define I80286   2\r
27 #define I80386SX 3\r
28 #define I80386DX 4\r
29 #define I80486   5\r
30 \r
31 #define NoGraphics 0\r
32 #define MDA        1\r
33 #define CGA        2\r
34 #define EGAMono    3\r
35 #define EGAColor   4\r
36 #define VGAMono    5\r
37 #define VGAColor   6\r
38 #define MCGAMono   7\r
39 #define MCGAColor  8\r
40 \r
41 #define BUS_MOUSE     1\r
42 #define SERIAL_MOUSE  2\r
43 #define INPORT_MOUSE  3\r
44 #define PS2_MOUSE     4\r
45 #define HP_MOUSE      5\r
46 \r
47 /* VARIABLES =========================================================== */\r
48 \r
49 extern WORD MouseButtonCount;  /* number of mouse buttons */\r
50 extern WORD MouseVersion;      /* mouse driver version    */\r
51 extern WORD MouseType;         /* mouse type              */\r
52 extern WORD MouseIRQ;          /* mouse IRQ number        */\r
53 \r
54 /* FUNCTIONS =========================================================== */\r
55 \r
56 #ifdef __cplusplus\r
57 extern "C" {\r
58 #endif\r
59 \r
60  int x_graphics_card(void);  /* Detect installed Graphics card type */\r
61  int x_processor(void);      /* Detect processor type */\r
62  int x_coprocessor(void);    /* Detect math co-processor type */\r
63  int x_mousedriver(void);    /* Detect math co-processor type */\r
64 \r
65 #ifdef __cplusplus\r
66 }\r
67 #endif\r
68 \r
69 #endif\r
70 \r
71 \r