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
|
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)
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
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 "serial.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
NTSTATUS NTAPI
|
NTSTATUS NTAPI
|
||||||
SerialQueryInformation(
|
SerialQueryInformation(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue