mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 18:04:41 +00:00
[SERIAL]
* 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:
parent
63f81cf7c1
commit
bc5311786f
|
@ -12,6 +12,7 @@ add_library(serial SHARED
|
|||
power.c
|
||||
rw.c
|
||||
serial.c
|
||||
guid.c
|
||||
serial.rc)
|
||||
|
||||
add_pch(serial serial.h)
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS
|
||||
InitializeCircularBuffer(
|
||||
IN PCIRCULAR_BUFFER pBuffer,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS NTAPI
|
||||
SerialCleanup(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS NTAPI
|
||||
SerialClose(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS NTAPI
|
||||
SerialCreate(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
#define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003)
|
||||
|
||||
static VOID
|
||||
|
|
7
reactos/drivers/serial/serial/guid.c
Normal file
7
reactos/drivers/serial/serial/guid.c
Normal 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 */
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS NTAPI
|
||||
SerialQueryInformation(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
UART_TYPE
|
||||
SerialDetectUartType(
|
||||
IN PUCHAR BaseAddress)
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
static IO_COMPLETION_ROUTINE ForwardIrpAndWaitCompletion;
|
||||
|
||||
static NTSTATUS NTAPI
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS NTAPI
|
||||
SerialPower(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "serial.h"
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
static IO_WORKITEM_ROUTINE SerialReadWorkItem;
|
||||
|
||||
static PVOID
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue