mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 08:46:29 +00:00
9ea19e54cb
Wed Jan 1 15:36:17 1997 Alexandre Julliard <julliard@lrc.epfl.ch> * [controls/listbox.c] Use FindFirstFile/FindNextFile in LISTBOX_Directory. * [files/dos_fs.c] Rewrote FindFirstFile/FindNextFile to use DOSFS_FindNext(). * [files/file.c] [files/directory.c] Use Win32 kernel objects and handles for file handles. Unified SearchPath() and OpenFile(). * [loader/builtin.c] Moved to if1632/ directory. * [tools/build.c] [debugger/*] [miscemu/*] Win16 register functions now receive the same CONTEXT * structure as Win32 functions. * [include/sigcontext.h] [miscemu/instr.c] Added new macros to get register values from the SIGCONTEXT structure (only used for instruction emulation now). * [scheduler/process.c] [scheduler/thread.c] (New files) Allocate process and thread structures. * [scheduler/process.c] [win32/k32obj.c] Added Win32 kernel objects and handles management. * [loader/task.c] Create a Win32 process and thread for every Win16 task. * [misc/commdlg.c] [misc/shell.c] [windows/msgbox.c] Built-in resources are now in Win32 format. This also avoids 16-bit callbacks for built-in dialogs. * [misc/lzexpand.c] Differentiate between 16-bit and 32-bit file handles. * [miscemu/int*.c] Moved all int emulation to msdos/ directory. * [msdos/*] New directory msdos/ contains all MS-DOS emulation code that can also be used for Winelib; this should enable Winelib apps to use DOS3Call and related functions. * [rc/winerc.c] A few bug fixes for Win32 resource format. * [windows/winpos.c] Hack in WINPOS_ReorderOwnerPopups() to avoid X crashed (still not right though). Sun Dec 29 17:47:55 1996 O. Flebbe <flebbe@science-computing.uni-tuebingen.de> * [loader/pe_image.c] Make sure BSS of a PE_Image is zero. Sat Dec 28 22:15:34 1996 Alex Korobka <alex@trantor.pharm.sunysb.edu> * [windows/scroll.c] ScrollWindowEx() rewrite, ScrollDC() fix. * [windows/nonclient.c] [controls/menu.c] Fixed Alt-Space crashes in dialogs. * [windows/event.c] [windows/message.c] Some changes in mouse message generation. Thu Dec 26 09:25:24 1996 Philippe De Muyter <phdm@info.ucl.ac.be> * [debugger/stabs.c] Dummy DEBUG_ReadExecutableDbgInfo provided for !__ELF__ case. Tue Dec 24 00:59:05 MET 1996 Martin Buck <martin-2.buck@student.uni-ulm.de> * [windows/event.c] Changed XK_Page_{Up,Down} to XK_{Prior,Next} for X11R5 compatibility.
70 lines
1.8 KiB
C
70 lines
1.8 KiB
C
/*
|
|
* BIOS interrupt 11h handler
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "miscemu.h"
|
|
#include "msdos.h"
|
|
#include "drive.h"
|
|
#include "stddebug.h"
|
|
#include "debug.h"
|
|
|
|
/**********************************************************************
|
|
* INT_Int11Handler
|
|
*
|
|
* Handler for int 11h (get equipment list).
|
|
*/
|
|
void INT_Int11Handler( CONTEXT *context )
|
|
{
|
|
int diskdrives = 0;
|
|
int parallelports = 0;
|
|
int serialports = 0;
|
|
int x;
|
|
|
|
/* borrowed from Ralph Brown's interrupt lists
|
|
|
|
bits 15-14: number of parallel devices
|
|
bit 13: [Conv] Internal modem
|
|
bit 12: reserved
|
|
bits 11- 9: number of serial devices
|
|
bit 8: reserved
|
|
bits 7- 6: number of diskette drives minus one
|
|
bits 5- 4: Initial video mode:
|
|
00b = EGA,VGA,PGA
|
|
01b = 40 x 25 color
|
|
10b = 80 x 25 color
|
|
11b = 80 x 25 mono
|
|
bit 3: reserved
|
|
bit 2: [PS] =1 if pointing device
|
|
[non-PS] reserved
|
|
bit 1: =1 if math co-processor
|
|
bit 0: =1 if diskette available for boot
|
|
*/
|
|
/* Currently the only of these bits correctly set are:
|
|
bits 15-14 } Added by William Owen Smith,
|
|
bits 11-9 } wos@dcs.warwick.ac.uk
|
|
bits 7-6
|
|
bit 2 (always set)
|
|
*/
|
|
|
|
if (DRIVE_IsValid(0)) diskdrives++;
|
|
if (DRIVE_IsValid(1)) diskdrives++;
|
|
if (diskdrives) diskdrives--;
|
|
|
|
for (x=0; x!=MAX_PORTS; x++)
|
|
{
|
|
if (COM[x].devicename)
|
|
serialports++;
|
|
if (LPT[x].devicename)
|
|
parallelports++;
|
|
}
|
|
if (serialports > 7) /* 3 bits -- maximum value = 7 */
|
|
serialports=7;
|
|
if (parallelports > 3) /* 2 bits -- maximum value = 3 */
|
|
parallelports=3;
|
|
|
|
AX_reg(context) = (diskdrives << 6) | (serialports << 9) |
|
|
(parallelports << 14) | 0x02;
|
|
}
|