[PATCH] scsiport.sys: Add stub implementaton of scsiport.sys. (try 2)

Christian Costa titan.costa at gmail.com
Mon Oct 1 23:23:49 CDT 2012


This is needed by prosync1.sys (StarForce protection) used in Obscure.

Try 2: Without configure changes.
---
 configure.ac                        |    1 +
 dlls/scsiport.sys/Makefile.in       |    9 +++++++
 dlls/scsiport.sys/scsiport.c        |   39 ++++++++++++++++++++++++++++
 dlls/scsiport.sys/scsiport.sys.spec |   48 +++++++++++++++++++++++++++++++++++
 4 files changed, 97 insertions(+)
 create mode 100644 dlls/scsiport.sys/Makefile.in
 create mode 100644 dlls/scsiport.sys/scsiport.c
 create mode 100644 dlls/scsiport.sys/scsiport.sys.spec

diff --git a/configure.ac b/configure.ac
index 79b1175..3931bb7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2935,6 +2935,7 @@ WINE_CONFIG_DLL(schannel)
 WINE_CONFIG_TEST(dlls/schannel/tests)
 WINE_CONFIG_DLL(scrrun)
 WINE_CONFIG_TEST(dlls/scrrun/tests)
+WINE_CONFIG_DLL(scsiport.sys,,[implib])
 WINE_CONFIG_DLL(secur32,,[implib])
 WINE_CONFIG_TEST(dlls/secur32/tests)
 WINE_CONFIG_DLL(security)
diff --git a/dlls/scsiport.sys/Makefile.in b/dlls/scsiport.sys/Makefile.in
new file mode 100644
index 0000000..afc2e3a
--- /dev/null
+++ b/dlls/scsiport.sys/Makefile.in
@@ -0,0 +1,9 @@
+MODULE    = scsiport.sys
+IMPORTLIB = scsiport.sys
+IMPORTS   = ntoskrnl.exe
+EXTRADLLFLAGS = -Wb,--subsystem,native
+
+C_SRCS = \
+	scsiport.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/scsiport.sys/scsiport.c b/dlls/scsiport.sys/scsiport.c
new file mode 100644
index 0000000..f689153
--- /dev/null
+++ b/dlls/scsiport.sys/scsiport.c
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2012 Christian Costa
+ *
+ * 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
+ */
+
+#include <stdarg.h>
+
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+
+#include "ntstatus.h"
+#define WIN32_NO_STATUS
+#include "windef.h"
+#include "winbase.h"
+#include "winternl.h"
+#include "ddk/wdm.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(scsiport);
+
+NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
+{
+    TRACE("(%p, %s)\n", driver, debugstr_w(path->Buffer));
+
+    return STATUS_SUCCESS;
+}
diff --git a/dlls/scsiport.sys/scsiport.sys.spec b/dlls/scsiport.sys/scsiport.sys.spec
new file mode 100644
index 0000000..55a373e
--- /dev/null
+++ b/dlls/scsiport.sys/scsiport.sys.spec
@@ -0,0 +1,48 @@
+@ stub DllInitialize
+@ stub PortNotification
+@ stub ScsiDebugPrint
+@ stub ScsiPortCompleteRequest
+@ stub ScsiPortConvertPhysicalAddressToUlong
+@ stub ScsiPortConvertUlongToPhysicalAddress
+@ stub ScsiPortFlushDma
+@ stub ScsiPortFreeDeviceBase
+@ stub ScsiPortGetBusData
+@ stub ScsiPortGetDeviceBase
+@ stub ScsiPortGetLogicalUnit
+@ stub ScsiPortGetPhysicalAddress
+@ stub ScsiPortGetSrb
+@ stub ScsiPortGetUncachedExtension
+@ stub ScsiPortGetVirtualAddress
+@ stub ScsiPortInitialize
+@ stub ScsiPortIoMapTransfer
+@ stub ScsiPortLogError
+@ stub ScsiPortMoveMemory
+@ stub ScsiPortNotification
+@ stub ScsiPortQuerySystemTime
+@ stub ScsiPortReadPortBufferUchar
+@ stub ScsiPortReadPortBufferUlong
+@ stub ScsiPortReadPortBufferUshort
+@ stub ScsiPortReadPortUchar
+@ stub ScsiPortReadPortUlong
+@ stub ScsiPortReadPortUshort
+@ stub ScsiPortReadRegisterBufferUchar
+@ stub ScsiPortReadRegisterBufferUlong
+@ stub ScsiPortReadRegisterBufferUshort
+@ stub ScsiPortReadRegisterUchar
+@ stub ScsiPortReadRegisterUlong
+@ stub ScsiPortReadRegisterUshort
+@ stub ScsiPortSetBusDataByOffset
+@ stub ScsiPortStallExecution
+@ stub ScsiPortValidateRange
+@ stub ScsiPortWritePortBufferUchar
+@ stub ScsiPortWritePortBufferUlong
+@ stub ScsiPortWritePortBufferUshort
+@ stub ScsiPortWritePortUchar
+@ stub ScsiPortWritePortUlong
+@ stub ScsiPortWritePortUshort
+@ stub ScsiPortWriteRegisterBufferUchar
+@ stub ScsiPortWriteRegisterBufferUlong
+@ stub ScsiPortWriteRegisterBufferUshort
+@ stub ScsiPortWriteRegisterUchar
+@ stub ScsiPortWriteRegisterUlong
+@ stub ScsiPortWriteRegisterUshort




More information about the wine-patches mailing list