Commit Graph

129 Commits

Author SHA1 Message Date
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Troy Rollo 90df5a967f ntdll: Fix DVD_ReadStructure's layout of layer information.
Fix DVD_ReadStructure to reflect what Windows actually does, not what
Microsoft (incorrectly) documents it to do and not what the DDK
headers (incorrectly) suggest it does.
2006-04-08 15:49:42 +02:00
Petr Tesarik 4c777d7466 ntdll: Fix CDROM raw reads.
- Fix incorrect data sizes.
- Fix CDDA addressing.
- Implement XAForm2 mode on Linux.
2006-03-29 14:00:58 +02:00
Troy Rollo 721621b34e ntdll: Implement DVD_ReadStructure. 2006-02-11 18:40:32 +01:00
Alexandre Julliard e21a97da85 Fixed some compiler warnings on Darwin. 2005-12-01 12:36:05 +01:00
Ge van Geldorp 1a1583a364 Match PSDK STATUS_* definitions. 2005-11-28 17:32:54 +01:00
Vitaliy Margolen 39e922ce72 Handle IOCTL_DISK_CHECK_VERIFY which is synonym for
IOCTL_STORAGE_CHECK_VERIFY.
2005-11-28 10:40:13 +01:00
Peter Beutner 4dcab2805c Proper implementation of IOCTL_{STORAGE,CDROM}_CHECK_VERIFY. 2005-10-26 10:13:09 +00:00
Alexandre Julliard f8ee161a1b Fixed some traces to use the right printf format and avoid typecasts. 2005-09-12 10:30:05 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Mike McCormack b5bd4a101a Fix gcc 4.0 warnings. 2005-09-02 14:47:36 +00:00
Vitaliy Margolen d27c7135ef Add trace to IOCTL_CDROM_RAW_READ. 2005-08-18 10:49:04 +00:00
Francois Gouget bcd56fe0e5 Assorted spelling fixes. 2005-08-12 18:22:06 +00:00
Tobias Gruetzmacher cdd75bd413 Reverse the direction of raw SCSI commands. 2005-08-08 11:02:32 +00:00
Vitaliy Margolen fa9c730cf6 Implement IOCTL_SCSI_GET_INQUIRY_DATA. 2005-08-03 10:55:12 +00:00
Vitaliy Margolen 0cb33a9d51 Fixed IOCTL_SCSI_GET_ADDRESS. 2005-08-01 14:50:59 +00:00
Vitaliy Margolen 1a7257e198 Fix IOCTL_CDROM_RAW_READ ioctl. 2005-07-20 10:28:27 +00:00
Gerald Pfeifer b8b15f3e6e Add a configure check for struct request_sense. Use this in
CDROM_ScsiPassThroughDir() and CDROM_ScsiPassThrough() to unbreak the
build on FreeBSD.
2005-07-10 17:42:46 +00:00
Phil Krylov 0f6c0394bf Fixed dlls/ntdll/cdrom.c compilation in Darwin by adding HAVE_IOKit
detection to configure and defining SENSEBUFLEN as kSenseDefaultSize
(which is corresponding IOKit enum value).
2005-07-01 19:15:26 +00:00
Gerald Pfeifer 643dc21738 Avoid unused variable warnings in CDROM_ScsiPassThroughDir() and
CDROM_ScsiPassThrough().
2005-06-30 10:19:26 +00:00
Mike Hearn 92a32db23e Fix GCC4 warning. 2005-06-29 19:18:54 +00:00
Dmitry Timoshkov cb7de15ebe A workaround for missing struct request_sense on FreeBSD. 2005-06-29 11:00:44 +00:00
Dmitry Timoshkov ea64a36a44 Add a check for sg_io_hdr_t and (not tested) check for scsireq_t
presence.
2005-06-27 12:07:49 +00:00
Mike McCormack 6b636e3e7b Use RTL_CRITICAL_SECTION instead of CRITICAL_SECTION. 2005-06-25 18:00:57 +00:00
Mike McCormack 04f9f1b066 Don't include winbase.h or winerror.h when not necessary. 2005-06-21 09:52:40 +00:00
Mike McCormack 5b2d5fd758 Use HANDLE instead of HKEY in the NT API. 2005-06-17 13:58:33 +00:00
Ivan Leo Puoti eacd06264e Reimplement IOCTL_SCSI_PASS_THROUGH_DIRECT and
IOCTL_SCSI_PASS_THROUGH on top of the linux scsi driver.
2005-06-14 12:25:41 +00:00
Francois Gouget 821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Alexandre Julliard d0ee9f9309 Avoid spaces before preprocessor directives, that's not portable. 2005-03-02 12:23:20 +00:00
Robert Shearman af056e7e24 - Add a complete, sorted listed of IOCTLS implemented in the file.
- Dump track numbers after they have been filled in.
2005-01-07 15:33:58 +00:00
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Hans Leidekker a9b4a471a9 Fix signed/unsigned comparison warnings. 2004-08-13 23:53:44 +00:00
Gerald Pfeifer 69075d0c1c Remove incorrect support for FreeBSD and NetBSD in
DVD_StartSession().
2004-06-16 19:03:25 +00:00
Uwe Bonnes e98a664d57 Support for reading encrypted DVDs. 2004-06-15 00:45:01 +00:00
Alexandre Julliard ffcc67abf1 Added auto-detection of DOS drive devices based on finding the
corresponding mount point in /etc/mtab or /etc/fstab.
2004-04-29 20:04:48 +00:00
Alexandre Julliard 7b6651a9e1 Moved creation of the CDROM registry keys into the registry loading
code.
2004-04-23 21:36:22 +00:00
Alexandre Julliard 68cc54330e Do not store the Unix file descriptor in the cache structure.
Protect the global cache with a critical section.
2004-03-05 20:45:33 +00:00
Alexandre Julliard db692c8f39 Open a real file handle for drive devices, and get rid of the server
device hacks (based on a patch by Eric Pouech).
2004-03-04 23:00:18 +00:00
Ge van Geldorp 399901e054 Rename LARGE_INTEGER and ULARGE_INTEGER members "s" to "u" to conform
with PSDK.
2004-01-23 01:51:33 +00:00
Marcus Meissner 34528b91a9 Fixed potentially uninitialised sz. 2003-12-15 19:46:51 +00:00
Gerald Pfeifer bcb09c198d The CDDA case of CDROM_RawRead() no longer works on FreeBSD -CURRENT,
remove it.  Also, combine the FreeBSD and NetBSD NYI notes.
2003-11-04 04:23:49 +00:00
Alexandre Julliard 01def427b7 Pass the cdrom device path in CDROM_InitRegistry so that ntdll doesn't
need to call DRIVE_GetDevice.
Get rid of GetDriveType calls.
2003-10-08 02:59:22 +00:00
Rein Klazes c6c404dcd6 Added a check for <scsi/scsi.h> and include it in dlls/ntdll/cdrom.c. 2003-10-07 22:49:22 +00:00
Alexandre Julliard fbb5390a32 Avoid closing the cdrom if we failed to open it. 2003-10-03 04:35:55 +00:00
Pavel Roskin 8956e41b82 Add support for SCSI CD-ROMs to CDROM_GetInterfaceInfo().
Fix device number for IDE CD-ROMs.  Return 0 for unsupported drives.
2003-10-03 04:33:25 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Eric Pouech 583bb3fd3e - started implementing ntdll.NtDeviceIoControlFile and made
kernel32.DeviceIoControl call it
- changed cdrom ioctl function's prototype to stick to
  ntdll.NtDeviceIoControlFile signature
2003-06-24 19:28:21 +00:00
Eric Pouech 1bb3859ece Added support for overlapped ioctl requests (and a few other
cosmetics).
2003-06-13 16:33:50 +00:00
Yorick Hardy 4b1f667e73 Improve CDROM_GetIdeInterface (becomes CDROM_GetInterfaceInfo), in
order to better support SCSI drives.
2003-06-04 20:15:59 +00:00
Yorick Hardy d1d5ca539d Implement CDROM_ScsiPassThrough and CDROM_ScsiPassThroughDirect on
NetBSD.
2003-05-20 19:17:04 +00:00
Yorick Hardy c26b7dbad9 Added the implementation for CDROM_GetIdeInterface on NetBSD. 2003-05-19 21:46:09 +00:00
Eric Pouech 70f3522933 Fixed a few FormatCode entries. 2003-04-02 00:59:12 +00:00
Eric Pouech 255b6141f2 Fixed some unneeded unix to Win32 error mapping. 2003-03-20 21:59:50 +00:00
Gerald Pfeifer fa8cca5e47 Define CD_SECS and CD_FRAMES also on non-Linux systems. Avoid a
non-portable TRACE on non-Linux systems.
2003-02-25 03:56:21 +00:00
Waldeck Schutzer 52a414c26d - Some systems/drives are very slow to read the TOC. To address this
issue, we are caching it inside the driver.
- Windows will seek while not playing, Linux will not. We are
  providing better compatibility with Windows by also caching the
  current position.
2003-02-19 22:08:50 +00:00
Alexandre Julliard f8aa3b506c Added -Wpointer-arith gcc flag, and fixed the resulting warnings. 2003-01-23 21:32:35 +00:00
Gerald Pfeifer 6fb1c40eb9 Only declare variables we actually need. 2003-01-21 19:30:52 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Alex Pasadyn a96caa0700 Fix return from IOCTL_CDROM_CHECK_VERIFY. 2002-12-12 22:23:35 +00:00
Alexandre Julliard f2ef2c2bb2 Handle special registry root keys directly in advapi32, and avoid
using them in kernel and ntdll.
2002-09-13 21:42:28 +00:00
Patrik Stridvall 9c1de6de30 Moved all the content of the DDK files ntdef.h and ntddk.h to
winternl.h.
2002-09-12 22:07:02 +00:00
Patrik Stridvall 57bf45067a MSVC compatibility fixes. 2002-08-26 21:53:24 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Rafael Kitover 44d3fd429e Minor fix for ide-scsi cdroms. 2002-07-28 17:48:01 +00:00
Alexandre Julliard f8d321c2d6 Don't try to open CDROM device if none was specified. 2002-06-13 21:46:02 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 5aead170c2 Portability fixes. 2002-05-30 20:07:51 +00:00
James Juran 32886f6b88 Add missing \n to output messages. 2002-05-24 21:17:59 +00:00
Andreas Mohr 7632452e96 - Improve error messages.
- Add error code mapping EPERM -> STATUS_ACCESS_DENIED.
2002-05-19 22:23:56 +00:00
Alexandre Julliard c3e06df941 Portability fixes. 2002-05-14 23:18:23 +00:00
Rizsanyi Zsolt e7c6d17b3e Implemented IOCTL_SCSI_GET_ADDRESS for non true scsi cdrom drives
(only on linux).
Initialize registry under HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/Scsi.
Added IOCTL_CDROM_MEDIA_REMOVAL support.
2002-05-01 22:25:41 +00:00
Laurent Pinchart 0314a65a58 Implementation of IOCTL_SCSI_PASS_THROUGH and
IOCTL_SCSI_PASS_THROUGH_DIRECT.
2002-05-01 22:01:30 +00:00
Gerald Pfeifer 4e589cd171 Use ENOMEDIUM errno code only when defined. 2002-04-02 19:19:49 +00:00
Francois Gouget 0763abf115 Fix warnings for Linux, FreeBSD and Solaris. 2002-04-01 21:08:16 +00:00
Andreas Mohr 66c72d0bf3 Added mapping for errno ENOMEDIUM to STATUS_NO_MEDIA_IN_DEVICE. 2002-03-29 17:57:43 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Bang Jun-Young 8121e941a2 Fix NetBSD compile errors; CDIOCREADAUDIO is not available on NetBSD. 2002-01-18 18:11:04 +00:00
Francois Gouget aae77c6da2 Fix compilation errors on FreeBSD. 2002-01-14 18:34:34 +00:00
Eric Pouech 5cc6105b39 Changed the Wine internal cdrom interface to the NT model. 2002-01-13 01:44:00 +00:00