Added required defines and typedefs for ntoskrnl/io modules.
[reactos.git] / reactos / include / ddk / iotypes.h
index dae1805..0449fa3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: iotypes.h,v 1.37 2002/05/05 14:57:38 chorns Exp $
+/* $Id: iotypes.h,v 1.42 2002/10/03 19:26:47 robd Exp $
  *
  */
 
@@ -238,7 +238,7 @@ typedef struct
    USHORT Revision;
    ULONG Count;
    CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1];
-} __attribute__((packed))CM_PARTIAL_RESOURCE_LIST;
+} __attribute__((packed))CM_PARTIAL_RESOURCE_LIST, *PCM_PARTIAL_RESOURCE_LIST;
 
 typedef struct
 {
@@ -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
        {
@@ -724,18 +730,21 @@ typedef NTSTATUS STDCALL
                   IN struct _IRP *Irp);
 
 /*
- * Dispatch routine type declaration
+ * StartIo routine type declaration
  */
 typedef VOID STDCALL
 (*PDRIVER_STARTIO)(IN PDEVICE_OBJECT DeviceObject,
                   IN PIRP Irp);
 
 /*
- * Dispatch routine type declaration
+ * Unload routine type declaration
  */
-typedef NTSTATUS STDCALL
-(*PDRIVER_UNLOAD)(struct _DRIVER_OBJECT*);
+typedef VOID STDCALL
+(*PDRIVER_UNLOAD)(IN struct _DRIVER_OBJECT *DriverObject);
 
+/*
+ * AddDevice routine type declaration
+ */
 typedef NTSTATUS STDCALL
 (*PDRIVER_ADD_DEVICE)(IN struct _DRIVER_OBJECT *DriverObject,
                      IN struct _DEVICE_OBJECT *PhysicalDeviceObject);