- 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

svn path=/branches/header-work/; revision=45961
This commit is contained in:
Timo Kreuzer 2010-03-06 18:55:27 +00:00
parent d29802813d
commit 26d4a0c37d
8 changed files with 79 additions and 1 deletions

View 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>

View 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>

View file

@ -1,4 +1,5 @@
#include "ntddk.h"
#include "ntifs.h"
#include "arc/arc.h"
#include "halfuncs.h"
#include "drivers/bootvid/bootvid.h"

View file

@ -11,6 +11,7 @@
#define NOEXTAPI
#include <ntddk.h>
#include <ntifs.h>
#define NDEBUG
#include <halfuncs.h>
#include <stdio.h>

View file

@ -10,6 +10,7 @@
#include <initguid.h>
#include <ntddk.h>
#include <ntifs.h>
#include <ntdddisk.h>
#include <ntddcdrm.h>
#include <scsi.h>

View 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

View 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

View 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