/drivers/wiener_pcivme_dll/pcivme_ni.opt |
Cannot display: file marked as a binary type.
|
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/pcivme_ni.ncb |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/pcivme_ni.ncb |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Klist.h |
=================================================================== |
--- wiener_pcivme_dll/Klist.h (revision 218) |
+++ wiener_pcivme_dll/Klist.h (nonexistent) |
@@ -1,52 +0,0 @@ |
-#ifndef __KLIST_H__ |
-#define __KLIST_H__ |
- |
-//------------------------------------------------------------------------------------------- |
-// klist.h - header parts to maintain a doubly linked list (org microsoft) |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// |
-// $Log: Klist.h,v $ |
-// Revision 1.2 2004/07/24 07:47:46 klaus |
-// revised, removed wrong license terms |
-// |
-// |
-// what who when |
-// first steps AR 07.11.1999 |
-// |
- |
-typedef struct item_tag FAR * LIST; |
-typedef LIST FAR * PLIST; |
- |
-void APIENTRY List_Init(void); |
-/* MUST BE CALLED BEFORE ANY OF THE OTHER FUNCTIONS. */ |
- |
-LIST APIENTRY List_Create(void); |
-/* Create a list. It will be initially empty */ |
- |
-void APIENTRY List_Destroy(PLIST plst); |
-/* Destroy *plst. It does not need to be empty first. |
-| All storage directly in the list wil be freed. |
-*/ |
- |
-LPVOID APIENTRY List_NewFirst(LIST lst, UINT uLen); |
-/* Return the address of the place for Len bytes of data in a new |
-| item at the start of *plst |
-*/ |
- |
-void APIENTRY List_Delete(LPVOID Curs); |
-/*------------------------------------------------------------------ |
-| Delete the item that Curs identifies. |
-| This will be only a few (maybe as little as 3) machine instructions |
-| quicker than DeleteAndNext or DeleteAndPrev but leaves Curs dangling. |
-| It is therefore NOT usually to be preferred. |
-| It may be useful when you have a function which returns an LPVOID |
-| since the argument does not need to be a variable. |
-| Trivial example: List_Delete(List_First(L)); |
--------------------------------------------------------------------*/ |
- |
-BOOL APIENTRY List_IsEmpty(LIST lst); |
-/* Return TRUE if and only if lst is empty */ |
- |
-#endif /* __KLIST_H__ */ |
\ No newline at end of file |
Index: wiener_pcivme_dll/Vme.h |
=================================================================== |
--- wiener_pcivme_dll/Vme.h (revision 218) |
+++ wiener_pcivme_dll/Vme.h (nonexistent) |
@@ -1,57 +0,0 @@ |
-#ifndef __VME_H__ |
-#define __VME_H__ |
- |
-//------------------------------------------------------------------------------------------ |
-// vme.h - some constants about VME address modifiers in a more readable kind |
-// |
-// (c) 1999-2004 ARW Elektronik |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// |
-// $Log: Vme.h,v $ |
-// Revision 1.3 2004/07/24 07:07:26 klaus |
-// Update copyright to 2004 |
-// |
-// Revision 1.2 2003/11/15 19:12:51 klaus |
-// Update copyright to 2003 |
-// |
-// Revision 1.1.1.1 2003/11/14 23:16:33 klaus |
-// First put into repository |
-// |
-// Revision 1.3 2002/10/27 16:17:48 klaus |
-// Typing bug fixed caused at log addition |
-// |
-// Revision 1.2 2002/10/27 16:11:03 klaus |
-// Added CVS log into header |
-// |
-// what who when |
-// finished first release to use with the PCIVME interface of ARW AR 22.03.1999 |
-// |
- |
-typedef WORD ADDRESS_MODIFIER; |
- |
-#define Std_Sup_Data (ADDRESS_MODIFIER)0x3d |
-#define Std_Sup_Prog (ADDRESS_MODIFIER)0x3e |
-#define Std_NoPriv_Data (ADDRESS_MODIFIER)0x39 |
-#define Std_NoPriv_Prog (ADDRESS_MODIFIER)0x3a |
- |
-#define Short_Sup (ADDRESS_MODIFIER)0x2d |
-#define Short_NoPriv (ADDRESS_MODIFIER)0x29 |
- |
-#define Ext_Sup_Data (ADDRESS_MODIFIER)0x0d |
-#define Ext_Sup_Prog (ADDRESS_MODIFIER)0x0e |
-#define Ext_NoPriv_Data (ADDRESS_MODIFIER)0x09 |
-#define Ext_NoPriv_Prog (ADDRESS_MODIFIER)0x0a |
- |
-#endif |
- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
-//------------------------------------------------------------------------------------------- |
Index: wiener_pcivme_dll/os_info.c |
=================================================================== |
--- wiener_pcivme_dll/os_info.c (revision 218) |
+++ wiener_pcivme_dll/os_info.c (nonexistent) |
@@ -1,116 +0,0 @@ |
-//------------------------------------------------------------------------------------------- |
-// os_info.c - request the OS type and version |
-// |
-// (c) 1999-2004 ARW Elektronik, Germany |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// |
-// $Log: os_info.c,v $ |
-// Revision 1.2 2004/07/24 07:47:00 klaus |
-// Update copyright to 2004 |
-// |
-// Revision 1.1.1.1 2003/11/14 23:17:18 klaus |
-// First put into repository |
-// |
-// Revision 1.2 2002/10/27 17:05:33 klaus |
-// CVS log added, file addressing bug > 2 Gbtye circumvent |
-// |
-// what who when |
-// first steps AR 07.11.1999 |
-// small change in OS version recognition AR 21.05.2002 |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// INCLUDES |
-// |
-#include <windows.h> |
- |
-//------------------------------------------------------------------------------------------- |
-// DEFINES |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// TYPEDEFS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// LOCALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// EXTERNALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// GLOBALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// FUNCTIONS |
-// |
-BOOLEAN IsWindowsNT(void) |
-{ |
- OSVERSIONINFO osvi; |
- |
- osvi.dwOSVersionInfoSize = sizeof(osvi); |
- if (!GetVersionEx(&osvi)) return FALSE; // can't get info |
- |
- if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT) |
- { |
- return TRUE; |
- } |
- else |
- return FALSE; |
-} |
- |
-BOOLEAN IsWindows95(void) |
-{ |
- OSVERSIONINFO osvi; |
- |
- osvi.dwOSVersionInfoSize = sizeof(osvi); |
- if (!GetVersionEx(&osvi)) return FALSE; // can't get info |
- |
- if (osvi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) |
- { |
- if ((osvi.dwMajorVersion == 4) && (osvi.dwMinorVersion == 0)) |
- return TRUE; |
- else |
- return FALSE; |
- } |
- else |
- return FALSE; |
-} |
- |
-BOOLEAN IsWindows98(void) |
-{ |
- OSVERSIONINFO osvi; |
- |
- osvi.dwOSVersionInfoSize = sizeof(osvi); |
- if (!GetVersionEx(&osvi)) return FALSE; // can't get info |
- |
- if (osvi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) |
- { |
- if ((osvi.dwMajorVersion > 4) || |
- ((osvi.dwMajorVersion == 4) && (osvi.dwMinorVersion > 0))) |
- return TRUE; |
- else |
- return FALSE; |
- } |
- else |
- return FALSE; |
-} |
- |
-/* |
-BOOLEAN IsWindowsBlaBla(void) |
-{ |
- |
-} |
-*/ |
- |
Index: wiener_pcivme_dll/Release/cl.command.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/cl.command.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.lib |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/pcivme_ni.lib |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/link-cvtres.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link-cvtres.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/pcivme_ni.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni_NT.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/pcivme_ni_NT.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.dll |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/pcivme_ni.dll |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.log |
=================================================================== |
--- wiener_pcivme_dll/Release/pcivme_ni.log (revision 218) |
+++ wiener_pcivme_dll/Release/pcivme_ni.log (nonexistent) |
@@ -1,17 +0,0 @@ |
-Build started 14.4.2014 15:35:41. |
- 1>Project "C:\home\rok\wiener_pcivme_dll\pcivme_ni.vcxproj" on node 2 (Build target(s)). |
- 1>ClCompile: |
- C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /I. /Zi /nologo /W3 /WX- /O2 /Oy- /D WIN32 /D NDEBUG /D _WINDOWS /D _VC80_UPGRADE=0x0600 /D _WINDLL /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo".\Release\\" /Fd".\Release\vc120.pdb" /Gd /TC /analyze- /errorReport:prompt pcivme_ni.c |
- pcivme_ni.c |
- Link: |
- C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:".\Release\pcivme_ni.dll" /INCREMENTAL:NO /NOLOGO odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\Release\pcivme_ni.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\Release\pcivme_ni.lib" /MACHINE:X86 /SAFESEH /DLL .\Release\Klist.obj |
- .\Release\os_info.obj |
- .\Release\pcivme_ni.obj |
- .\Release\pcivme_ni_NT.obj |
- Creating library .\Release\pcivme_ni.lib and object .\Release\pcivme_ni.exp |
- pcivme_ni.vcxproj -> C:\home\rok\wiener_pcivme_dll\.\Release\pcivme_ni.dll |
- 1>Done Building Project "C:\home\rok\wiener_pcivme_dll\pcivme_ni.vcxproj" (Build target(s)). |
- |
-Build succeeded. |
- |
-Time Elapsed 00:00:01.53 |
Index: wiener_pcivme_dll/Release/link.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/CL.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/CL.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/link-rc.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link-rc.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.lastbuildstate |
=================================================================== |
--- wiener_pcivme_dll/Release/pcivme_ni.lastbuildstate (revision 218) |
+++ wiener_pcivme_dll/Release/pcivme_ni.lastbuildstate (nonexistent) |
@@ -1,2 +0,0 @@ |
-#v4.0:v110:false |
-Release|Win32|C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\| |
Index: wiener_pcivme_dll/Release/link-cvtres.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link-cvtres.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/vc110.pdb |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/vc110.pdb |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/Klist.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/Klist.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.exp |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/pcivme_ni.exp |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.write.1.tlog |
=================================================================== |
--- wiener_pcivme_dll/Release/pcivme_ni.write.1.tlog (revision 218) |
+++ wiener_pcivme_dll/Release/pcivme_ni.write.1.tlog (nonexistent) |
@@ -1,5 +0,0 @@ |
-^C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\pcivme_ni.vcxproj |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.lib |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.lib |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.exp |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.exp |
Index: wiener_pcivme_dll/Release/os_info.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/os_info.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/link.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/CL.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/CL.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/pcivme_ni.Build.CppClean.log |
=================================================================== |
--- wiener_pcivme_dll/Release/pcivme_ni.Build.CppClean.log (revision 218) |
+++ wiener_pcivme_dll/Release/pcivme_ni.Build.CppClean.log (nonexistent) |
@@ -1,25 +0,0 @@ |
-C:\USERS\F9DAQ\ROK\WIENERPCIADA\PCIVME\DLL-SOURCE\RELEASE\PCIVME_NI_NT.OBJ |
-C:\USERS\F9DAQ\ROK\WIENERPCIADA\PCIVME\DLL-SOURCE\RELEASE\PCIVME_NI.OBJ |
-C:\USERS\F9DAQ\ROK\WIENERPCIADA\PCIVME\DLL-SOURCE\RELEASE\OS_INFO.OBJ |
-C:\USERS\F9DAQ\ROK\WIENERPCIADA\PCIVME\DLL-SOURCE\RELEASE\KLIST.OBJ |
-C:\USERS\F9DAQ\ROK\WIENERPCIADA\PCIVME\DLL-SOURCE\RELEASE\VC110.PDB |
-C:\USERS\F9DAQ\ROK\WIENERPCIADA\PCIVME\DLL-SOURCE\RELEASE\PCIVME_NI.DLL |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.lib |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.exp |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\Klist.obj |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\os_info.obj |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.obj |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni_NT.obj |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\cl.command.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\CL.read.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\CL.write.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link-cvtres.read.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link-cvtres.write.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link-rc.read.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link-rc.write.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link.command.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link.read.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\link.write.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\pcivme_ni.write.1.tlog |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Release\vc110.pdb |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\.\Release\pcivme_ni.dll |
Index: wiener_pcivme_dll/Release/link-rc.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link-rc.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Release/link.command.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Release/link.command.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/os_info.h |
=================================================================== |
--- wiener_pcivme_dll/os_info.h (revision 218) |
+++ wiener_pcivme_dll/os_info.h (nonexistent) |
@@ -1,32 +0,0 @@ |
-#ifndef __OS_INFO_H__ |
-#define __OS_INFO_H__ |
-//------------------------------------------------------------------------------------------- |
-// os_info.h - request the OS type and version - the prototypes |
-// |
-// (c) 1999-2004 ARW Elektronik, Germany |
-// |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// |
-// $Log: os_info.h,v $ |
-// Revision 1.2 2004/07/24 08:05:31 klaus |
-// Update copyright to 2004 |
-// |
-// |
-// what who when |
-// first steps AR 07.11.1999 |
-// |
- |
-BOOLEAN IsWindowsNT(void); |
-BOOLEAN IsWindows98(void); |
-BOOLEAN IsWindows95(void); |
- |
-#endif |
- |
Index: wiener_pcivme_dll/pcivme_ni.v11.suo |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/pcivme_ni.v11.suo |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/link.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/CL.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/CL.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/link-rc.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link-rc.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.pdb |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni.pdb |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/link.command.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link.command.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/cl.command.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/cl.command.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.lib |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni.lib |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/link-cvtres.read.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link-cvtres.read.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni_NT.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni_NT.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.dll |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni.dll |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.ilk |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni.ilk |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/vc110.idb |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/vc110.idb |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.log |
=================================================================== |
--- wiener_pcivme_dll/Debug/pcivme_ni.log (revision 218) |
+++ wiener_pcivme_dll/Debug/pcivme_ni.log (nonexistent) |
@@ -1,18 +0,0 @@ |
-Build started 10.2.2014 9:28:27. |
- 1>Project "C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\pcivme_ni.vcxproj" on node 2 (Build target(s)). |
- 1>ClCompile: |
- C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /I. /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _VC80_UPGRADE=0x0600 /D _WINDLL /Gm /EHsc /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo".\Debug\\" /Fd".\Debug\vc110.pdb" /Gd /TC /analyze- /errorReport:prompt pcivme_ni.c |
- pcivme_ni.c |
- Link: |
- C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:".\Debug\pcivme_ni.dll" /INCREMENTAL /NOLOGO odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:".\Debug\pcivme_ni.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\Debug\pcivme_ni.lib" /MACHINE:X86 /SAFESEH /DLL .\Debug\Klist.obj |
- .\Debug\os_info.obj |
- .\Debug\pcivme_ni.obj |
- .\Debug\pcivme_ni_NT.obj |
- 1>Klist.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification |
- Creating library .\Debug\pcivme_ni.lib and object .\Debug\pcivme_ni.exp |
- pcivme_ni.vcxproj -> C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\.\Debug\pcivme_ni.dll |
- 1>Done Building Project "C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\pcivme_ni.vcxproj" (Build target(s)). |
- |
-Build succeeded. |
- |
-Time Elapsed 00:00:00.64 |
Index: wiener_pcivme_dll/Debug/link.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/CL.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/CL.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/link-rc.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link-rc.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.lastbuildstate |
=================================================================== |
--- wiener_pcivme_dll/Debug/pcivme_ni.lastbuildstate (revision 218) |
+++ wiener_pcivme_dll/Debug/pcivme_ni.lastbuildstate (nonexistent) |
@@ -1,2 +0,0 @@ |
-#v4.0:v110:false |
-Debug|Win32|C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\| |
Index: wiener_pcivme_dll/Debug/link-cvtres.write.1.tlog |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/link-cvtres.write.1.tlog |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/vc110.pdb |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/vc110.pdb |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/Klist.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/Klist.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.exp |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/pcivme_ni.exp |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/Debug/pcivme_ni.write.1.tlog |
=================================================================== |
--- wiener_pcivme_dll/Debug/pcivme_ni.write.1.tlog (revision 218) |
+++ wiener_pcivme_dll/Debug/pcivme_ni.write.1.tlog (nonexistent) |
@@ -1,5 +0,0 @@ |
-^C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\pcivme_ni.vcxproj |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Debug\pcivme_ni.lib |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Debug\pcivme_ni.lib |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Debug\pcivme_ni.exp |
-C:\Users\f9daq\rok\wienerpciada\PciVme\Dll-source\Debug\pcivme_ni.exp |
Index: wiener_pcivme_dll/Debug/os_info.obj |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/wiener_pcivme_dll/Debug/os_info.obj |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: wiener_pcivme_dll/pcivme_ni.c |
=================================================================== |
--- wiener_pcivme_dll/pcivme_ni.c (revision 218) |
+++ wiener_pcivme_dll/pcivme_ni.c (nonexistent) |
@@ -1,148 +0,0 @@ |
-//------------------------------------------------------------------------------------------- |
-// pcivme_ni.c - a ni labview dll skeleton for the ARW pcivme interface |
-// |
-// (c) 1999-2004 ARW Elektronik, Germany |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// |
-// $Log: pcivme_ni.c,v $ |
-// Revision 1.2 2004/07/24 07:47:00 klaus |
-// Update copyright to 2004 |
-// |
-// Revision 1.1.1.1 2003/11/14 23:17:18 klaus |
-// First put into repository |
-// |
-// Revision 1.2 2002/10/27 17:05:33 klaus |
-// CVS log added, file addressing bug > 2 Gbtye circumvent |
-// |
-// what who when |
-// first steps AR 07.11.1999 |
-// |
-//------------------------------------------------------------------------------------------- |
-// INCLUDES |
-// |
- |
- |
-#include <windows.h> |
-#include <os_info.h> |
-#include <pcivme_ni_NT.h> |
-#include <pcivme_ni.h> |
-#include <stdio.h> |
- |
-//------------------------------------------------------------------------------------------- |
-// DEFINES |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// TYPEDEFS |
-// |
-typedef struct |
-{ |
- int (*VMEinit)(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, int *pnHandle); |
- int (*VMEread)(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer); |
- int (*VMEwrite)(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer); |
- int (*VMEaccessVIC)(int Handle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent); |
- int (*VMEreset)(int Handle); |
- int (*VMETAS)(int Handle, unsigned long ulAddress, unsigned char *ubResult); |
- int (*VMEinterrupt)(int Handle, unsigned char *ubVector); |
- int (*VMEsysfailGet)(int nHandle, BOOLEAN *bResult); |
- int (*VMEsysfailSet)(int nHandle, BOOLEAN bForce); |
- int (*VMEclose)(int nHandle); |
-} MY_ACTIONS; |
- |
-//------------------------------------------------------------------------------------------- |
-// LOCALS |
-// |
-static MY_ACTIONS ma; // the selected actions |
-static BOOLEAN firstTime = TRUE; |
- |
-//------------------------------------------------------------------------------------------- |
-// EXTERNALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// GLOBALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// FUNCTIONS |
-// |
-int __declspec(dllexport) VMEinit(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, int *pnHandle) |
-{ |
- |
- if (firstTime) |
- { |
- if (IsWindowsNT()) |
- { |
- ma.VMEinit = VMEinitNT; |
- ma.VMEread = VMEreadNT; |
- ma.VMEwrite = VMEwriteNT; |
- ma.VMEaccessVIC = VMEaccessVICNT; |
- ma.VMEreset = VMEresetNT; |
- ma.VMETAS = VMETASNT; |
- ma.VMEinterrupt = VMEinterruptNT; |
- ma.VMEsysfailGet = VMEsysfailGetNT; |
- ma.VMEsysfailSet = VMEsysfailSetNT; |
- ma.VMEclose = VMEcloseNT; |
- } |
- |
- else |
- return -1; |
- |
- firstTime = FALSE; |
- } |
- |
- return ma.VMEinit(cszDeviceName, nVMEMM, ubAddressModifier, pnHandle); |
-} |
- |
-int __declspec(dllexport) VMEread(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer) |
-{ |
- return ma.VMEread(nHandle, ulAddress, ubAccessWidth, ulElementCount, pvBuffer); |
-} |
- |
-int __declspec(dllexport) VMEwrite(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer) |
-{ |
- return ma.VMEwrite(nHandle, ulAddress, ubAccessWidth, ulElementCount, pvBuffer); |
-} |
- |
-int __declspec(dllexport) VMEaccessVIC(int nHandle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent) |
-{ |
- return ma.VMEaccessVIC(nHandle, ubAccessMode, uwAddress, ubContent); |
-} |
- |
-int __declspec(dllexport) VMEreset(int nHandle) |
-{ |
- return ma.VMEreset(nHandle); |
-} |
- |
-int __declspec(dllexport) VMETAS(int nHandle, unsigned long ulAddress, unsigned char *ubResult) |
-{ |
- return ma.VMETAS(nHandle, ulAddress, ubResult); |
-} |
- |
-int __declspec(dllexport) VMEsysfailGet(int nHandle, BOOLEAN *bResult) |
-{ |
- return ma.VMEsysfailGet(nHandle, bResult); |
-} |
- |
-int __declspec(dllexport) VMEsysfailSet(int nHandle, BOOLEAN bForce) |
-{ |
- return ma.VMEsysfailSet(nHandle, bForce); |
-} |
- |
-int __declspec(dllexport) VMEinterrupt(int nHandle, unsigned char *ubVector) |
-{ |
- return ma.VMEinterrupt(nHandle, ubVector); |
-} |
- |
-int __declspec(dllexport) VMEclose(int nHandle) |
-{ |
- return ma.VMEclose(nHandle); |
-} |
\ No newline at end of file |
Index: wiener_pcivme_dll/pcivme_ni.plg |
=================================================================== |
--- wiener_pcivme_dll/pcivme_ni.plg (revision 218) |
+++ wiener_pcivme_dll/pcivme_ni.plg (nonexistent) |
@@ -1,37 +0,0 @@ |
-<html> |
-<body> |
-<pre> |
-<h1>Erstellungsprotokoll</h1> |
-<h3> |
---------------------Konfiguration: pcivme_ni - Win32 Release-------------------- |
-</h3> |
-<h3>Befehlszeilen</h3> |
-Erstellen der temporären Datei "E:\DOKUME~1\klaus\LOKALE~1\Temp\RSPD7.tmp" mit Inhalten |
-[ |
-/nologo /MT /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"Release/pcivme_ni.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c |
-"E:\Work\projects\pcivme_ni\pcivme_ni.c" |
-] |
-Creating command line "cl.exe @E:\DOKUME~1\klaus\LOKALE~1\Temp\RSPD7.tmp" |
-Erstellen der temporären Datei "E:\DOKUME~1\klaus\LOKALE~1\Temp\RSPD8.tmp" mit Inhalten |
-[ |
-kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"Release/pcivme_ni.pdb" /machine:I386 /out:"Release/pcivme_ni.dll" /implib:"Release/pcivme_ni.lib" |
-.\Release\Klist.obj |
-.\Release\os_info.obj |
-.\Release\pcivme_ni.obj |
-.\Release\pcivme_ni_95.obj |
-.\Release\pcivme_ni_NT.obj |
-] |
-Erstellen der Befehlzeile "link.exe @E:\DOKUME~1\klaus\LOKALE~1\Temp\RSPD8.tmp" |
-<h3>Ausgabefenster</h3> |
-Kompilierung läuft... |
-pcivme_ni.c |
-Linker-Vorgang läuft... |
- Bibliothek Release/pcivme_ni.lib und Objekt Release/pcivme_ni.exp wird erstellt |
- |
- |
- |
-<h3>Ergebnisse</h3> |
-pcivme_ni.dll - 0 Fehler, 0 Warnung(en) |
-</pre> |
-</body> |
-</html> |
Index: wiener_pcivme_dll/pcivme_ni_NT.c |
=================================================================== |
--- wiener_pcivme_dll/pcivme_ni_NT.c (revision 218) |
+++ wiener_pcivme_dll/pcivme_ni_NT.c (nonexistent) |
@@ -1,458 +0,0 @@ |
-//------------------------------------------------------------------------------------------- |
-// pcivme_ni_NT.c - a ni labview dll skeleton for the ARW pcivme interface, winNT |
-// |
-// (c) 1999-2004 ARW Elektronik, Germany |
-// |
-// this source code is published under GPL (Open Source). You can use, redistrubute and |
-// modify it unless this header is not modified or deleted. No warranty is given that |
-// this software will work like expected. |
-// This product is not authorized for use as critical component in life support systems |
-// wihout the express written approval of ARW Elektronik Germany. |
-// |
-// Please announce changes and hints to ARW Elektronik |
-// |
-// $Log: pcivme_ni_NT.c,v $ |
-// Revision 1.2 2004/07/24 07:47:00 klaus |
-// Update copyright to 2004 |
-// |
-// Revision 1.1.1.1 2003/11/14 23:17:18 klaus |
-// First put into repository |
-// |
-// Revision 1.4 2002/10/27 21:32:35 klaus |
-// compatibility improved |
-// |
-// Revision 1.3 2002/10/27 19:22:58 klaus |
-// backward compatibilty problem for 2 Gbyte limit solved |
-// |
-// Revision 1.2 2002/10/27 17:05:33 klaus |
-// CVS log added, file addressing bug > 2 Gbtye circumvent |
-// |
-// what who when |
-// first steps AR 07.11.1999 |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// INCLUDES |
-// |
-#include <windows.h> |
-#include <winioctl.h> |
-#include <pcivme.h> // header for win-NT |
-#include <vic.h> |
-#include <vme.h> |
-#include <pcivme_ni_NT.h> |
-#include <Klist.h> |
- |
-#include <stdio.h> |
-FILE *vmefp; |
-//------------------------------------------------------------------------------------------- |
-// DEFINES |
-// |
-#define DEFDEVICENAME "\\\\.\\PCIVME:\\VMEMMxx" |
-#define LIMIT_2GBYTE 0x80000000 // 2 GByte addressing limit of WINNT ... |
- |
-//------------------------------------------------------------------------------------------- |
-// TYPEDEFS |
-// |
-typedef struct // a element associated to a open path (between VMEinit and VMEclose) |
-{ |
- HANDLE nHandle; |
- PCIVME_ACCESS_COMMAND access; |
-} OPEN_PATH; |
- |
-//------------------------------------------------------------------------------------------- |
-// LOCALS |
-// |
-// user initialisation table for pcivme |
-static PCIVME_INIT_COMMAND sUserInitStruct = {2, {{STOP, WORD_ACCESS, 0, 0}}}; |
-// user deinitialisation table |
-static PCIVME_INIT_COMMAND sUserDeInitStruct = {2, {{STOP, WORD_ACCESS, 0, 0}}}; |
- |
-// the list of Path specific data (a element lives between VMEinit and VMEclose) |
-static LIST liPathList = (LIST)NULL; |
- |
-//------------------------------------------------------------------------------------------- |
-// EXTERNALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// GLOBALS |
-// |
- |
-//------------------------------------------------------------------------------------------- |
-// FUNCTIONS |
-// |
-// not only delete a element - even remove the whole list if it is empty |
-static void removeListElement(OPEN_PATH *open_path) |
-{ |
- List_Delete((LPVOID)open_path); |
- |
- // remove the list if the last item was deleted ---- |
- if ((liPathList != NULL) && (List_IsEmpty(liPathList) == TRUE)) |
- { |
- List_Destroy(&liPathList); |
- liPathList = (LIST)NULL; |
- } |
-} |
- |
-//------------------------------------------------------------------------- |
-// create a DeviceName out of cszDeviceName and nIfcNum |
-static char *DeviceName(const char *cszDeviceName, int nIfcNum) |
-{ |
- static char buffer[255]; |
- char *ptr = buffer; |
- |
- if (cszDeviceName == NULL) |
- strcpy_s(buffer, 255 , DEFDEVICENAME); |
- else |
- strcpy_s(buffer, 255 , cszDeviceName); |
- |
- while (*ptr) ptr++; |
- |
- do |
- { |
- ptr--; |
- } while (*ptr != 'M'); |
- |
- ptr++; |
- |
- if (nIfcNum >= 10) |
- { |
- *ptr++ = '1'; |
- nIfcNum -= 10; |
- } |
- |
- *ptr++ = '0' + nIfcNum; |
- *ptr = 0; |
- |
- return buffer; |
-} |
- |
-int VMEinitNT(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, int *pnHandle) |
-{ |
- OPEN_PATH *open_path; |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- DWORD result = 0; |
- vmefp = fopen("pcivme_ni.log","w"); |
- fprintf(vmefp, "VMEinitNT\n"); |
- if (liPathList == NULL) // create a list to hold the paths and its variables |
- { |
- liPathList = List_Create(); |
- if (liPathList == (LIST)NULL) |
- return GetLastError(); |
- } |
- |
- open_path = (OPEN_PATH *)List_NewFirst(liPathList, sizeof(OPEN_PATH)); |
- |
- *pnHandle = -1; |
- |
- if ((open_path->nHandle = CreateFile( |
- DeviceName(cszDeviceName, nVMEMM), |
- GENERIC_READ | GENERIC_WRITE, |
- 0, |
- NULL, |
- OPEN_EXISTING, |
- FILE_ATTRIBUTE_NORMAL, |
- NULL)) != ((HANDLE)-1)) |
- { |
- // init hardware (only one time after the first init it works OK) |
- result = DeviceIoControl(open_path->nHandle, |
- PCIVME_INIT_HARDWARE, |
- &sUserInitStruct, |
- (DWORD)sizeof(sUserInitStruct), |
- NULL, |
- (DWORD)0, |
- &DIOC_count, |
- NULL); |
- |
- // set the current access parameters ------------------ |
- open_path->access.bAddressModifier = ubAddressModifier; |
- open_path->access.bAccessType = |
- open_path->access.bIncrement = BYTE_ACCESS; |
- open_path->access.dwAccessBase = 0; |
- |
- result = DeviceIoControl(open_path->nHandle, |
- PCIVME_SET_ACCESS_PARA, |
- &open_path->access, |
- (DWORD)sizeof(open_path->access), |
- NULL, |
- 0, |
- &DIOC_count, |
- NULL); |
- |
- |
- if (!result) |
- { |
- |
- result = GetLastError(); |
- fprintf(vmefp, "DeviceIoControl result=%d\n", result); |
- fclose(vmefp); |
- CloseHandle(open_path->nHandle); |
- removeListElement(open_path); |
- return result; |
- } |
- |
- *pnHandle = (int)open_path; |
- |
- return 0; |
- } |
- else |
- { |
- |
- result = GetLastError(); |
- fprintf(vmefp, "CreateFile error result=%d %s\n", result, DeviceName(cszDeviceName, nVMEMM)); |
- fclose(vmefp); |
- removeListElement(open_path); |
- return result; |
- } |
-} |
- |
-int VMEreadNT(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- unsigned long ulNumberOfBytes = ulElementCount * ubAccessWidth; |
- unsigned long bytesRead; |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- // set the current access parameters ------------------ |
- open_path->access.bAccessType = |
- open_path->access.bIncrement = ubAccessWidth; |
- |
- // take care of only 2 Gbyte addressing capabilities of WINNT ... |
- if (ulAddress >= LIMIT_2GBYTE) |
- { |
- ulAddress -= LIMIT_2GBYTE; |
- open_path->access.dwAccessBase = LIMIT_2GBYTE; |
- } |
- else |
- open_path->access.dwAccessBase = 0; |
- |
- if (!DeviceIoControl(open_path->nHandle, |
- PCIVME_SET_ACCESS_PARA, |
- &open_path->access, |
- (DWORD)sizeof(open_path->access), |
- NULL, |
- 0, |
- &DIOC_count, |
- NULL)) |
- return GetLastError(); |
- |
- SetFilePointer(open_path->nHandle, ulAddress, NULL, FILE_BEGIN); |
- |
- if (!ReadFile(open_path->nHandle, pvBuffer, ulNumberOfBytes, &bytesRead, NULL)) |
- return GetLastError(); |
- |
- return 0; |
-} |
- |
-int VMEwriteNT(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- unsigned long ulNumberOfBytes = ulElementCount * ubAccessWidth; |
- unsigned long bytesRead; |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- // set the current access parameters ------------------ |
- open_path->access.bAccessType = |
- open_path->access.bIncrement = ubAccessWidth; |
- |
- // take care of only 2 Gbyte addressing capabilities of WINNT ... |
- if (ulAddress >= LIMIT_2GBYTE) |
- { |
- ulAddress -= LIMIT_2GBYTE; |
- open_path->access.dwAccessBase = LIMIT_2GBYTE; |
- } |
- else |
- open_path->access.dwAccessBase = 0; |
- |
- if (!DeviceIoControl(open_path->nHandle, |
- PCIVME_SET_ACCESS_PARA, |
- &open_path->access, |
- (DWORD)sizeof(open_path->access), |
- NULL, |
- 0, |
- &DIOC_count, |
- NULL)) |
- return GetLastError(); |
- |
- SetFilePointer(open_path->nHandle, ulAddress, NULL, FILE_BEGIN); |
- |
- if (!WriteFile(open_path->nHandle, pvBuffer, ulNumberOfBytes, &bytesRead, NULL)) |
- return GetLastError(); |
- |
- return 0; |
-} |
- |
-int VMEaccessVICNT(int nHandle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- PCIVME_VIC68A_ACTION sAction; // structure to access vic chip |
- DWORD result; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- sAction.wRegisterAddress = uwAddress; |
- sAction.wAccessMode = ubAccessMode; |
- sAction.bContent = *ubContent; |
- |
- result = DeviceIoControl(open_path->nHandle, PCIVME_ACCESS_VIC68A, |
- &sAction, sizeof(sAction), &sAction, |
- sizeof(sAction), &DIOC_count, NULL); |
- |
- *ubContent = sAction.bContent; |
- |
- if (!result) |
- return GetLastError(); |
- else |
- return 0; |
-} |
- |
-int VMEresetNT(int nHandle) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- DWORD result; |
- PCIVME_RESET_COMMAND reset_command; |
- PCIVME_RESET_RESULT reset_result; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- reset_command.wCommand = VME_RESET_CMD; |
- reset_result.wResult = 0; |
- result = DeviceIoControl(open_path->nHandle, PCIVME_RESET, |
- &reset_command, sizeof(reset_command), |
- &reset_result, sizeof(reset_result), |
- &DIOC_count, NULL); |
- |
- if (!result) |
- return GetLastError(); |
- else |
- { |
- result = 1; |
- |
- while (reset_result.wResult && result) |
- { |
- reset_command.wCommand = POLL_RESET_CMD; |
- result = DeviceIoControl(open_path->nHandle, PCIVME_RESET, |
- &reset_command, sizeof(reset_command), |
- &reset_result, sizeof(reset_result), |
- &DIOC_count, NULL); |
- Sleep(10); |
- } |
- } |
- |
- if (!result) |
- return GetLastError(); |
- else |
- return 0; |
-} |
- |
-int VMETASNT(int nHandle, unsigned long ulAddress, unsigned char *ubResult) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- PCIVME_TAS_STRUCT sTAS; // structure to do a Test and Set |
- DWORD result; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- sTAS.wModifier = open_path->access.bAddressModifier; |
- sTAS.dwAddress = ulAddress; |
- sTAS.bContent = 0x80; |
- |
- result = DeviceIoControl(open_path->nHandle, PCIVME_TAS, |
- &sTAS, (DWORD)sizeof(sTAS), &sTAS, |
- (DWORD)sizeof(sTAS), &DIOC_count, NULL); |
- |
- *ubResult = sTAS.bContent; |
- |
- if (!result) |
- return GetLastError(); |
- else |
- return 0; |
-} |
- |
-int VMEinterruptNT(int nHandle, unsigned char *ubVector) |
-{ |
-// DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- return 0; |
-} |
- |
-int VMEsysfailGetNT(int nHandle, BOOLEAN *bResult) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- PCIVME_VIC68A_ACTION sAction; // structure to access vic chip |
- DWORD result; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- sAction.wRegisterAddress = EGICR; |
- sAction.wAccessMode = VIC68A_READ; |
- sAction.bContent = 0; |
- |
- result = DeviceIoControl(open_path->nHandle, PCIVME_ACCESS_VIC68A, |
- &sAction, sizeof(sAction), &sAction, |
- sizeof(sAction), &DIOC_count, NULL); |
- |
- |
- *bResult = (sAction.bContent & 0x08) ? FALSE : TRUE; |
- |
- if (!result) |
- return GetLastError(); |
- else |
- return 0; |
-} |
- |
-int VMEsysfailSetNT(int nHandle, BOOLEAN bForce) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- PCIVME_VIC68A_ACTION sAction; // structure to access vic chip |
- DWORD result; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- sAction.wRegisterAddress = ICR7; |
- sAction.wAccessMode = (bForce == TRUE) ? VIC68A_AND : VIC68A_OR; |
- sAction.bContent = (bForce == TRUE) ? 0x3F : 0x80; |
- |
- result = DeviceIoControl(open_path->nHandle, PCIVME_ACCESS_VIC68A, |
- &sAction, (DWORD)sizeof(sAction), &sAction, |
- (DWORD)sizeof(sAction), &DIOC_count, NULL); |
- if (!result) |
- return GetLastError(); |
- else |
- return 0; |
-} |
- |
-int VMEcloseNT(int nHandle) |
-{ |
- DWORD DIOC_count; // count of returned bytes of DeviceIoControl |
- OPEN_PATH *open_path = (OPEN_PATH *)nHandle; |
- |
- if (nHandle == -1) return ERROR_PATH_NOT_FOUND; |
- |
- DeviceIoControl(open_path->nHandle, |
- PCIVME_DEINIT_HARDWARE, |
- &sUserDeInitStruct, |
- (DWORD)sizeof(sUserDeInitStruct), |
- NULL, |
- 0, |
- &DIOC_count, |
- NULL); |
- |
- CloseHandle(open_path->nHandle); |
- removeListElement(open_path); |
- |
- return 0; |
-} |
- |