Author: sir_richard Date: Sun Jun 27 20:47:52 2010 New Revision: 47872
URL: http://svn.reactos.org/svn/reactos?rev=47872&view=rev Log: [NTOS]: Add "vf" NTOS component, required NDK headers, and enable exports required for PCI driver to load.
Added: trunk/reactos/include/ndk/vffuncs.h (with props) trunk/reactos/include/ndk/vftypes.h (with props) trunk/reactos/ntoskrnl/vf/ trunk/reactos/ntoskrnl/vf/driver.c (with props) Modified: trunk/reactos/include/ndk/ntndk.h trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild trunk/reactos/ntoskrnl/ntoskrnl.pspec
Modified: trunk/reactos/include/ndk/ntndk.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/ntndk.h?rev=478... ============================================================================== --- trunk/reactos/include/ndk/ntndk.h [iso-8859-1] (original) +++ trunk/reactos/include/ndk/ntndk.h [iso-8859-1] Sun Jun 27 20:47:52 2010 @@ -59,6 +59,7 @@ #include <pstypes.h> // Process Manager Types #include <rtltypes.h> // Runtime Library Types #include <setypes.h> // Security Subsystem Types +#include <vftypes.h> // Verifier Types
// // Function Headers @@ -80,6 +81,7 @@ #include <rtlfuncs.h> // Runtime Library Functions #include <sefuncs.h> // Security Subsystem Functions #include <umfuncs.h> // User-Mode NT Library Functions +#include <vffuncs.h> // Verifier Functions
// // Assembly Support
Added: trunk/reactos/include/ndk/vffuncs.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/vffuncs.h?rev=4... ============================================================================== --- trunk/reactos/include/ndk/vffuncs.h (added) +++ trunk/reactos/include/ndk/vffuncs.h [iso-8859-1] Sun Jun 27 20:47:52 2010 @@ -1,0 +1,54 @@ +/*++ NDK Version: 0098 + +Copyright (c) Alex Ionescu. All rights reserved. + +Header Name: + + vffuncs.h + +Abstract: + + Function definitions for the Power Subsystem. + +Author: + + Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006 + +--*/ + +#ifndef _VFFUNCS_H +#define _VFFUNCS_H + +// +// Dependencies +// +#include <umtypes.h> +#include <vftypes.h> + +#ifndef NTOS_MODE_USER + +// +// Verifier Device Driver Interface +// +BOOLEAN +NTAPI +VfIsVerificationEnabled( + IN VF_OBJECT_TYPE VfObjectType, + IN PVOID Object OPTIONAL +); + +VOID +NTAPI +VfFailDeviceNode( + IN PDEVICE_OBJECT PhysicalDeviceObject, + IN ULONG BugCheckMajorCode, + IN ULONG BugCheckMinorCode, + IN VF_FAILURE_CLASS FailureClass, + IN OUT PULONG AssertionControl, + IN PSTR DebuggerMessageText, + IN PSTR ParameterFormatString, + ... +); +#endif + +#endif
Propchange: trunk/reactos/include/ndk/vffuncs.h ------------------------------------------------------------------------------ svn:eol-style = native
Added: trunk/reactos/include/ndk/vftypes.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/vftypes.h?rev=4... ============================================================================== --- trunk/reactos/include/ndk/vftypes.h (added) +++ trunk/reactos/include/ndk/vftypes.h [iso-8859-1] Sun Jun 27 20:47:52 2010 @@ -1,0 +1,47 @@ +/*++ NDK Version: 0098 + +Copyright (c) Alex Ionescu. All rights reserved. + +Header Name: + + vftypes.h + +Abstract: + + Type definitions for the Power Subystem + +Author: + + Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006 + +--*/ + +#ifndef _VFTYPES_H +#define _VFTYPES_H + +// +// Dependencies +// +#include <umtypes.h> + +// +// Failure Classes +// +typedef enum _VF_FAILURE_CLASS +{ + VFFAILURE_FAIL_IN_FIELD, + VFFAILURE_FAIL_LOGO, + VFFAILURE_FAIL_UNDER_DEBUGGER +} VF_FAILURE_CLASS, *PVF_FAILURE_CLASS; + +// +// Object Types +// +typedef enum _VF_OBJECT_TYPE +{ + VFOBJTYPE_DRIVER, + VFOBJTYPE_DEVICE, + VFOBJTYPE_SYSTEM_BIOS +} VF_OBJECT_TYPE, PVF_OBJECT_TYPE; + +#endif // _VFTYPES_H
Propchange: trunk/reactos/include/ndk/vftypes.h ------------------------------------------------------------------------------ svn:eol-style = native
Modified: trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl-generic.r... ============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] Sun Jun 27 20:47:52 2010 @@ -508,6 +508,9 @@ <directory name="wmi"> <file>wmi.c</file> </directory> + <directory name="vf"> + <file>driver.c</file> + </directory> <file>ntoskrnl.rc</file> <linkerscript>ntoskrnl_$(ARCH).lnk</linkerscript> </group>
Modified: trunk/reactos/ntoskrnl/ntoskrnl.pspec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.pspec?rev... ============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl.pspec [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ntoskrnl.pspec [iso-8859-1] Sun Jun 27 20:47:52 2010 @@ -1397,10 +1397,10 @@ @ stdcall SeUnregisterLogonSessionTerminatedRoutine(ptr) @ stdcall SeValidSecurityDescriptor(long ptr) @ stdcall VerSetConditionMask(long long long long) -;VfFailDeviceNode +@ stdcall VfFailDeviceNode(ptr long long long ptr ptr ptr) ;VfFailDriver ;VfFailSystemBIOS -;VfIsVerificationEnabled +@ stdcall VfIsVerificationEnabled(long ptr) #ifndef __x86_64__ @ stdcall WRITE_REGISTER_BUFFER_UCHAR(ptr ptr long) @ stdcall WRITE_REGISTER_BUFFER_ULONG(ptr ptr long)
Added: trunk/reactos/ntoskrnl/vf/driver.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/vf/driver.c?rev=47... ============================================================================== --- trunk/reactos/ntoskrnl/vf/driver.c (added) +++ trunk/reactos/ntoskrnl/vf/driver.c [iso-8859-1] Sun Jun 27 20:47:52 2010 @@ -1,0 +1,46 @@ +/* + * PROJECT: ReactOS Kernel + * LICENSE: BSD - See COPYING.ARM in the top level directory + * FILE: ntoskrnl/vf/driver.c + * PURPOSE: Driver Verifier Device Driver Interface + * PROGRAMMERS: ReactOS Portable Systems Group + */ + +/* INCLUDES *****************************************************************/ + +#include <ntoskrnl.h> +#define NDEBUG +#include <debug.h> + +/* FUNCTIONS *****************************************************************/ + +/* + * @unimplemented + */ +BOOLEAN +NTAPI +VfIsVerificationEnabled(IN VF_OBJECT_TYPE VfObjectType, + IN PVOID Object OPTIONAL) +{ + UNIMPLEMENTED; + return FALSE; +} + +/* + * @unimplemented + */ +VOID +NTAPI +VfFailDeviceNode(IN PDEVICE_OBJECT PhysicalDeviceObject, + IN ULONG BugCheckMajorCode, + IN ULONG BugCheckMinorCode, + IN VF_FAILURE_CLASS FailureClass, + IN OUT PULONG AssertionControl, + IN PSTR DebuggerMessageText, + IN PSTR ParameterFormatString, + ...) +{ + UNIMPLEMENTED; +} + +/* EOF */
Propchange: trunk/reactos/ntoskrnl/vf/driver.c ------------------------------------------------------------------------------ svn:eol-style = native