- globally disable warnings for char array subscripts
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 6 Mar 2010 18:55:27 +0000 (18:55 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 6 Mar 2010 18:55:27 +0000 (18:55 +0000)
- 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

svn path=/branches/header-work/; revision=45961

ReactOS-generic.rbuild
boot/freeldr/freeldr/include/freeldr.h
drivers/base/bootvid/precomp.h
drivers/base/kdcom/i386/kdbg.c
drivers/storage/class/ramdisk/ramdisk.c
include/ddk/wdm.h
include/ddk/winddk.h
ntoskrnl/include/ntoskrnl.h

index 82159f4..9258f28 100644 (file)
@@ -88,6 +88,7 @@
 
        <group compilerset="gcc">
                <compilerflag>-Wall</compilerflag>
+               <compilerflag>-Wno-char-subscripts</compilerflag>
                <compilerflag compiler="cxx">-Wno-non-virtual-dtor</compilerflag>
        </group>
 
index ca8788d..b053700 100644 (file)
@@ -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>
index b74cf0d..c7d55e9 100644 (file)
@@ -1,4 +1,5 @@
 #include "ntddk.h"
+#include "ntifs.h"
 #include "arc/arc.h"
 #include "halfuncs.h"
 #include "drivers/bootvid/bootvid.h"
index ed5b1bc..c8fad2f 100644 (file)
@@ -11,6 +11,7 @@
 
 #define NOEXTAPI
 #include <ntddk.h>
+#include <ntifs.h>
 #define NDEBUG
 #include <halfuncs.h>
 #include <stdio.h>
index e3d3d8e..c56c791 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <initguid.h>
 #include <ntddk.h>
+#include <ntifs.h>
 #include <ntdddisk.h>
 #include <ntddcdrm.h>
 #include <scsi.h>
index 9b60665..739f824 100644 (file)
@@ -1040,6 +1040,7 @@ KeSetTargetProcessorDpc(
 
 NTKERNELAPI
 KAFFINITY
+NTAPI
 KeQueryActiveProcessors(
   VOID);
 #endif
@@ -2607,7 +2608,7 @@ PoRequestPowerIrp(
   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
index aef2320..25f93d4 100644 (file)
@@ -2813,6 +2813,77 @@ IoWritePartitionTableEx(
   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
index 9c6a067..d116cb3 100644 (file)
@@ -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