Author: akhaldi
Date: Wed Jul 27 19:38:24 2011
New Revision: 52940
URL:
http://svn.reactos.org/svn/reactos?rev=52940&view=rev
Log:
[FLOPPY]
* Add a PCH.
Added:
trunk/reactos/drivers/storage/floppy/precomp.h (with props)
Modified:
trunk/reactos/drivers/storage/floppy/CMakeLists.txt
trunk/reactos/drivers/storage/floppy/csqrtns.c
trunk/reactos/drivers/storage/floppy/csqrtns.h
trunk/reactos/drivers/storage/floppy/floppy.c
trunk/reactos/drivers/storage/floppy/floppy.rbuild
trunk/reactos/drivers/storage/floppy/hardware.c
trunk/reactos/drivers/storage/floppy/ioctl.c
trunk/reactos/drivers/storage/floppy/readwrite.c
Modified: trunk/reactos/drivers/storage/floppy/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/CMa…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/CMakeLists.txt [iso-8859-1] Wed Jul 27 19:38:24
2011
@@ -8,8 +8,7 @@
floppy.rc)
target_link_libraries(floppy csq)
-
+add_pch(floppy precomp.h)
set_module_type(floppy kernelmodedriver)
add_importlibs(floppy hal ntoskrnl)
-
add_cd_file(TARGET floppy DESTINATION reactos/system32/drivers NO_CAB FOR all)
Modified: trunk/reactos/drivers/storage/floppy/csqrtns.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/csq…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/csqrtns.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/csqrtns.c [iso-8859-1] Wed Jul 27 19:38:24 2011
@@ -38,11 +38,7 @@
* that my lock choice is a spin lock.
*/
-#include <ntddk.h>
-#include <debug.h>
-
-#include "floppy.h"
-#include "csqrtns.h"
+#include "precomp.h"
/* Global CSQ struct that the CSQ functions initialize and use */
IO_CSQ Csq;
Modified: trunk/reactos/drivers/storage/floppy/csqrtns.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/csq…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/csqrtns.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/csqrtns.h [iso-8859-1] Wed Jul 27 19:38:24 2011
@@ -24,11 +24,7 @@
* 15-Feb-2004 vizzini - Created
*/
-#ifdef _MSC_VER
#include <csq.h>
-#else
-#include <csq.h>
-#endif
/*
* CSQ Stuff
Modified: trunk/reactos/drivers/storage/floppy/floppy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/flo…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/floppy.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/floppy.c [iso-8859-1] Wed Jul 27 19:38:24 2011
@@ -40,14 +40,7 @@
* TODO: Media detection based on sector 1
*/
-#include <ntddk.h>
-#include <debug.h>
-
-#include "floppy.h"
-#include "hardware.h"
-#include "csqrtns.h"
-#include "ioctl.h"
-#include "readwrite.h"
+#include "precomp.h"
/*
* Global controller info structures. Each controller gets one. Since the system
Modified: trunk/reactos/drivers/storage/floppy/floppy.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/flo…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/floppy.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/floppy.rbuild [iso-8859-1] Wed Jul 27 19:38:24
2011
@@ -12,4 +12,5 @@
<file>ioctl.c</file>
<file>readwrite.c</file>
<file>floppy.rc</file>
+ <pch>precomp.h</pch>
</module>
Modified: trunk/reactos/drivers/storage/floppy/hardware.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/har…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/hardware.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/hardware.c [iso-8859-1] Wed Jul 27 19:38:24 2011
@@ -47,11 +47,7 @@
* I prefer bit fields, but they break endianness.
*/
-#include <ntddk.h>
-#include <debug.h>
-
-#include "floppy.h"
-#include "hardware.h"
+#include "precomp.h"
/*
* Hardware Support Routines
Modified: trunk/reactos/drivers/storage/floppy/ioctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/ioc…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/ioctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/ioctl.c [iso-8859-1] Wed Jul 27 19:38:24 2011
@@ -31,13 +31,7 @@
* TODO: Implement format
*/
-#include <ntddk.h>
-#include <debug.h>
-
-#include "floppy.h"
-#include "hardware.h"
-#include "csqrtns.h"
-#include "ioctl.h"
+#include "precomp.h"
NTSTATUS NTAPI
Added: trunk/reactos/drivers/storage/floppy/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/pre…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/precomp.h (added)
+++ trunk/reactos/drivers/storage/floppy/precomp.h [iso-8859-1] Wed Jul 27 19:38:24 2011
@@ -1,0 +1,9 @@
+#include <ntddk.h>
+#include <debug.h>
+
+#include "floppy.h"
+#include "csqrtns.h"
+#include "hardware.h"
+#include "csqrtns.h"
+#include "ioctl.h"
+#include "readwrite.h"
Propchange: trunk/reactos/drivers/storage/floppy/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/drivers/storage/floppy/readwrite.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/rea…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/readwrite.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/readwrite.c [iso-8859-1] Wed Jul 27 19:38:24
2011
@@ -52,13 +52,7 @@
* TODO: Figure out specify timings
*/
-#include <ntddk.h>
-#include <debug.h>
-
-#include "floppy.h"
-#include "csqrtns.h"
-#include "hardware.h"
-#include "readwrite.h"
+#include "precomp.h"
static IO_ALLOCATION_ACTION NTAPI