Author: hbelusca
Date: Thu Mar 19 21:00:25 2015
New Revision: 66820
URL:
http://svn.reactos.org/svn/reactos?rev=66820&view=rev
Log:
[DDK]: Update VDD headers.
Modified:
trunk/reactos/include/ddk/nt_vdd.h
trunk/reactos/include/ddk/vddsvc.h
Modified: trunk/reactos/include/ddk/nt_vdd.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/nt_vdd.h?rev=6…
==============================================================================
--- trunk/reactos/include/ddk/nt_vdd.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/nt_vdd.h [iso-8859-1] Thu Mar 19 21:00:25 2015
@@ -191,25 +191,19 @@
PVOID FaultAddress,
ULONG RWMode);
-PBYTE
-WINAPI
-Sim32pGetVDMPointer(
- _In_ ULONG Address,
- _In_ BOOLEAN ProtectedMode);
-
-PBYTE
-WINAPI
-MGetVdmPointer(
- _In_ ULONG Address,
- _In_ ULONG Size,
- _In_ BOOLEAN ProtectedMode);
-
PVOID
WINAPI
VdmMapFlat(
_In_ USHORT Segment,
_In_ ULONG Offset,
_In_ VDM_MODE Mode);
+
+#ifdef _X86_
+
+#define VdmFlushCache(sel, off, len, mode) TRUE
+#define VdmUnmapFlat(sel, off, buf, mode) TRUE
+
+#else
BOOL
WINAPI
@@ -227,6 +221,8 @@
_In_ PVOID Buffer,
_In_ VDM_MODE Mode);
+#endif
+
BOOL
WINAPI
VDDInstallMemoryHook(
Modified: trunk/reactos/include/ddk/vddsvc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/vddsvc.h?rev=6…
==============================================================================
--- trunk/reactos/include/ddk/vddsvc.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/vddsvc.h [iso-8859-1] Thu Mar 19 21:00:25 2015
@@ -34,15 +34,71 @@
VOID
WINAPI
-call_ica_hw_interrupt
-(
- INT ms,
- BYTE line,
- INT count
-);
-
-#define VDDSimulateInterrupt(ms, line, count) \
+call_ica_hw_interrupt(
+ _In_ INT ms,
+ _In_ BYTE line,
+ _In_ INT count);
+
+#define VDDSimulateInterrupt(ms, line, count) \
call_ica_hw_interrupt((ms), (line), (count)) // Windows specifies a count of 1 ...
+
+
+/*
+ * Memory services
+ */
+
+#ifdef i386
+
+PBYTE
+WINAPI
+MGetVdmPointer(
+ _In_ ULONG Address,
+ _In_ ULONG Size,
+ _In_ BOOLEAN ProtectedMode);
+
+#define Sim32GetVDMPointer(Address, Size, Mode) \
+ MGetVdmPointer((Address), (Size), (Mode))
+
+#define Sim32FlushVDMPointer(Address, Size, Buffer, Mode) TRUE
+
+#else
+
+PBYTE
+WINAPI
+Sim32GetVDMPointer(
+ _In_ ULONG Address,
+ _In_ ULONG Size,
+ _In_ BOOLEAN ProtectedMode);
+
+BOOLEAN
+WINAPI
+Sim32FlushVDMPointer(
+ _In_ ULONG Address,
+ _In_ ULONG Size,
+ _In_ PBYTE Buffer,
+ _In_ BOOLEAN ProtectedMode);
+
+#endif
+
+PBYTE
+WINAPI
+Sim32pGetVDMPointer(
+ _In_ ULONG Address,
+ _In_ BOOLEAN ProtectedMode);
+
+/* This API appears to have been never implemented anywhere... */
+#define Sim32FreeVDMPointer(Address, Size, Buffer, Mode) TRUE
+
+#define GetVDMAddress(usSeg, usOff) (((ULONG)(usSeg) << 4) + (ULONG)(usOff))
+
+#define GetVDMPointer(Address, Size, Mode) \
+ Sim32GetVDMPointer(Address, Size, Mode)
+
+#define FlushVDMPointer(Address, Size, Buffer, Mode) \
+ Sim32FlushVDMPointer(Address, Size, Buffer, Mode)
+
+#define FreeVDMPointer(Address, Size, Buffer, Mode) \
+ Sim32FreeVDMPointer(Address, Size, Buffer, Mode)
/*