* Add header guards to the main headers.
CORE-7716
svn path=/trunk/; revision=62006
+#ifndef _BOOTVID_PCH_
+#define _BOOTVID_PCH_
+
#include <wdm.h>
#include <drivers/bootvid/bootvid.h>
extern ULONG_PTR VgaRegisterBase;
extern ULONG_PTR VgaBase;
extern UCHAR FontData[256 * BOOTCHAR_HEIGHT];
+
+#endif /* _BOOTVID_PCH_ */
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@ewactos.org)
*/
+#ifndef _KDDLL_H_
+#define _KDDLL_H_
+
#define NOEXTAPI
#include <ntifs.h>
#include <windbgkd.h>
NTAPI
KdpPollBreakIn(VOID);
-/* EOF */
+#endif /* _KDDLL_H_ */
* PROGRAMMERS: ReactOS Portable Systems Group
*/
+#ifndef _CMBATT_PCH_
+#define _CMBATT_PCH_
+
#include <wdm.h>
#include <batclass.h>
#include <wmilib.h>
extern PDEVICE_OBJECT AcAdapterPdo;
extern ULONG CmBattDebug;
-/* EOF */
+#endif /* _CMBATT_PCH_ */
* PROGRAMMERS: ReactOS Portable Systems Group
*/
+#ifndef _COMPBATT_PCH_
+#define _COMPBATT_PCH_
+
#include <wdm.h>
#include <batclass.h>
IN ULONG OutputBufferLength,
IN BOOLEAN InternalDeviceIoControl
);
-
+
extern ULONG CompBattDebug;
-/* EOF */
+#endif /* _COMPBATT_PCH_ */
* PURPOSE: FDO-specific code
* PROGRAMMERS: Cameron Gutman (cameron.gutman@reactos.org)
*/
+
#include <isapnp.h>
#define NDEBUG
* PURPOSE: Hardware support code
* PROGRAMMERS: Cameron Gutman (cameron.gutman@reactos.org)
*/
+
#include <isapnp.h>
#include <isapnphw.h>
* PURPOSE: Driver entry
* PROGRAMMERS: Cameron Gutman (cameron.gutman@reactos.org)
*/
+
#include <isapnp.h>
#define NDEBUG
+#ifndef _ISAPNP_PCH_
+#define _ISAPNP_PCH_
#include <wdm.h>
#ifdef __cplusplus
}
#endif
+
+#endif /* _ISAPNP_PCH_ */
* PURPOSE: PDO-specific code
* PROGRAMMERS: Cameron Gutman (cameron.gutman@reactos.org)
*/
+
#include <isapnp.h>
#define NDEBUG
+#ifndef _PCI_PCH_
+#define _PCI_PCH_
+
#include <ntifs.h>
#define TAG_PCI '0ICP'
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath);
+
+#endif /* _PCI_PCH_ */
* PROGRAMMERS: ReactOS Portable Systems Group
*/
+#ifndef _PCIX_PCH_
+#define _PCIX_PCH_
+
#include <ntifs.h>
#include <wdmguid.h>
#include <wchar.h>
/* Exported by NTOS, should this go in the NDK? */
extern NTSYSAPI BOOLEAN InitSafeBootMode;
-/* EOF */
+#endif /* _PCIX_PCH_ */
return STATUS_NOT_SUPPORTED;
}
-
+#ifndef _PCMCIA_PCH_
+#define _PCMCIA_PCH_
+
#include <wdm.h>
typedef enum
PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt,
PIRP Irp);
+#endif /* _PCMCIA_PCH_ */
return STATUS_SUCCESS;
}
-
FastIoDispatch->AcquireForCcFlush = VfatAcquireForCcFlush;
FastIoDispatch->ReleaseForCcFlush = VfatReleaseForCcFlush;
}
-
return STATUS_SUCCESS;
}
-
return STATUS_SUCCESS;
}
-
DPRINT("%x\n", Status);
return Status;
}
-
* Eric Kohl
*/
+#ifndef _FS_REC_H
+#define _FS_REC_H
+
#include <ntifs.h>
/* Tag for memory allocations */
IN PDEVICE_OBJECT DeviceObject,
IN PWCHAR DriverServiceName
);
+
+#endif /* _FS_REC_H */
#define NDEBUG
#include <debug.h>
-/* GLOBALS *****************************************************************/
-
-
/* FUNCTIONS ****************************************************************/
/*
return STATUS_SUCCESS;
}
-
-#pragma once
+#ifndef _HIDCLASS_PCH_
+#define _HIDCLASS_PCH_
#define _HIDPI_NO_FUNCTION_MACROS_
#include <wdm.h>
PHIDP_DEVICE_DESC DeviceDescription,
ULONG CollectionNumber);
-/* eof */
+#endif /* _HIDCLASS_PCH_ */
+#ifndef _KBDCLASS_PCH_
+#define _KBDCLASS_PCH_
+
#include <ntifs.h>
#include <ntddkbd.h>
IN ULONG Flags,
IN PCUNICODE_STRING SourceString,
OUT PUNICODE_STRING DestinationString);
+
+#endif /* _KBDCLASS_PCH_ */
+#ifndef _MOUCLASS_PCH_
+#define _MOUCLASS_PCH_
+
#include <ntifs.h>
#include <ntddmou.h>
IN ULONG Flags,
IN PCUNICODE_STRING SourceString,
OUT PUNICODE_STRING DestinationString);
+
+#endif /* _MOUCLASS_PCH_ */
+#ifndef _SERMOUSE_PCH_
+#define _SERMOUSE_PCH_
+
#include <ntddk.h>
#include <ntddser.h>
#include <kbdmou.h>
VOID NTAPI
SermouseDeviceWorker(
PVOID Context);
+
+#endif /* _SERMOUSE_PCH_ */
+#ifndef _KS_PCH_
+#define _KS_PCH_
+
#define _KSDDK_
#include <ntddk.h>
DEFINE_KSPROPERTY_ITEM_STREAM_MASTERCLOCK(PropMasterClock, PropMasterClock),\
DEFINE_KSPROPERTY_ITEM_STREAM_PIPE_ID(PropPipeId, PropPipeId)\
}
+
+#endif /* _KS_PCH_ */
* PURPOSE: NE2000 driver definitions
*/
+#ifndef _NE2000_PCH_
+#define _NE2000_PCH_
+
#define NDIS_MINIPORT_DRIVER 1
#define NDIS_LEGACY_MINIPORT 1
#define NDIS51_MINIPORT 1
#include <ndis.h>
#include <8390.h>
-#include <debug.h>
+
+#include "debug.h"
/* Define NOCARD to test NDIS without a card */
//#define NOCARD
VOID NICTransmit(
PNIC_ADAPTER Adapter);
-/* EOF */
+#endif /* _NE2000_PCH_ */
* REVISIONS:
* CSH 27/08-2000 Created
*/
+
#include <ne2000.h>
/* Null-terminated array of ports to probe. This is "semi-risky" (Don Becker). */
* REVISIONS:
* CSH 27/08-2000 Created
*/
+
#include <ne2000.h>
NTSTATUS
}
#endif
+
/* EOF */
return NDIS_STATUS_SUCCESS;
}
-
* - this assumes 32-bit physical addresses
*/
+#ifndef _PCNET_PCH_
+#define _PCNET_PCH_
+
#include <ndis.h>
+
#include "pci.h"
#include "pcnethw.h"
/* memory pool tag */
#define PCNET_TAG 'tNcP'
+
+#endif /* _PCNET_PCH_ */
NdisDprReleaseSpinLock(&adapter->Lock);
}
-
return NDIS_STATUS_SUCCESS;
}
-
* PURPOSE: RTL8139 driver definitions
*/
+#ifndef _RTL8139_PCH_
+#define _RTL8139_PCH_
+
#include <ndis.h>
-#include <rtlhw.h>
+
+#include "rtlhw.h"
#define ADAPTER_TAG 'Altr'
#define RESOURCE_LIST_TAG 'Rltr'
IN NDIS_HANDLE MiniportAdapterContext
);
-/* EOF */
+#endif /* _RTL8139_PCH_ */
/* Return success */
return STATUS_SUCCESS;
-}
\ No newline at end of file
+}
* invalidating file handles pointer to this adapter for us */
*Status = UnbindAdapterByContext(ProtocolBindingContext);
}
-
IoCompleteRequest(Irp, IO_NETWORK_INCREMENT);
return Status;
-}
\ No newline at end of file
+}
#pragma once
-
ULONG ChecksumFold(
ULONG Sum);
#pragma once
-#include <ip.h>
-
#define IFENT_SOFTWARE_LOOPBACK 24 /* This is an SNMP constant from rfc1213 */
NTSTATUS GetInterfaceIPv4Address( PIP_INTERFACE Interface,
NTSTATUS GetInterfaceConnectionStatus( PIP_INTERFACE Interface,
PULONG OperStatus );
PIP_INTERFACE FindOnLinkInterface(PIP_ADDRESS Address);
-PIP_INTERFACE GetDefaultInterface(VOID);
\ No newline at end of file
+PIP_INTERFACE GetDefaultInterface(VOID);
+#ifndef _TCPIP_PCH_
+#define _TCPIP_PCH_
+
#include <tags.h>
#include <tcpip.h>
#include <loopback.h>
#include <lock.h>
#include <interface.h>
#include <chew/chew.h>
+
+#endif /* _TCPIP_PCH_ */
NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE);
+
/* EOF */
/* This removes all of them */
RemoveEntityByContext(Interface);
}
-
*/
#include "precomp.h"
+
#include <debug.h>
VOID AddEntity(ULONG EntityType, PVOID Context, ULONG Flags)
* PROGRAMMERS: Art Yerkes
* REVISIONS:
*/
+
#include "precomp.h"
KIRQL TcpipGetCurrentIrql() { return KeGetCurrentIrql(); }
VOID TcpipReleaseFastMutex( PFAST_MUTEX Mutex ) {
ExReleaseFastMutex( Mutex );
}
-
* PROGRAMMERS: Art Yerkes
* REVISIONS:
*/
+
#include "precomp.h"
KIRQL KernelIrql = PASSIVE_LEVEL;
VOID TcpipReleaseFastMutex( PFAST_MUTEX Mutex ) {
}
-
* PROGRAMMERS: Art Yerkes
* REVISIONS:
*/
+
#include "precomp.h"
NTSTATUS TcpipWaitForSingleObject( PVOID Object,
#define IP_ROUTE_TYPE_ADD 3
#define IP_ROUTE_TYPE_DEL 2
-
-
/* Get IPRouteEntry s for each of the routes in the system */
TDI_STATUS InfoTdiQueryGetRouteTable( PIP_INTERFACE IF, PNDIS_BUFFER Buffer, PUINT BufferSize ) {
TDI_STATUS Status;
return TDI_INVALID_REQUEST;
}
-
return STATUS_SUCCESS;
}
-
* PROGRAMMERS: Art Yerkes
* REVISIONS:
*/
+
#include "precomp.h"
NTSTATUS TcpipWaitForSingleObject( PVOID Object,
-
#include "precomp.h"
/*
* DESCRIPTION: Entry point for TDI.SYS
* (c) Captain Obvious
*/
+
#include "precomp.h"
extern LONG CteTimeIncrement;
return STATUS_SUCCESS;
}
-
-
/* EOF */
/*
* DESCRIPTION: Default TDI event handlers.
*/
+
#include "precomp.h"
/*
-
#include "precomp.h"
/*
-
#include "precomp.h"
/*
* PROGRAMMERS: ReactOS Portable Systems Group
*/
+#ifndef _SACDRV_H_
+#define _SACDRV_H_
+
/* INCLUDES *******************************************************************/
#include <ntifs.h>
#define VT_ANSI_HVP_CURSOR_CHAR L'f'
#define VT_ANSI_CUP_CURSOR_CHAR L'H'
#define VT_ANSI_SCROLL_CHAR L'r'
+
+#endif /* _SACDRV_H_ */
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
*/
+#ifndef _SERENUM_PCH_
+#define _SERENUM_PCH_
+
#include <ntifs.h>
#include <ntddser.h>
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegPath);
+
+#endif /* _SERENUM_PCH_ */
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
*/
+#ifndef _SERIAL_PCH_
+#define _SERIAL_PCH_
+
#include <ntddk.h>
#include <ntddser.h>
DRIVER_DISPATCH SerialRead;
DRIVER_DISPATCH SerialWrite;
+
+#endif /* _SERIAL_PCH_ */
* PROGRAMMERS: Aleksey Bragin (aleksey@reactos.org)
*/
+#ifndef _BLUE_PCH_
+#define _BLUE_PCH_
+
#include <wdm.h>
typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES;
void ScrLoadFontTable(UINT32 CodePage);
NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField);
+
+#endif /* _BLUE_PCH_ */
+#ifndef _CDROM_PCH_
+#define _CDROM_PCH_
+
#include <ntdef.h>
#include <ntstatus.h>
+
+#endif /* _CDROM_PCH_ */
--*/
+#ifndef _DISK_NEW_H_
+#define _DISK_NEW_H_
+
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#define NTDDI_VERSION NTDDI_WINXP
#define DiskHashGuid(Guid) (((PULONG) &Guid)[0] ^ ((PULONG) &Guid)[0] ^ ((PULONG) &Guid)[0] ^ ((PULONG) &Guid)[0])
+
+#endif /* _DISK_NEW_H_ */
#pragma once
-#include "ntddscsi.h"
-#include "srb.h"
+#include <ntddscsi.h>
+#include <srb.h>
#define MAXIMUM_RETRIES 15
#define RETRY_WAIT 2000000 /* 200 ms in units of 100 ns */
--*/
+#ifndef _CLASSPNP_PCH_
+#define _CLASSPNP_PCH_
+
#include <ntddk.h>
#include <classpnp.h>
#include <ioevent.h>
VOID NTAPI DestroyAllTransferPackets(PDEVICE_OBJECT Fdo);
#include "debug.h"
+
+#endif /* _CLASSPNP_PCH_ */
* PROGRAMMERS: Eric Kohl
*/
+#ifndef _FDC_PCH_
+#define _FDC_PCH_
+
#include <ntifs.h>
#define MAX_DEVICE_NAME 255
FdcPdoPnp(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
+
+#endif /* _FDC_PCH_ */
+#ifndef _FLOPPY_PCH_
+#define _FLOPPY_PCH_
+
#include <wdm.h>
#include "floppy.h"
#include "csqrtns.h"
#include "hardware.h"
+
+#endif /* _FLOPPY_PCH_ */
+#ifndef _PCIIDEX_PCH_
+#define _PCIIDEX_PCH_
+
#include <ntifs.h>
#include <ide.h>
PciIdeXPdoPnpDispatch(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
+
+#endif /* _PCIIDEX_PCH_ */
+#ifndef _SCSIPORT_PCH_
+#define _SCSIPORT_PCH_
+
#include <wdm.h>
+
+#endif /* _SCSIPORT_PCH_ */
-#pragma once
+#ifndef _USBHUB_H_
+#define _USBHUB_H_
#include <wdm.h>
#include <hubbusif.h>
USBHUB_ParentFDOStartDevice(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
+
+#endif /* _USBHUB_H_ */
// device is configured
//
return STATUS_SUCCESS;
-}
\ No newline at end of file
+}
return STATUS_SUCCESS;
}
-
-
-#pragma once
+#ifndef _USBSTOR_H_
+#define _USBSTOR_H_
#include <wdm.h>
#include <usbdi.h>
#define USB_STOR_TAG 'sbsu'
#define USB_MAXCHILDREN (16)
-
-
#define HTONS(n) (((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8))
#define NTOHS(n) (((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8))
PDEVICE_OBJECT DeviceObject,
PVOID Context);
+#endif /* _USBSTOR_H_ */
+#ifndef _KMIXER_PCH_
+#define _KMIXER_PCH_
+
#include <portcls.h>
#include <float_cast.h>
#define KeSaveFloatingPointState(x) ((void)(x), STATUS_SUCCESS)
#define KeRestoreFloatingPointState(x) ((void)0)
#endif
+
+#endif /* _KMIXER_PCH_ */
/* done */
return STATUS_SUCCESS;
}
-
-
-
else
return SetIrpIoStatus(Irp, STATUS_NOT_SUPPORTED, sizeof(WDMAUD_DEVICE_INFO));
}
-
+#ifndef _WDMAUD_PCH_
+#define _WDMAUD_PCH_
+
#include <portcls.h>
#include <mmsystem.h>
FreeItem(
IN PVOID Item);
+#endif /* _WDMAUD_PCH_ */
+#ifndef _SYSAUDIO_PCH_
+#define _SYSAUDIO_PCH_
+
#include <portcls.h>
typedef struct
FreeItem(
IN PVOID Item);
+#endif /* _SYSAUDIO_PCH_ */