From 48d7bdc4d9eaaa4e1246c3e2e656451514f1dbe5 Mon Sep 17 00:00:00 2001 From: Robert Dickenson Date: Thu, 3 Oct 2002 19:26:47 +0000 Subject: [PATCH] Added required defines and typedefs for ntoskrnl/io modules. svn path=/trunk/; revision=3613 --- reactos/include/ddk/iofuncs.h | 27 ++++++++++++++++++++++++++- reactos/include/ddk/iotypes.h | 8 +++++++- reactos/include/ddk/status.h | 2 ++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/reactos/include/ddk/iofuncs.h b/reactos/include/ddk/iofuncs.h index 9790d2fcb91..d3dd51e5731 100644 --- a/reactos/include/ddk/iofuncs.h +++ b/reactos/include/ddk/iofuncs.h @@ -1,6 +1,6 @@ #ifndef _INCLUDE_DDK_IOFUNCS_H #define _INCLUDE_DDK_IOFUNCS_H -/* $Id: iofuncs.h,v 1.33 2002/09/08 10:47:44 chorns Exp $ */ +/* $Id: iofuncs.h,v 1.34 2002/10/03 19:26:46 robd Exp $ */ /* --- EXPORTED BY NTOSKRNL --- */ @@ -824,6 +824,31 @@ STDCALL IoQueueThreadIrp ( IN PIRP Irp ); + +typedef struct _IO_WORKITEM *PIO_WORKITEM; +typedef VOID (*PIO_WORKITEM_ROUTINE)(IN PDEVICE_OBJECT DeviceObject, IN PVOID Context); + +VOID +STDCALL +IoQueueWorkItem( + IN PIO_WORKITEM IoWorkItem, + IN PIO_WORKITEM_ROUTINE WorkerRoutine, + IN WORK_QUEUE_TYPE QueueType, + IN PVOID Context + ); + +VOID +STDCALL +IoFreeWorkItem( + PIO_WORKITEM IoWorkItem + ); + +PIO_WORKITEM +STDCALL +IoAllocateWorkItem( + PDEVICE_OBJECT DeviceObject + ); + VOID STDCALL IoRaiseHardError ( diff --git a/reactos/include/ddk/iotypes.h b/reactos/include/ddk/iotypes.h index 6ce2f2a052b..0449fa3c18a 100644 --- a/reactos/include/ddk/iotypes.h +++ b/reactos/include/ddk/iotypes.h @@ -1,4 +1,4 @@ -/* $Id: iotypes.h,v 1.41 2002/09/08 10:47:44 chorns Exp $ +/* $Id: iotypes.h,v 1.42 2002/10/03 19:26:47 robd Exp $ * */ @@ -371,6 +371,12 @@ typedef struct __attribute__((packed)) _IO_STACK_LOCATION PDEVICE_CAPABILITIES Capabilities; } DeviceCapabilities; + // Parameters for IRP_MN_FILTER_RESOURCE_REQUIREMENTS + struct + { + PIO_RESOURCE_REQUIREMENTS_LIST IoResourceRequirementList; + } FilterResourceRequirements; + // Parameters for IRP_MN_QUERY_ID struct { diff --git a/reactos/include/ddk/status.h b/reactos/include/ddk/status.h index 580dd7cf3b8..81edfb95b85 100644 --- a/reactos/include/ddk/status.h +++ b/reactos/include/ddk/status.h @@ -183,6 +183,8 @@ #define STATUS_OBJECT_NAME_INVALID (0xc0000033) #define STATUS_OBJECT_NAME_NOT_FOUND (0xc0000034) #define STATUS_OBJECT_NAME_COLLISION (0xc0000035) +#define STATUS_OBJECT_NAME_EXISTS (0x40000000) + #define STATUS_PORT_DISCONNECTED (0xc0000037) #define STATUS_DEVICE_ALREADY_ATTACHED (0xc0000038)