Author: akhaldi
Date: Thu Jul 28 16:13:00 2011
New Revision: 52980
URL:
http://svn.reactos.org/svn/reactos?rev=52980&view=rev
Log:
[DRIVERS]
* Introduce PCH to the remaining drivers when possible, using their main headers.
Modified:
trunk/reactos/drivers/video/displays/vga/CMakeLists.txt
trunk/reactos/drivers/video/displays/vga/vgaddi.h
trunk/reactos/drivers/video/displays/vga/vgaddi.rbuild
trunk/reactos/drivers/video/font/bmfd/CMakeLists.txt
trunk/reactos/drivers/video/font/bmfd/bmfd.rbuild
trunk/reactos/drivers/video/font/ftfd/CMakeLists.txt
trunk/reactos/drivers/video/font/ftfd/ftfd.h
trunk/reactos/drivers/video/font/ftfd/ftfd.rbuild
trunk/reactos/drivers/video/font/ftfd/rosglue.c
trunk/reactos/drivers/video/font/ftfd/sprintf.c
trunk/reactos/drivers/video/miniport/vbe/CMakeLists.txt
trunk/reactos/drivers/video/miniport/vbe/vbemp.h
trunk/reactos/drivers/video/miniport/vbe/vbemp.rbuild
trunk/reactos/drivers/video/videoprt/agp.c
trunk/reactos/drivers/video/videoprt/stubs.c
trunk/reactos/drivers/video/videoprt/videoprt.c
trunk/reactos/drivers/video/videoprt/videoprt.h
trunk/reactos/drivers/wdm/audio/backpln/portcls/CMakeLists.txt
trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild
trunk/reactos/drivers/wdm/audio/filters/kmixer/CMakeLists.txt
trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.h
trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.rbuild
trunk/reactos/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt
trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.h
trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.rbuild
trunk/reactos/drivers/wdm/audio/sysaudio/CMakeLists.txt
trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.h
trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.rbuild
Modified: trunk/reactos/drivers/video/displays/vga/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/CMakeLists.txt [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -18,7 +18,7 @@
set_entrypoint(vgaddi DrvEnableDriver@12)
set_subsystem(vgaddi native)
set_image_base(vgaddi 0x00010000)
-
+add_pch(vgaddi vgaddi.h)
add_importlibs(vgaddi win32k)
target_link_libraries(vgaddi libcntpr)
add_dependencies(vgaddi psdk bugcodes)
Modified: trunk/reactos/drivers/video/displays/vga/vgaddi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/vgaddi.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/vgaddi.h [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -1,5 +1,3 @@
-#pragma once
-
#define _WINBASE_
#define _WINDOWS_H
#include <stdarg.h>
Modified: trunk/reactos/drivers/video/displays/vga/vgaddi.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/vgaddi.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/vgaddi.rbuild [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -21,4 +21,5 @@
<file>vgavideo.c</file>
</directory>
<file>vgaddi.rc</file>
+ <pch>vgaddi.h</pch>
</module>
Modified: trunk/reactos/drivers/video/font/bmfd/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/bmfd/CM…
==============================================================================
--- trunk/reactos/drivers/video/font/bmfd/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/bmfd/CMakeLists.txt [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -4,11 +4,10 @@
font.c
glyph.c)
+add_pch(bmfd bmfd.h)
set_entrypoint(bmfd BmfdEnableDriver@12)
set_subsystem(bmfd native)
set_image_base(bmfd 0x00010000)
-
target_link_libraries(bmfd libcntpr)
-
add_importlibs(bmfd win32k)
add_dependencies(bmfd psdk bugcodes)
Modified: trunk/reactos/drivers/video/font/bmfd/bmfd.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/bmfd/bm…
==============================================================================
--- trunk/reactos/drivers/video/font/bmfd/bmfd.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/bmfd/bmfd.rbuild [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -6,4 +6,5 @@
<file>enable.c</file>
<file>font.c</file>
<file>glyph.c</file>
+ <pch>bmfd.h</pch>
</module>
Modified: trunk/reactos/drivers/video/font/ftfd/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/ftfd/CM…
==============================================================================
--- trunk/reactos/drivers/video/font/ftfd/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/ftfd/CMakeLists.txt [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -19,6 +19,7 @@
freetype
libcntpr)
+add_pch(ftfd ftfd.h)
add_importlibs(ftfd win32k)
add_dependencies(ftfd psdk)
add_cd_file(TARGET ftfd DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/drivers/video/font/ftfd/ftfd.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/ftfd/ft…
==============================================================================
--- trunk/reactos/drivers/video/font/ftfd/ftfd.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/ftfd/ftfd.h [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -50,7 +50,7 @@
/** Function prototypes *******************************************************/
ULONG
-DbgPrint(IN PCHAR Format, IN ...);
+DbgPrint(IN PCCH Format, IN ...);
DHPDEV
APIENTRY
Modified: trunk/reactos/drivers/video/font/ftfd/ftfd.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/ftfd/ft…
==============================================================================
--- trunk/reactos/drivers/video/font/ftfd/ftfd.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/ftfd/ftfd.rbuild [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -10,4 +10,5 @@
<file>glyph.c</file>
<file>rosglue.c</file>
<file>sprintf.c</file>
+ <pch>ftfd.h</pch>
</module>
Modified: trunk/reactos/drivers/video/font/ftfd/rosglue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/ftfd/ro…
==============================================================================
--- trunk/reactos/drivers/video/font/ftfd/rosglue.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/ftfd/rosglue.c [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -8,11 +8,7 @@
* NOTES:
*/
-#include <stdarg.h>
-#include <stdio.h>
-#include <windef.h>
-#include <wingdi.h>
-#include <winddi.h>
+#include "ftfd.h"
#define NDEBUG
#include <debug.h>
Modified: trunk/reactos/drivers/video/font/ftfd/sprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/ftfd/sp…
==============================================================================
--- trunk/reactos/drivers/video/font/ftfd/sprintf.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/ftfd/sprintf.c [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -17,11 +17,7 @@
* Wirzenius wrote this portably, Torvalds fucked it up :-)
*/
-#define WIN32_NO_STATUS
-#include <windows.h>
#include <ndk/ntndk.h>
-#include <stdlib.h>
-#include <stdio.h>
#define ZEROPAD 1 /* pad with zero */
#define SIGN 2 /* unsigned/signed long */
Modified: trunk/reactos/drivers/video/miniport/vbe/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/miniport/vbe…
==============================================================================
--- trunk/reactos/drivers/video/miniport/vbe/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/miniport/vbe/CMakeLists.txt [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -6,7 +6,6 @@
set_module_type(vbemp kernelmodedriver)
add_importlibs(vbemp videoprt)
-
+add_pch(vbemp vbemp.h)
target_link_libraries(vbemp libcntpr)
-
add_cd_file(TARGET vbemp DESTINATION reactos/system32/drivers FOR all)
Modified: trunk/reactos/drivers/video/miniport/vbe/vbemp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/miniport/vbe…
==============================================================================
--- trunk/reactos/drivers/video/miniport/vbe/vbemp.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/miniport/vbe/vbemp.h [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -18,8 +18,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#pragma once
-
/* INCLUDES *******************************************************************/
#include "ntdef.h"
Modified: trunk/reactos/drivers/video/miniport/vbe/vbemp.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/miniport/vbe…
==============================================================================
--- trunk/reactos/drivers/video/miniport/vbe/vbemp.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/miniport/vbe/vbemp.rbuild [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -6,4 +6,5 @@
<file>edid.c</file>
<file>vbemp.c</file>
<file>vbemp.rc</file>
+ <pch>vbemp.h</pch>
</module>
Modified: trunk/reactos/drivers/video/videoprt/agp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/agp…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/agp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/agp.c [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -20,8 +20,6 @@
*/
#include "videoprt.h"
-#include <initguid.h>
-#include <wdmguid.h>
/* PRIVATE FUNCTIONS **********************************************************/
Modified: trunk/reactos/drivers/video/videoprt/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/stu…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/stubs.c [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -21,7 +21,6 @@
#include "videoprt.h"
-#include <wdmguid.h>
VP_STATUS
NTAPI
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/vid…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/videoprt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/videoprt.c [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -21,7 +21,6 @@
#include "videoprt.h"
-#include <wdmguid.h>
/* GLOBAL VARIABLES ***********************************************************/
Modified: trunk/reactos/drivers/video/videoprt/videoprt.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/vid…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/videoprt.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/videoprt.h [iso-8859-1] Thu Jul 28 16:13:00 2011
@@ -33,6 +33,9 @@
#include <ndk/ntndk.h>
#include <dderror.h>
#include <windef.h>
+
+#include <initguid.h>
+#include <wdmguid.h>
#include <debug.h>
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/CMakeLists.txt [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/CMakeLists.txt [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -63,11 +63,10 @@
set_target_properties(portcls PROPERTIES COMPILE_FLAGS "-fno-exceptions
-fno-rtti")
endif(MSVC)
+add_pch(portcls private.hpp)
set_entrypoint(portcls 0)
set_image_base(portcls 0x00010000)
set_subsystem(portcls native)
set_target_properties(portcls PROPERTIES SUFFIX ".sys")
-
add_importlibs(portcls ntoskrnl ks drmk hal)
-
add_cd_file(TARGET portcls DESTINATION reactos/system32/drivers FOR all)
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild [iso-8859-1]
(original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -62,4 +62,5 @@
<file>unregister.cpp</file>
<file>version.cpp</file>
<file>portcls.rc</file>
+ <pch>private.hpp</pch>
</module>
Modified: trunk/reactos/drivers/wdm/audio/filters/kmixer/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/filters/kmixer/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/filters/kmixer/CMakeLists.txt [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -12,6 +12,6 @@
libcntpr
libsamplerate)
+add_pch(kmixer kmixer.h)
add_importlibs(kmixer ntoskrnl ks hal)
-
-add_cd_file(TARGET kmixer DESTINATION reactos/system32/drivers FOR all)
+add_cd_file(TARGET kmixer DESTINATION reactos/system32/drivers FOR all)
Modified: trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.h [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -1,5 +1,3 @@
-#pragma once
-
#include <ntddk.h>
#include <portcls.h>
#include <ks.h>
Modified: trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/filters/kmixer/kmixer.rbuild [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -11,4 +11,5 @@
<file>kmixer.c</file>
<file>filter.c</file>
<file>pin.c</file>
+ <pch>kmixer.h</pch>
</module>
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/w…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -20,7 +20,6 @@
libcntpr
${PSEH_LIB})
+add_pch(wdmaud wdmaud.h)
add_importlibs(wdmaud ntoskrnl ks hal)
-
-
add_cd_file(TARGET wdmaud DESTINATION reactos/system32/drivers FOR all)
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/w…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.h [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -1,5 +1,3 @@
-#pragma once
-
#include <pseh/pseh2.h>
#include <ntddk.h>
#include <portcls.h>
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/w…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.rbuild [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -17,4 +17,5 @@
<file>mmixer.c</file>
<file>sup.c</file>
<file>wdmaud.rc</file>
+ <pch>wdmaud.h</pch>
</module>
Modified: trunk/reactos/drivers/wdm/audio/sysaudio/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/sysaudio/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/sysaudio/CMakeLists.txt [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -9,10 +9,8 @@
pin.c
sysaudio.rc)
+add_pch(sysaudio sysaudio.h)
set_module_type(sysaudio kernelmodedriver)
-
target_link_libraries(sysaudio libcntpr)
-
add_importlibs(sysaudio ntoskrnl ks hal)
-
-add_cd_file(TARGET sysaudio DESTINATION reactos/system32/drivers FOR all)
+add_cd_file(TARGET sysaudio DESTINATION reactos/system32/drivers FOR all)
Modified: trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.h [iso-8859-1] Thu Jul 28 16:13:00
2011
@@ -1,5 +1,3 @@
-#pragma once
-
#include <ntifs.h>
#include <ntddk.h>
#include <portcls.h>
Modified: trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/sysaudio/sysaudio.rbuild [iso-8859-1] Thu Jul 28
16:13:00 2011
@@ -13,4 +13,5 @@
<file>main.c</file>
<file>pin.c</file>
<file>sysaudio.rc</file>
+ <pch>sysaudio.h</pch>
</module>