* Do not include debug.h into the main header.
* Remove one time inclusions from the main header and put them back where they belong.
* Improve the GUIDs situation.
CORE-7716
svn path=/trunk/; revision=61941
14 files changed:
power.c
rw.c
serial.c
+ guid.c
serial.rc)
add_pch(serial serial.h)
#include "serial.h"
+#include <debug.h>
+
NTSTATUS
InitializeCircularBuffer(
IN PCIRCULAR_BUFFER pBuffer,
#include "serial.h"
+#include <debug.h>
+
NTSTATUS NTAPI
SerialCleanup(
IN PDEVICE_OBJECT DeviceObject,
#include "serial.h"
+#include <debug.h>
+
NTSTATUS NTAPI
SerialClose(
IN PDEVICE_OBJECT DeviceObject,
#include "serial.h"
+#include <debug.h>
+
NTSTATUS NTAPI
SerialCreate(
IN PDEVICE_OBJECT DeviceObject,
#include "serial.h"
+#include <debug.h>
+
#define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003)
static VOID
--- /dev/null
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <ntdef.h>
+#include <initguid.h>
+#include <ntddser.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
#include "serial.h"
+#include <debug.h>
+
NTSTATUS NTAPI
SerialQueryInformation(
IN PDEVICE_OBJECT DeviceObject,
#include "serial.h"
+#include <debug.h>
+
UART_TYPE
SerialDetectUartType(
IN PUCHAR BaseAddress)
#include "serial.h"
+#include <debug.h>
+
static IO_COMPLETION_ROUTINE ForwardIrpAndWaitCompletion;
static NTSTATUS NTAPI
*/
/* FIXME: call IoAcquireRemoveLock/IoReleaseRemoveLock around each I/O operation */
-#define INITGUID
#include "serial.h"
+#include <stdio.h>
+#include <ndk/haltypes.h>
+#include <debug.h>
+
NTSTATUS NTAPI
SerialAddDeviceInternal(
IN PDRIVER_OBJECT DriverObject,
#include "serial.h"
+#include <debug.h>
+
NTSTATUS NTAPI
SerialPower(
IN PDEVICE_OBJECT DeviceObject,
#include "serial.h"
+#include <debug.h>
+
static IO_WORKITEM_ROUTINE SerialReadWorkItem;
static PVOID
*/
#include <ntddk.h>
-#include <ndk/haltypes.h>
#include <ntddser.h>
-#include <stdio.h>
-#include <debug.h>
/* See winbase.h */
#define PST_RS232 1