[PATCH 1/7] include: new file ddk/scsi.h (resend)

Dan Kegel dank at kegel.com
Fri Feb 10 14:30:27 CST 2012


Only adds the minimum definitions needed to use SCSIOP_READ_DVD_STRUCTURE.
---
 include/ddk/scsi.h |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)
 create mode 100644 include/ddk/scsi.h

diff --git a/include/ddk/scsi.h b/include/ddk/scsi.h
new file mode 100644
index 0000000..11634ce
--- /dev/null
+++ b/include/ddk/scsi.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) the Wine project
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __DDK_SCSI_H__
+#define __DDK_SCSI_H__
+
+#include <pshpack1.h>
+
+#define SCSIOP_READ_DVD_STRUCTURE 0xad
+
+
+struct _READ_DVD_STRUCTURE {
+    UCHAR OperationCode;	/* = SCSIOP_READ_DVD_STRUCTURE */
+    UCHAR Reserved1:5;
+    UCHAR Lun:3;
+    UCHAR RMDBlockNumber[4];
+    UCHAR LayerNumber;
+    UCHAR Format;
+    USHORT AllocationLength;
+    UCHAR Reserved3:6;
+    UCHAR AGID:2;
+    UCHAR Control;
+};
+
+#include <poppack.h>
+
+#endif
-- 
1.7.9




More information about the wine-patches mailing list