1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
3 * DOS interrupt 2fh handler
5 * Cdrom - device driver emulation - Audio features.
6 * (c) 1998 Petr Tomasek <tomasek@etf.cuni.cz>
12 #include "wine/winbase16.h"
18 /* #define DEBUG_INT */
19 #include "debugtools.h"
22 DEFAULT_DEBUG_CHANNEL(int);
24 /* base WPROCS.DLL ordinal number for VxDs */
27 static void do_int2f_16( CONTEXT86
*context
);
28 static void MSCDEX_Handler( CONTEXT86
*context
);
30 /**********************************************************************
33 * Handler for int 2fh (multiplex).
35 void WINAPI
INT_Int2fHandler( CONTEXT86
*context
)
37 TRACE("Subfunction 0x%X\n", AX_reg(context
));
39 switch(AH_reg(context
))
42 AL_reg(context
) = 0xff; /* share is installed */
45 case 0x11: /* Network Redirector / IFSFUNC */
46 switch (LOBYTE(context
->Eax
))
48 case 0x00: /* Install check */
51 case 0x80: /* Enhanced services - Install check */
55 INT_BARF( context
, 0x2f );
61 switch (LOBYTE(context
->Eax
))
63 case 0x2e: /* get or set DOS error table address */
64 switch (DL_reg(context
))
66 /* Four tables: even commands are 'get', odd are 'set' */
67 /* DOS 5.0+ ignores "set" commands */
74 /* Instead of having a message table in DOS-space, */
75 /* we can use a special case for MS-DOS to force */
76 /* the secondary interface. */
81 context
->SegEs
= 0x0001;
82 DI_reg(context
) = 0x0000;
85 FIXME("No real-mode handler for errors yet! (bye!)\n");
88 INT_BARF(context
, 0x2f);
92 INT_BARF(context
, 0x2f);
96 case 0x15: /* mscdex */
97 MSCDEX_Handler(context
);
101 do_int2f_16( context
);
104 case 0x1a: /* ANSI.SYS / AVATAR.SYS Install Check */
105 /* Not supported yet, do nothing */
110 switch (LOBYTE(context
->Eax
))
112 case 0x00: /* XMS v2+ installation check */
113 WARN("XMS is not fully implemented\n");
114 AL_reg(context
) = 0x80;
116 case 0x10: /* XMS v2+ get driver address */
118 context
->SegEs
= DOSMEM_xms_seg
;
123 INT_BARF( context
, 0x2f );
126 FIXME("check for XMS (not supported)\n");
127 AL_reg(context
) = 0x42; /* != 0x80 */
132 switch (LOBYTE(context
->Eax
))
143 /* Microsoft Profiler - not installed */
146 INT_BARF( context
, 0x2f );
151 switch(LOBYTE(context
->Eax
))
153 case 0x10: /* smartdrv */
154 break; /* not installed */
155 case 0x11: /* dblspace */
156 break; /* not installed */
157 case 0x12: /* realtime compression interface */
158 break; /* not installed */
159 case 0x32: /* patch IO.SYS (???) */
160 break; /* we have no IO.SYS, so we can't patch it :-/ */
162 INT_BARF( context
, 0x2f );
166 switch(LOBYTE(context
->Eax
))
173 FIXME("Task Switcher - not implemented\n");
176 INT_BARF( context
, 0x2f );
179 case 0x56: /* INTERLNK */
180 switch(LOBYTE(context
->Eax
))
182 case 0x01: /* check if redirected drive */
183 AL_reg(context
) = 0; /* not redirected */
186 INT_BARF( context
, 0x2f );
189 case 0x7a: /* NOVELL NetWare */
190 switch (LOBYTE(context
->Eax
))
192 case 0x0: /* Low-level Netware installation check AL=0 not installed.*/
195 case 0x20: /* Get VLM Call Address */
196 /* return nothing -> NetWare not installed */
199 INT_BARF( context
, 0x2f );
203 case 0xb7: /* append */
204 LOBYTE(context
->Eax
) = 0; /* not installed */
206 case 0xb8: /* network */
207 switch (LOBYTE(context
->Eax
))
209 case 0x00: /* Install check */
213 INT_BARF( context
, 0x2f );
217 case 0xbd: /* some Novell network install check ??? */
218 AX_reg(context
) = 0xa5a5; /* pretend to have Novell IPX installed */
220 case 0xbf: /* REDIRIFS.EXE */
221 switch (LOBYTE(context
->Eax
))
223 case 0x00: /* Install check */
227 INT_BARF( context
, 0x2f );
232 switch(LOBYTE(context
->Eax
))
234 case 0x01: /* Quarterdeck RPCI - QEMM/QRAM - PCL-838.EXE functions */
235 if(BX_reg(context
) == 0x5145 && CX_reg(context
) == 0x4D4D
236 && DX_reg(context
) == 0x3432)
237 TRACE("Check for QEMM v5.0+ (not installed)\n");
240 INT_BARF( context
, 0x2f );
244 case 0xd7: /* Banyan Vines */
245 switch (LOBYTE(context
->Eax
))
247 case 0x01: /* Install check - Get Int Number */
251 INT_BARF( context
, 0x2f );
256 switch(LOBYTE(context
->Eax
))
258 case 0x01: /* Quarterdeck QDPMI.SYS - DESQview */
259 if(BX_reg(context
) == 0x4450 && CX_reg(context
) == 0x4d49
260 && DX_reg(context
) == 0x8f4f)
261 TRACE("Check for QDPMI.SYS (not installed)\n");
264 INT_BARF( context
, 0x2f );
268 case 0xfa: /* Watcom debugger check, returns 0x666 if installed */
271 INT_BARF( context
, 0x2f );
277 /**********************************************************************
280 static void do_int2f_16( CONTEXT86
*context
)
284 switch(LOBYTE(context
->Eax
))
286 case 0x00: /* Windows enhanced mode installation check */
287 AX_reg(context
) = (GetWinFlags16() & WF_ENHANCED
) ?
288 LOWORD(GetVersion16()) : 0;
291 case 0x0a: /* Get Windows version and type */
293 BX_reg(context
) = (LOWORD(GetVersion16()) << 8) |
294 (LOWORD(GetVersion16()) >> 8);
295 CX_reg(context
) = (GetWinFlags16() & WF_ENHANCED
) ? 3 : 2;
298 case 0x0b: /* Identify Windows-aware TSRs */
299 /* we don't have any pre-Windows TSRs */
302 case 0x11: /* Get Shell Parameters - (SHELL= in CONFIG.SYS) */
303 /* We can mock this up. But not today... */
304 FIXME("Get Shell Parameters\n");
307 case 0x80: /* Release time-slice */
311 case 0x81: /* Begin critical section. */
315 case 0x82: /* End critical section. */
319 case 0x83: /* Return Current Virtual Machine ID */
320 /* Virtual Machines are usually created/destroyed when Windows runs
321 * DOS programs. Since we never do, we are always in the System VM.
322 * According to Ralf Brown's Interrupt List, never return 0. But it
323 * seems to work okay (returning 0), just to be sure we return 1.
325 BX_reg(context
) = 1; /* VM 1 is probably the System VM */
328 case 0x84: /* Get device API entry point */
330 HMODULE16 mod
= GetModuleHandle16("wprocs");
331 if (mod
< 32) mod
= LoadLibrary16( "wprocs" );
332 addr
= (DWORD
)GetProcAddress16( mod
, (LPCSTR
)(VXD_BASE
+ BX_reg(context
)) );
333 if (!addr
) /* not supported */
334 ERR("Accessing unknown VxD %04x - Expect a failure now.\n", BX_reg(context
) );
335 context
->SegEs
= SELECTOROF(addr
);
336 DI_reg(context
) = OFFSETOF(addr
);
340 case 0x86: /* DPMI detect mode */
341 AX_reg(context
) = 0; /* Running under DPMI */
344 case 0x87: /* DPMI installation check */
345 #if 1 /* DPMI still breaks pkunzip */
346 if (ISV86(context
)) break; /* so bail out for now if in v86 mode */
351 AX_reg(context
) = 0x0000; /* DPMI Installed */
352 BX_reg(context
) = 0x0001; /* 32bits available */
353 CL_reg(context
) = si
.wProcessorLevel
;
354 DX_reg(context
) = 0x005a; /* DPMI major/minor 0.90 */
355 SI_reg(context
) = 0; /* # of para. of DOS extended private data */
356 context
->SegEs
= DOSMEM_dpmi_seg
;
357 DI_reg(context
) = 0; /* ES:DI is DPMI switch entry point */
360 case 0x8a: /* DPMI get vendor-specific API entry point. */
361 /* The 1.0 specs say this should work with all 0.9 hosts. */
365 INT_BARF( context
, 0x2f );
369 /* FIXME: this macro may have to be changed on architectures where <size> reads/writes
370 * must be <size> aligned
371 * <size> could be WORD, DWORD...
372 * in this case, we would need two macros, one for read, the other one for write
373 * Note: PTR_AT can be used as an l-value
375 #define PTR_AT(_ptr, _ofs, _typ) (*((_typ*)(((char*)_ptr)+(_ofs))))
377 /* Use #if 1 if you want full int 2f debug... normal users can leave it at 0 */
379 /**********************************************************************
380 * MSCDEX_Dump [internal]
382 * Dumps mscdex requests to int debug channel.
384 static void MSCDEX_Dump(char* pfx
, BYTE
* req
, int dorealmode
)
392 ptr
+= sprintf(ptr
, "%s\tCommand => ", pfx
);
393 for (i
= 0; i
< req
[0]; i
++) {
394 ptr
+= sprintf(ptr
, "%02x ", req
[i
]);
400 ptr
+= sprintf(ptr
, "\n\t\t\t\tIO_struct => ");
401 ios
= (dorealmode
) ? PTR_REAL_TO_LIN( PTR_AT(req
, 16, WORD
), PTR_AT(req
, 14, WORD
)) :
402 PTR_SEG_OFF_TO_LIN(PTR_AT(req
, 16, WORD
), PTR_AT(req
, 14, WORD
));
404 for (i
= 0; i
< PTR_AT(req
, 18, WORD
); i
++) {
405 ptr
+= sprintf(ptr
, "%02x ", ios
[i
]);
406 if ((i
& 0x1F) == 0x1F) {
416 #define MSCDEX_Dump(pfx, req, drm)
419 static void MSCDEX_StoreMSF(DWORD frame
, BYTE
* val
)
421 val
[3] = 0; /* zero */
422 val
[2] = frame
/ CDFRAMES_PERMIN
; /* minutes */
423 val
[1] = (frame
- CDFRAMES_PERMIN
* val
[2]) / CDFRAMES_PERSEC
; /* seconds */
424 val
[0] = frame
- CDFRAMES_PERMIN
* val
[2] - CDFRAMES_PERSEC
* val
[1]; /* frames */
427 static void MSCDEX_Handler(CONTEXT86
* context
)
432 switch(LOBYTE(context
->Eax
)) {
433 case 0x00: /* Installation check */
434 /* Count the number of contiguous CDROM drives
436 for (drive
= count
= 0; drive
< MAX_DOS_DRIVES
; drive
++) {
437 if (DRIVE_GetType(drive
) == TYPE_CDROM
) {
438 while (DRIVE_GetType(drive
+ count
) == TYPE_CDROM
) count
++;
442 TRACE("Installation check: %d cdroms, starting at %d\n", count
, drive
);
443 BX_reg(context
) = count
;
444 CX_reg(context
) = (drive
< MAX_DOS_DRIVES
) ? drive
: 0;
447 case 0x0B: /* drive check */
448 AX_reg(context
) = (DRIVE_GetType(CX_reg(context
)) == TYPE_CDROM
);
449 BX_reg(context
) = 0xADAD;
452 case 0x0C: /* get version */
453 BX_reg(context
) = 0x020a;
454 TRACE("Version number => %04x\n", BX_reg(context
));
457 case 0x0D: /* get drive letters */
458 p
= CTX_SEG_OFF_TO_LIN(context
, context
->SegEs
, context
->Ebx
);
459 memset(p
, 0, MAX_DOS_DRIVES
);
460 for (drive
= 0; drive
< MAX_DOS_DRIVES
; drive
++) {
461 if (DRIVE_GetType(drive
) == TYPE_CDROM
) *p
++ = drive
;
463 TRACE("Get drive letters\n");
466 case 0x10: /* direct driver access */
468 static WINE_CDAUDIO wcda
;
470 BYTE
* driver_request
;
472 BYTE Error
= 255; /* No Error */
473 int dorealmode
= ISV86(context
);
475 driver_request
= CTX_SEG_OFF_TO_LIN(context
, context
->SegEs
, context
->Ebx
);
477 if (!driver_request
) {
478 /* FIXME - to be deleted ?? */
479 ERR("ES:BX==0 ! SEGFAULT ?\n");
480 ERR("-->BX=0x%04x, ES=0x%04lx, DS=0x%04lx, CX=0x%04x\n",
481 BX_reg(context
), context
->SegEs
, context
->SegDs
, CX_reg(context
));
482 driver_request
[4] |= 0x80;
483 driver_request
[3] = 5; /* bad request length */
487 * - the current implementation only supports a single CD ROM
489 CDROM_Open(&wcda
, -1);
490 dev
= CDROM_OpenDev(&wcda
);
491 TRACE("CDROM device driver -> command <%d>\n", (unsigned char)driver_request
[2]);
494 drive
< MAX_DOS_DRIVES
&& DRIVE_GetType(drive
) != TYPE_CDROM
;
496 /* drive contains the first CD ROM */
497 if (CX_reg(context
) != drive
) {
498 WARN("Request made doesn't match a CD ROM drive (%d/%d)\n", CX_reg(context
), drive
);
499 driver_request
[4] |= 0x80;
500 driver_request
[3] = 1; /* unknown unit */
504 MSCDEX_Dump("Beg", driver_request
, dorealmode
);
506 /* set status to 0 */
507 PTR_AT(driver_request
, 3, WORD
) = 0;
508 CDROM_Audio_GetCDStatus(&wcda
, dev
);
510 switch (driver_request
[2]) {
512 io_stru
= (dorealmode
) ?
513 PTR_REAL_TO_LIN( PTR_AT(driver_request
, 16, WORD
), PTR_AT(driver_request
, 14, WORD
) ) :
514 PTR_SEG_OFF_TO_LIN(PTR_AT(driver_request
, 16, WORD
), PTR_AT(driver_request
, 14, WORD
));
516 TRACE(" --> IOCTL INPUT <%d>\n", io_stru
[0]);
517 switch (io_stru
[0]) {
519 case 0: /* Get device Header */
521 static LPSTR ptr
= 0;
523 ptr
= SEGPTR_ALLOC(22);
524 PTR_AT(ptr
, 0, DWORD
) = ~1; /* Next Device Driver */
525 PTR_AT(ptr
, 4, WORD
) = 0xC800; /* Device attributes */
526 PTR_AT(ptr
, 6, WORD
) = 0x1234; /* Pointer to device strategy routine: FIXME */
527 PTR_AT(ptr
, 8, WORD
) = 0x3142; /* Pointer to device interrupt routine: FIXME */
528 PTR_AT(ptr
, 10, char) = 'W'; /* 8-byte character device name field */
529 PTR_AT(ptr
, 11, char) = 'I';
530 PTR_AT(ptr
, 12, char) = 'N';
531 PTR_AT(ptr
, 13, char) = 'E';
532 PTR_AT(ptr
, 14, char) = '_';
533 PTR_AT(ptr
, 15, char) = 'C';
534 PTR_AT(ptr
, 16, char) = 'D';
535 PTR_AT(ptr
, 17, char) = '_';
536 PTR_AT(ptr
, 18, WORD
) = 0; /* Reserved (must be zero) */
537 PTR_AT(ptr
, 20, BYTE
) = 0; /* Drive letter (must be zero) */
538 PTR_AT(ptr
, 21, BYTE
) = 1; /* Number of units supported (one or more) FIXME*/
540 PTR_AT(io_stru
, DWORD
, 0) = SEGPTR_GET(ptr
);
545 case 1: /* location of head */
546 switch (io_stru
[1]) {
548 PTR_AT(io_stru
, 2, DWORD
) = wcda
.dwCurFrame
;
551 MSCDEX_StoreMSF(wcda
.dwCurFrame
, io_stru
+ 2);
554 ERR("CD-ROM driver: unsupported addressing mode !!\n");
557 TRACE(" ----> HEAD LOCATION <%ld>\n", PTR_AT(io_stru
, 2, DWORD
));
560 case 4: /* Audio channel info */
569 TRACE(" ----> AUDIO CHANNEL INFO\n");
572 case 6: /* device status */
573 PTR_AT(io_stru
, 1, DWORD
) = 0x00000290;
575 * 1 Supports HSG and Red Book addressing modes
576 * 0 Supports audio channel manipulation
578 * 1 Supports prefetching requests
581 * 1 Data read and plays audio/video tracks
584 * 0 Supports only cooked reading
586 * 0 see below (Door closed/opened)
588 if (wcda
.cdaMode
== WINE_CDA_OPEN
)
590 TRACE(" ----> DEVICE STATUS <0x%08lx>\n", PTR_AT(io_stru
, 1, DWORD
));
593 case 8: /* Volume size */
594 PTR_AT(io_stru
, 1, DWORD
) = wcda
.dwLastFrame
;
595 TRACE(" ----> VOLUME SIZE <%ld>\n", PTR_AT(io_stru
, 1, DWORD
));
598 case 9: /* media changed ? */
599 /* answers don't know... -1/1 for yes/no would be better */
600 io_stru
[1] = 0; /* FIXME? 1? */
601 TRACE(" ----> MEDIA CHANGED <%d>\n", io_stru
[1]);
604 case 10: /* audio disk info */
605 io_stru
[1] = wcda
.nFirstTrack
; /* starting track of the disc */
606 io_stru
[2] = wcda
.nLastTrack
; /* ending track */
607 MSCDEX_StoreMSF(wcda
.dwLastFrame
, io_stru
+ 3);
609 TRACE(" ----> AUDIO DISK INFO <%d-%d/%08lx>\n",
610 io_stru
[1], io_stru
[2], PTR_AT(io_stru
, 3, DWORD
));
613 case 11: /* audio track info */
614 if (io_stru
[1] >= wcda
.nFirstTrack
&& io_stru
[1] <= wcda
.nLastTrack
) {
615 int nt
= io_stru
[1] - wcda
.nFirstTrack
;
616 MSCDEX_StoreMSF(wcda
.lpdwTrackPos
[nt
], io_stru
+ 2);
617 /* starting point if the track */
618 io_stru
[6] = (wcda
.lpbTrackFlags
[nt
] & 0xF0) >> 4;
620 PTR_AT(io_stru
, 2, DWORD
) = 0;
623 TRACE(" ----> AUDIO TRACK INFO[%d] = [%08lx:%d]\n",
624 io_stru
[1], PTR_AT(io_stru
, 2, DWORD
), io_stru
[6]);
627 case 12: /* get Q-Channel info */
628 io_stru
[1] = wcda
.lpbTrackFlags
[wcda
.nCurTrack
- 1];
629 io_stru
[2] = wcda
.nCurTrack
;
630 io_stru
[3] = 0; /* FIXME ?? */
632 /* why the heck did MS use another format for 0MSF information... sigh */
636 MSCDEX_StoreMSF(wcda
.dwCurFrame
- wcda
.lpdwTrackPos
[wcda
.nCurTrack
- 1], bTmp
);
637 io_stru
[ 4] = bTmp
[2];
638 io_stru
[ 5] = bTmp
[1];
639 io_stru
[ 6] = bTmp
[0];
642 MSCDEX_StoreMSF(wcda
.dwCurFrame
, bTmp
);
643 io_stru
[ 8] = bTmp
[2];
644 io_stru
[ 9] = bTmp
[1];
645 io_stru
[10] = bTmp
[0];
648 TRACE("Q-Channel info: Ctrl/adr=%02x TNO=%02x X=%02x rtt=%02x:%02x:%02x rtd=%02x:%02x:%02x (cf=%08lx, tp=%08lx)\n",
649 io_stru
[ 1], io_stru
[ 2], io_stru
[ 3],
650 io_stru
[ 4], io_stru
[ 5], io_stru
[ 6],
651 io_stru
[ 8], io_stru
[ 9], io_stru
[10],
652 wcda
.dwCurFrame
, wcda
.lpdwTrackPos
[wcda
.nCurTrack
- 1]);
655 case 15: /* Audio status info */
656 /* !!!! FIXME FIXME FIXME !! */
657 PTR_AT(io_stru
, 1, WORD
) = 2 | ((wcda
.cdaMode
== WINE_CDA_PAUSE
) ? 1 : 0);
658 if (wcda
.cdaMode
== WINE_CDA_OPEN
) {
659 PTR_AT(io_stru
, 3, DWORD
) = 0;
660 PTR_AT(io_stru
, 7, DWORD
) = 0;
662 PTR_AT(io_stru
, 3, DWORD
) = wcda
.lpdwTrackPos
[0];
663 PTR_AT(io_stru
, 7, DWORD
) = wcda
.lpdwTrackPos
[wcda
.nTracks
- 1];
665 TRACE("Audio status info: status=%04x startLoc=%ld endLoc=%ld\n",
666 PTR_AT(io_stru
, 1, WORD
), PTR_AT(io_stru
, 3, DWORD
), PTR_AT(io_stru
, 7, DWORD
));
670 FIXME("IOCTL INPUT: Unimplemented <%d>!!\n", io_stru
[0]);
677 io_stru
= (dorealmode
) ?
678 PTR_REAL_TO_LIN( PTR_AT(driver_request
, 16, WORD
), PTR_AT(driver_request
, 14, WORD
)) :
679 PTR_SEG_OFF_TO_LIN(PTR_AT(driver_request
, 16, WORD
), PTR_AT(driver_request
, 14, WORD
));
681 TRACE(" --> IOCTL OUTPUT <%d>\n", io_stru
[0]);
682 switch (io_stru
[0]) {
684 CDROM_SetDoor(&wcda
, 1, dev
);
685 TRACE(" ----> EJECT\n");
687 case 2: /* reset drive */
688 CDROM_Reset(&wcda
, dev
);
689 TRACE(" ----> RESET\n");
691 case 3: /* Audio Channel Control */
692 FIXME(" ----> AUDIO CHANNEL CONTROL (NIY)\n");
694 case 5: /* close tray */
695 CDROM_SetDoor(&wcda
, 0, dev
);
696 TRACE(" ----> CLOSE TRAY\n");
699 FIXME(" IOCTL OUTPUT: Unimplemented <%d>!!\n", io_stru
[0]);
709 at
= PTR_AT(driver_request
, 20, DWORD
);
711 TRACE(" --> SEEK AUDIO mode :<0x%02X>, [%ld]\n",
712 (BYTE
)driver_request
[13], at
);
714 switch (driver_request
[13]) {
715 case 1: /* Red book addressing mode = 0:m:s:f */
716 /* FIXME : frame <=> msf conversion routines could be shared
717 * between mscdex and mcicda
719 at
= LOBYTE(HIWORD(at
)) * CDFRAMES_PERMIN
+
720 HIBYTE(LOWORD(at
)) * CDFRAMES_PERSEC
+
723 case 0: /* HSG addressing mode */
724 CDROM_Audio_Seek(&wcda
, at
, dev
);
727 ERR("Unsupported address mode !!\n");
738 beg
= end
= PTR_AT(driver_request
, 14, DWORD
);
739 end
+= PTR_AT(driver_request
, 18, DWORD
);
741 TRACE(" --> PLAY AUDIO mode :<0x%02X>, [%ld-%ld]\n",
742 (BYTE
)driver_request
[13], beg
, end
);
744 switch (driver_request
[13]) {
745 case 1: /* Red book addressing mode = 0:m:s:f */
746 /* FIXME : frame <=> msf conversion routines could be shared
747 * between mscdex and mcicda
749 beg
= LOBYTE(HIWORD(beg
)) * CDFRAMES_PERMIN
+
750 HIBYTE(LOWORD(beg
)) * CDFRAMES_PERSEC
+
752 end
= LOBYTE(HIWORD(end
)) * CDFRAMES_PERMIN
+
753 HIBYTE(LOWORD(end
)) * CDFRAMES_PERSEC
+
756 case 0: /* HSG addressing mode */
757 CDROM_Audio_Play(&wcda
, beg
, end
, dev
);
760 ERR("Unsupported address mode !!\n");
768 if (wcda
.cdaMode
== WINE_CDA_PLAY
) {
769 CDROM_Audio_Pause(&wcda
, 1, dev
);
770 TRACE(" --> STOP AUDIO (Paused)\n");
772 CDROM_Audio_Stop(&wcda
, dev
);
773 TRACE(" --> STOP AUDIO (Stopped)\n");
778 TRACE(" --> RESUME AUDIO\n");
779 CDROM_Audio_Pause(&wcda
, 0, dev
);
783 FIXME(" ioctl unimplemented <%d>\n", driver_request
[2]);
787 /* setting error codes if any */
789 driver_request
[4] |= 0x80;
790 driver_request
[3] = Error
;
795 /* setting status bits
796 * 3 == playing && done
799 driver_request
[4] |= (wcda
.cdaMode
== WINE_CDA_PLAY
) ? 3 : 1;
801 MSCDEX_Dump("End", driver_request
, dorealmode
);
805 FIXME("Unimplemented MSCDEX function 0x%02X.\n", LOBYTE(context
->Eax
));