mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:25:52 +00:00
[DDK]: Update VDD headers.
svn path=/trunk/; revision=66820
This commit is contained in:
parent
6f1802eece
commit
0c66b36a42
2 changed files with 72 additions and 20 deletions
|
@ -191,19 +191,6 @@ typedef VOID
|
||||||
PVOID FaultAddress,
|
PVOID FaultAddress,
|
||||||
ULONG RWMode);
|
ULONG RWMode);
|
||||||
|
|
||||||
PBYTE
|
|
||||||
WINAPI
|
|
||||||
Sim32pGetVDMPointer(
|
|
||||||
_In_ ULONG Address,
|
|
||||||
_In_ BOOLEAN ProtectedMode);
|
|
||||||
|
|
||||||
PBYTE
|
|
||||||
WINAPI
|
|
||||||
MGetVdmPointer(
|
|
||||||
_In_ ULONG Address,
|
|
||||||
_In_ ULONG Size,
|
|
||||||
_In_ BOOLEAN ProtectedMode);
|
|
||||||
|
|
||||||
PVOID
|
PVOID
|
||||||
WINAPI
|
WINAPI
|
||||||
VdmMapFlat(
|
VdmMapFlat(
|
||||||
|
@ -211,6 +198,13 @@ VdmMapFlat(
|
||||||
_In_ ULONG Offset,
|
_In_ ULONG Offset,
|
||||||
_In_ VDM_MODE Mode);
|
_In_ VDM_MODE Mode);
|
||||||
|
|
||||||
|
#ifdef _X86_
|
||||||
|
|
||||||
|
#define VdmFlushCache(sel, off, len, mode) TRUE
|
||||||
|
#define VdmUnmapFlat(sel, off, buf, mode) TRUE
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
VdmFlushCache(
|
VdmFlushCache(
|
||||||
|
@ -227,6 +221,8 @@ VdmUnmapFlat(
|
||||||
_In_ PVOID Buffer,
|
_In_ PVOID Buffer,
|
||||||
_In_ VDM_MODE Mode);
|
_In_ VDM_MODE Mode);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
VDDInstallMemoryHook(
|
VDDInstallMemoryHook(
|
||||||
|
|
|
@ -34,17 +34,73 @@
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
WINAPI
|
WINAPI
|
||||||
call_ica_hw_interrupt
|
call_ica_hw_interrupt(
|
||||||
(
|
_In_ INT ms,
|
||||||
INT ms,
|
_In_ BYTE line,
|
||||||
BYTE line,
|
_In_ INT count);
|
||||||
INT count
|
|
||||||
);
|
|
||||||
|
|
||||||
#define VDDSimulateInterrupt(ms, line, count) \
|
#define VDDSimulateInterrupt(ms, line, count) \
|
||||||
call_ica_hw_interrupt((ms), (line), (count)) // Windows specifies a count of 1 ...
|
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)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Registers manipulation
|
* Registers manipulation
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue