Send IOCTL_* to the port device objects. Keyboard LEDs should now work
[reactos.git] / reactos / drivers / input / mouclass / mouclass.h
index dd76369..c9e35eb 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdio.h>
 
 #define MAX_PATH 260
+
 typedef enum
 {
        dsStopped,
@@ -34,6 +35,8 @@ typedef struct _PORT_DEVICE_EXTENSION
 {
        COMMON_DEVICE_EXTENSION Common;
 
+       LIST_ENTRY ListEntry;
+       PDEVICE_OBJECT DeviceObject;
        PORT_DEVICE_STATE PnpState;
        PDEVICE_OBJECT LowerDevice;
        UNICODE_STRING InterfaceName;
@@ -45,6 +48,8 @@ typedef struct _CLASS_DEVICE_EXTENSION
 
        PCLASS_DRIVER_EXTENSION DriverExtension;
 
+       LIST_ENTRY ListHead;
+       KSPIN_LOCK ListSpinLock;
        KSPIN_LOCK SpinLock;
        BOOLEAN ReadIsPending;
        ULONG InputCount;
@@ -53,6 +58,11 @@ typedef struct _CLASS_DEVICE_EXTENSION
 
 /* misc.c */
 
+NTSTATUS
+ForwardIrpAndWait(
+       IN PDEVICE_OBJECT DeviceObject,
+       IN PIRP Irp);
+
 NTSTATUS NTAPI
 ForwardIrpAndForget(
        IN PDEVICE_OBJECT DeviceObject,