Author: tkreuzer
Date: Sat Mar 6 19:55:27 2010
New Revision: 45961
URL:
http://svn.reactos.org/svn/reactos?rev=45961&view=rev
Log:
- globally disable warnings for char array subscripts
- include ntifs.h in bootvid, kdcom, ramdisk, freeldr
- define SINGLE_GROUP_LEGACY_API for the kernel
- Add back missing prototypes: IoFreeAdapterChannel, IoMapTransfer, IoFlushAdapterBuffers,
IoFreeMapRegisters, HalAllocateCommonBuffer, HalFreeCommonBuffer, HalReadDmaCounter
- add missing NTAPI to KeQueryActiveProcessors
Modified:
branches/header-work/ReactOS-generic.rbuild
branches/header-work/boot/freeldr/freeldr/include/freeldr.h
branches/header-work/drivers/base/bootvid/precomp.h
branches/header-work/drivers/base/kdcom/i386/kdbg.c
branches/header-work/drivers/storage/class/ramdisk/ramdisk.c
branches/header-work/include/ddk/wdm.h
branches/header-work/include/ddk/winddk.h
branches/header-work/ntoskrnl/include/ntoskrnl.h
Modified: branches/header-work/ReactOS-generic.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/ReactOS-generic.rbu…
==============================================================================
--- branches/header-work/ReactOS-generic.rbuild [iso-8859-1] (original)
+++ branches/header-work/ReactOS-generic.rbuild [iso-8859-1] Sat Mar 6 19:55:27 2010
@@ -88,6 +88,7 @@
<group compilerset="gcc">
<compilerflag>-Wall</compilerflag>
+ <compilerflag>-Wno-char-subscripts</compilerflag>
<compilerflag
compiler="cxx">-Wno-non-virtual-dtor</compilerflag>
</group>
Modified: branches/header-work/boot/freeldr/freeldr/include/freeldr.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/boot/freeldr/freeld…
==============================================================================
--- branches/header-work/boot/freeldr/freeldr/include/freeldr.h [iso-8859-1] (original)
+++ branches/header-work/boot/freeldr/freeldr/include/freeldr.h [iso-8859-1] Sat Mar 6
19:55:27 2010
@@ -32,6 +32,7 @@
#define NTOSAPI
#define printf TuiPrintf
#include <ntddk.h>
+#include <ntifs.h>
#include <ioaccess.h>
#include <arc/arc.h>
#include <ketypes.h>
Modified: branches/header-work/drivers/base/bootvid/precomp.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/drivers/base/bootvi…
==============================================================================
--- branches/header-work/drivers/base/bootvid/precomp.h [iso-8859-1] (original)
+++ branches/header-work/drivers/base/bootvid/precomp.h [iso-8859-1] Sat Mar 6 19:55:27
2010
@@ -1,4 +1,5 @@
#include "ntddk.h"
+#include "ntifs.h"
#include "arc/arc.h"
#include "halfuncs.h"
#include "drivers/bootvid/bootvid.h"
Modified: branches/header-work/drivers/base/kdcom/i386/kdbg.c
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/drivers/base/kdcom/…
==============================================================================
--- branches/header-work/drivers/base/kdcom/i386/kdbg.c [iso-8859-1] (original)
+++ branches/header-work/drivers/base/kdcom/i386/kdbg.c [iso-8859-1] Sat Mar 6 19:55:27
2010
@@ -11,6 +11,7 @@
#define NOEXTAPI
#include <ntddk.h>
+#include <ntifs.h>
#define NDEBUG
#include <halfuncs.h>
#include <stdio.h>
Modified: branches/header-work/drivers/storage/class/ramdisk/ramdisk.c
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/drivers/storage/cla…
==============================================================================
--- branches/header-work/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ branches/header-work/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Sat Mar 6
19:55:27 2010
@@ -10,6 +10,7 @@
#include <initguid.h>
#include <ntddk.h>
+#include <ntifs.h>
#include <ntdddisk.h>
#include <ntddcdrm.h>
#include <scsi.h>
Modified: branches/header-work/include/ddk/wdm.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/wdm.h?r…
==============================================================================
--- branches/header-work/include/ddk/wdm.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/wdm.h [iso-8859-1] Sat Mar 6 19:55:27 2010
@@ -1040,6 +1040,7 @@
NTKERNELAPI
KAFFINITY
+NTAPI
KeQueryActiveProcessors(
VOID);
#endif
@@ -2607,7 +2608,7 @@
IN POWER_STATE PowerState,
IN PREQUEST_POWER_COMPLETE CompletionFunction OPTIONAL,
IN PVOID Context OPTIONAL,
- OUT struct _IRP *Irp OPTIONAL);
+ OUT struct _IRP **Irp OPTIONAL);
NTKERNELAPI
POWER_STATE
Modified: branches/header-work/include/ddk/winddk.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/winddk.…
==============================================================================
--- branches/header-work/include/ddk/winddk.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/winddk.h [iso-8859-1] Sat Mar 6 19:55:27 2010
@@ -2813,6 +2813,77 @@
IN PDEVICE_OBJECT DeviceObject,
IN struct _DRIVE_LAYOUT_INFORMATION_EX *PartitionBuffer);
+#if (NTDDI_VERSION >= NTDDI_WIN2K)
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+VOID
+NTAPI
+IoFreeAdapterChannel(
+ IN PADAPTER_OBJECT AdapterObject);
+
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+PHYSICAL_ADDRESS
+NTAPI
+IoMapTransfer(
+ IN PADAPTER_OBJECT AdapterObject,
+ IN PMDL Mdl,
+ IN PVOID MapRegisterBase,
+ IN PVOID CurrentVa,
+ IN OUT PULONG Length,
+ IN BOOLEAN WriteToDevice);
+
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+BOOLEAN
+NTAPI
+IoFlushAdapterBuffers(
+ IN PADAPTER_OBJECT AdapterObject,
+ IN PMDL Mdl,
+ IN PVOID MapRegisterBase,
+ IN PVOID CurrentVa,
+ IN ULONG Length,
+ IN BOOLEAN WriteToDevice);
+
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+VOID
+NTAPI
+IoFreeMapRegisters(
+ IN PADAPTER_OBJECT AdapterObject,
+ IN PVOID MapRegisterBase,
+ IN ULONG NumberOfMapRegisters);
+
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+PVOID
+NTAPI
+HalAllocateCommonBuffer(
+ IN PADAPTER_OBJECT AdapterObject,
+ IN ULONG Length,
+ IN PPHYSICAL_ADDRESS LogicalAddress,
+ IN BOOLEAN CacheEnabled);
+
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+VOID
+NTAPI
+HalFreeCommonBuffer(
+ IN PADAPTER_OBJECT AdapterObject,
+ IN ULONG Length,
+ IN PHYSICAL_ADDRESS LogicalAddress,
+ IN PVOID VirtualAddress,
+ IN BOOLEAN CacheEnabled);
+
+//DECLSPEC_DEPRECATED_DDK
+NTHALAPI
+ULONG
+NTAPI
+HalReadDmaCounter(
+ IN PADAPTER_OBJECT AdapterObject);
+
+#endif
+
/** Kernel routines **/
NTKERNELAPI
Modified: branches/header-work/ntoskrnl/include/ntoskrnl.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/ntoskrnl/include/nt…
==============================================================================
--- branches/header-work/ntoskrnl/include/ntoskrnl.h [iso-8859-1] (original)
+++ branches/header-work/ntoskrnl/include/ntoskrnl.h [iso-8859-1] Sat Mar 6 19:55:27
2010
@@ -19,6 +19,7 @@
/* DDK/IFS/NDK Headers */
#define _REALLY_GET_CALLERS_CALLER
+#define SINGLE_GROUP_LEGACY_API
#include <excpt.h>
#include <ntdef.h>
#undef DECLSPEC_IMPORT