ced401: add initial support

Alois Schlögl alois.schloegl at gmail.com
Fri May 9 07:42:56 CDT 2014


The attached patch includes the stubs for the ced1401 driver dll.

This is a starting point to support ced1401/spike2/signal software.

It's my first patch submission to wine - feedback welcome.


   Alois

-------------- next part --------------
>From be27e09ba845ac6e98587e264c2ed16e5c5a947b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alois=20Schl=C3=B6gl?= <alois.schloegl at ist.ac.at>
Date: Wed, 30 Apr 2014 21:53:08 +0200
Subject: add initial support for CED1401

---
 configure                   |    2 ++
 configure.ac                |    1 +
 dlls/ced1401/Makefile.in    |    6 ++++
 dlls/ced1401/Use1432.spec   |   67 +++++++++++++++++++++++++++++++++++++++++++
 dlls/ced1401/Use1432_main.c |   34 ++++++++++++++++++++++
 5 files changed, 110 insertions(+)
 create mode 100644 dlls/ced1401/Makefile.in
 create mode 100644 dlls/ced1401/Use1432.spec
 create mode 100644 dlls/ced1401/Use1432_main.c

diff --git a/configure b/configure
index e5a26d1..9656a86 100755
--- a/configure
+++ b/configure
@@ -918,6 +918,7 @@ enable_browseui
 enable_cabinet
 enable_capi2032
 enable_cards
+enable_ced1401
 enable_cfgmgr32
 enable_clusapi
 enable_comcat
@@ -16724,6 +16725,7 @@ wine_fn_config_dll cabinet enable_cabinet implib
 wine_fn_config_test dlls/cabinet/tests cabinet_test
 wine_fn_config_dll capi2032 enable_capi2032 implib
 wine_fn_config_dll cards enable_cards implib
+wine_fn_config_dll ced1401 enable_ced1401 Use1432
 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
 wine_fn_config_dll clusapi enable_clusapi implib
 wine_fn_config_dll comcat enable_comcat
diff --git a/configure.ac b/configure.ac
index 673323a..a5cf8b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2701,6 +2701,7 @@ WINE_CONFIG_DLL(cabinet,,[implib])
 WINE_CONFIG_TEST(dlls/cabinet/tests)
 WINE_CONFIG_DLL(capi2032,,[implib])
 WINE_CONFIG_DLL(cards,,[implib])
+WINE_CONFIG_DLL(ced1401,,[Use1432])
 WINE_CONFIG_DLL(cfgmgr32,,[implib])
 WINE_CONFIG_DLL(clusapi,,[implib])
 WINE_CONFIG_DLL(comcat)
diff --git a/dlls/ced1401/Makefile.in b/dlls/ced1401/Makefile.in
new file mode 100644
index 0000000..2925088
--- /dev/null
+++ b/dlls/ced1401/Makefile.in
@@ -0,0 +1,6 @@
+# Generated from /home/schloegl/.wine-1.7.17/drive_c/1401/utils/Use1432.dll by winedump.
+MODULE    = Use1432.dll
+
+
+C_SRCS = \
+	Use1432_main.c
diff --git a/dlls/ced1401/Use1432.spec b/dlls/ced1401/Use1432.spec
new file mode 100644
index 0000000..3a035a7
--- /dev/null
+++ b/dlls/ced1401/Use1432.spec
@@ -0,0 +1,67 @@
+# Generated from /home/schloegl/.wine-1.7.17/drive_c/1401/utils/Use1432.dll by winedump
+
+1 stub U1416BitDispatch
+2 stub U1416BitRegisterInit
+3 stub U14BaseAddr1401
+4 stub U14BlkTransState
+5 stub U14ByteCount
+6 stub U14CharCount
+7 stub U14CheckSelfTest
+8 stub U14Close1401
+9 stub U14CloseAll
+10 stub U14DriverName
+11 stub U14DriverType
+12 stub U14DriverVersion
+13 stub U14Free1401
+14 stub U14FreeCircBlk
+15 stub U14GetChar
+16 stub U14GetCircBlk
+17 stub U14GetDebugData
+18 stub U14GetErrorString
+19 stub U14GetString
+20 stub U14GetTimeout
+21 stub U14GetTransfer
+22 stub U14GetUserMemorySize
+23 stub U14Grab1401
+24 stub U14KillIO1401
+25 stub U14LastErrCode
+26 stub U14Ld
+27 stub U14LdCmd
+28 stub U14LineCount
+29 stub U14LongsFrom1401
+30 stub U14MonitorRev
+31 stub U14NameOf1401
+32 stub U14Open1401
+33 stub U14OutBufSpace
+34 stub U14PassedTime
+35 stub U14Peek1401
+36 stub U14Poke1401
+37 stub U14Ramp1401
+38 stub U14RampAddr
+39 stub U14Registers1401
+40 stub U14Reset1401
+41 stub U14SendChar
+42 stub U14SendString
+43 stub U14Set1401Registers
+44 stub U14SetCircular
+45 stub U14SetOrin
+46 stub U14SetTimeout
+47 stub U14SetTransArea
+48 stub U14SetTransferEvent
+49 stub U14StartSelfTest
+50 stub U14Stat1401
+51 stub U14StateOf1401
+52 stub U14Status1401
+53 stub U14Step1401
+54 stub U14StepTill1401
+55 stub U14StopCircular
+56 stub U14StopDebugLoop
+57 stub U14StrToLongs
+58 stub U14To1401
+59 stub U14ToHost
+60 stub U14TransferFlags
+61 stub U14TypeOf1401
+62 stub U14UnSetTransfer
+63 stub U14WhenToTimeOut
+64 stub U14WorkingSet
+65 stub U14ZeroBlockCount
diff --git a/dlls/ced1401/Use1432_main.c b/dlls/ced1401/Use1432_main.c
new file mode 100644
index 0000000..b4687ea
--- /dev/null
+++ b/dlls/ced1401/Use1432_main.c
@@ -0,0 +1,34 @@
+/*
+ * Use1432.dll
+ *
+ * Generated from /home/schloegl/.wine-1.7.17/drive_c/1401/utils/Use1432.dll by winedump.
+ *
+ * DO NOT SUBMIT GENERATED DLLS FOR INCLUSION INTO WINE!
+ *
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(Use1432);
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
+{
+    TRACE("(%p, %u, %p)\n", instance, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
-- 
1.7.10.4



More information about the wine-patches mailing list