* 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
rw.c
serial.c
guid.c
serial.rc)
add_pch(serial serial.h)

View file

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

View file

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

View file

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

View file

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

View file

@ -9,6 +9,8 @@
#include "serial.h"
#include <debug.h>
#define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003)
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 <debug.h>
NTSTATUS NTAPI
SerialQueryInformation(
IN PDEVICE_OBJECT DeviceObject,

View file

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

View file

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

View file

@ -8,9 +8,12 @@
*/
/* 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,

View file

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

View file

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

View file

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