[SCSIPORT]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 3 Feb 2014 10:49:41 +0000 (10:49 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 3 Feb 2014 10:49:41 +0000 (10:49 +0000)
* Remove one time inclusions from the main header and put them back where they belong.
* Improve header inclusions.
CORE-7716

svn path=/trunk/; revision=61950

reactos/drivers/storage/scsiport/precomp.h
reactos/drivers/storage/scsiport/scsiport.c
reactos/drivers/storage/scsiport/scsiport_int.h
reactos/drivers/storage/scsiport/stubs.c

index 8cfb69e..2289e17 100644 (file)
@@ -1,10 +1 @@
-#include <ntddk.h>
-#include <srb.h>
-#include <scsi.h>
-#include <ntddscsi.h>
-#include <ntddstor.h>
-#include <ntdddisk.h>
-#include <stdio.h>
-#include <stdarg.h>
-
-#include "scsiport_int.h"
+#include <wdm.h>
index d3e1b32..d67d136 100644 (file)
 
 #include "precomp.h"
 
-#ifndef NDEBUG
+#include <ntddk.h>
+#include <stdio.h>
+#include <scsi.h>
+#include <ntddscsi.h>
+#include <ntdddisk.h>
+
 #define NDEBUG
-#endif
 #include <debug.h>
 
+#include "scsiport_int.h"
+
 ULONG InternalDebugLevel = 0x00;
 
 #undef ScsiPortMoveMemory
 
-/* TYPES *********************************************************************/
-
 /* GLOBALS *******************************************************************/
 
 static BOOLEAN
@@ -6407,5 +6411,4 @@ ScsiPortConvertPhysicalAddressToUlong(IN SCSI_PHYSICAL_ADDRESS Address)
   return(Address.u.LowPart);
 }
 
-
 /* EOF */
index 97ef8d4..f865dd8 100644 (file)
@@ -5,6 +5,8 @@
  *     An enumeration containing the states in the timer DFA
  */
 
+#pragma once
+
 #define VERSION "0.0.3"
 
 #ifndef PAGE_ROUND_UP
index ac84dae..e23fb36 100644 (file)
@@ -6,10 +6,10 @@
  * PROGRAMMER:      Timo Kreuzer (timo.kreuzer@reactos.org)
  */
 
-/* INCLUDES *****************************************************************/
-
 #include "precomp.h"
 
+#include <srb.h>
+
 #define NDEBUG
 #include <debug.h>
 
@@ -270,4 +270,3 @@ ScsiPortWriteRegisterUlong(
 {
     WRITE_REGISTER_ULONG(Register, Value);
 }
-