* 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
This commit is contained in:
Amine Khaldi 2014-02-03 00:15:44 +00:00
parent 63f81cf7c1
commit bc5311786f
14 changed files with 32 additions and 4 deletions

View file

@ -12,6 +12,7 @@ add_library(serial SHARED
power.c power.c
rw.c rw.c
serial.c serial.c
guid.c
serial.rc) serial.rc)
add_pch(serial serial.h) add_pch(serial serial.h)

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
NTSTATUS NTSTATUS
InitializeCircularBuffer( InitializeCircularBuffer(
IN PCIRCULAR_BUFFER pBuffer, IN PCIRCULAR_BUFFER pBuffer,

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
NTSTATUS NTAPI NTSTATUS NTAPI
SerialCleanup( SerialCleanup(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
NTSTATUS NTAPI NTSTATUS NTAPI
SerialClose( SerialClose(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
NTSTATUS NTAPI NTSTATUS NTAPI
SerialCreate( SerialCreate(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
#define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003) #define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003)
static VOID static VOID

View file

@ -0,0 +1,7 @@
/* 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 */

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
NTSTATUS NTAPI NTSTATUS NTAPI
SerialQueryInformation( SerialQueryInformation(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,

View file

@ -10,6 +10,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
UART_TYPE UART_TYPE
SerialDetectUartType( SerialDetectUartType(
IN PUCHAR BaseAddress) IN PUCHAR BaseAddress)

View file

@ -10,6 +10,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
static IO_COMPLETION_ROUTINE ForwardIrpAndWaitCompletion; static IO_COMPLETION_ROUTINE ForwardIrpAndWaitCompletion;
static NTSTATUS NTAPI static NTSTATUS NTAPI

View file

@ -8,9 +8,12 @@
*/ */
/* FIXME: call IoAcquireRemoveLock/IoReleaseRemoveLock around each I/O operation */ /* FIXME: call IoAcquireRemoveLock/IoReleaseRemoveLock around each I/O operation */
#define INITGUID
#include "serial.h" #include "serial.h"
#include <stdio.h>
#include <ndk/haltypes.h>
#include <debug.h>
NTSTATUS NTAPI NTSTATUS NTAPI
SerialAddDeviceInternal( SerialAddDeviceInternal(
IN PDRIVER_OBJECT DriverObject, IN PDRIVER_OBJECT DriverObject,

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
NTSTATUS NTAPI NTSTATUS NTAPI
SerialPower( SerialPower(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,

View file

@ -9,6 +9,8 @@
#include "serial.h" #include "serial.h"
#include <debug.h>
static IO_WORKITEM_ROUTINE SerialReadWorkItem; static IO_WORKITEM_ROUTINE SerialReadWorkItem;
static PVOID static PVOID

View file

@ -8,10 +8,7 @@
*/ */
#include <ntddk.h> #include <ntddk.h>
#include <ndk/haltypes.h>
#include <ntddser.h> #include <ntddser.h>
#include <stdio.h>
#include <debug.h>
/* See winbase.h */ /* See winbase.h */
#define PST_RS232 1 #define PST_RS232 1