6 printf("Hardware detection demo...\n\n");
\r
7 printf("Graphics Card : ");
\r
8 switch (x_graphics_card()){
\r
9 case NoGraphics: printf("None\n"); break;
\r
10 case MDA: printf("MDA\n"); break;
\r
11 case CGA: printf("CGA\n"); break;
\r
12 case EGAMono: printf("EGA Mono\n"); break;
\r
13 case EGAColor: printf("EGA Color\n"); break;
\r
14 case VGAMono: printf("VGA Mono\n");
\r
15 case VGAColor: printf("VGA Color\n"); break;
\r
16 case MCGAMono: printf("MCGA mono\n"); break;
\r
17 case MCGAColor: printf("MCGA Color\n"); break;
\r
19 printf("Processor : ");
\r
20 switch (processor=x_processor()){
\r
21 case I8086: printf("8088 or 8086\n"); break;
\r
22 case I80186: printf("80186\n"); break;
\r
23 case I80286: printf("80286\n"); break;
\r
24 case I80386SX: printf("80386-SX\n"); break;
\r
25 case I80386DX: printf("80386-DX\n"); break;
\r
28 if (processor==I80486){
\r
29 if (x_coprocessor()) printf("80486-DX or 80486-SX+FPU\n");
\r
30 else printf("80486-SX\n");
\r
32 printf("Math Co-Processor: ");
\r
33 switch (x_coprocessor()){
\r
34 case 0: printf("8088 Assumed\n"); break;
\r
35 case 1: switch (processor=x_processor()){
\r
36 case I8086: printf("80287 Assumed\n"); break;
\r
37 case I80186: printf("80187 Assumed\n"); break;
\r
38 case I80286: printf("0287 Assumed\n"); break;
\r
40 case I80386DX: printf("80387 Assumed\n"); break;
\r
44 printf("Mouse Driver : ");
\r
45 switch (x_mousedriver()){
\r
46 case 0: printf("not installed\n"); break;
\r
48 printf("installed (Mouse Driver vers %d.%d)\n",
\r
49 (MouseVersion>>8),(MouseVersion&0xff));
\r
51 switch (MouseType) {
\r
52 case BUS_MOUSE: printf("Bus Mouse on IRQ");break;
\r
53 case SERIAL_MOUSE: printf("Serial Mouse on IRQ ");break;
\r
54 case INPORT_MOUSE: printf("Inport Mouse on IRQ ");break;
\r
55 case PS2_MOUSE: printf("PS/2 Mouse on IRQ ");break;
\r
56 case HP_MOUSE: printf("HP Mouse on IRQ ");break;
\r
57 default : printf("Unknown Mouse on IRQ ");break;
\r
59 printf("%d with %d buttons.",MouseIRQ, MouseButtonCount);
\r