-some minor changes to be able to build the driver with PREfast
authorChristoph von Wittich <christoph_vw@reactos.org>
Fri, 6 Jul 2007 18:14:23 +0000 (18:14 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Fri, 6 Jul 2007 18:14:23 +0000 (18:14 +0000)
-declare I8042InterruptService* routines as KSERVICE_ROUTINE

svn path=/trunk/; revision=27430

reactos/drivers/input/i8042prt/i8042prt.c
reactos/drivers/input/i8042prt/i8042prt.h
reactos/drivers/input/i8042prt/keyboard.c
reactos/drivers/input/i8042prt/mouse.c
reactos/drivers/input/i8042prt/ps2pp.c
reactos/drivers/input/i8042prt/registry.c

index 48fbda3..6bbd1b4 100644 (file)
 
 /* INCLUDES ****************************************************************/
 
+#include "i8042prt.h"
+
+#ifndef NDEBUG
 #define NDEBUG
+#endif
 #include <debug.h>
 
-#include "i8042prt.h"
-
 /* GLOBALS *******************************************************************/
 
 /*
index 9abf7a9..cdea07e 100644 (file)
@@ -320,6 +320,7 @@ NTSTATUS STDCALL I8042SynchWritePortKbd(PVOID Context,
                                         UCHAR Value,
                                         BOOLEAN WaitForAck);
 
+KSERVICE_ROUTINE I8042InterruptServiceKbd;
 BOOLEAN STDCALL I8042InterruptServiceKbd(struct _KINTERRUPT *Interrupt,
                                          VOID * Context);
 
@@ -354,6 +355,7 @@ VOID STDCALL I8042DpcRoutineMouseTimeout(PKDPC Dpc,
                                          PVOID SystemArgument1,
                                          PVOID SystemArgument2);
 
+KSERVICE_ROUTINE I8042InterruptServiceMouse;
 BOOLEAN STDCALL I8042InterruptServiceMouse(struct _KINTERRUPT *Interrupt,
                                            VOID *Context);
 
index f422a77..452471b 100644 (file)
 /* INCLUDES ****************************************************************/
 
 #include "i8042prt.h"
+
+#ifdef __REACTOS__
 #include "kdfuncs.h"
+#endif
 
+#ifndef NDEBUG
 #define NDEBUG
+#endif
 #include <debug.h>
 
 /* GLOBALS *******************************************************************/
index d213253..7fdf21b 100644 (file)
@@ -13,7 +13,9 @@
 
 #include "i8042prt.h"
 
+#ifndef NDEBUG
 #define NDEBUG
+#endif
 #include <debug.h>
 
 /*
index 3b183ec..44db6ff 100644 (file)
@@ -9,14 +9,13 @@
 
 /* INCLUDES ****************************************************************/
 
+#include "i8042prt.h"
+
 #ifndef NDEBUG
 #define NDEBUG
 #endif
 #include <debug.h>
 
-#include "i8042prt.h"
-
-
 VOID I8042MouseHandlePs2pp(PDEVICE_EXTENSION DevExt, UCHAR Input)
 {
        UCHAR PktType;
index 8c25872..2e532dd 100644 (file)
 
 /* INCLUDES ****************************************************************/
 
+#include "i8042prt.h"
+
 #ifndef NDEBUG
 #define NDEBUG
 #endif
 #include <debug.h>
 
-#include "i8042prt.h"
-
 /* FUNCTIONS *****************************************************************/
 
 /*