mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[NTOS]: Add "vf" NTOS component, required NDK headers, and enable exports required for PCI driver to load.
svn path=/trunk/; revision=47872
This commit is contained in:
parent
26f62038b8
commit
2ab1f8b0d4
6 changed files with 154 additions and 2 deletions
|
@ -59,6 +59,7 @@ Author:
|
|||
#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 @@ Author:
|
|||
#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
|
||||
|
|
54
reactos/include/ndk/vffuncs.h
Normal file
54
reactos/include/ndk/vffuncs.h
Normal file
|
@ -0,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
|
47
reactos/include/ndk/vftypes.h
Normal file
47
reactos/include/ndk/vftypes.h
Normal file
|
@ -0,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
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
46
reactos/ntoskrnl/vf/driver.c
Normal file
46
reactos/ntoskrnl/vf/driver.c
Normal file
|
@ -0,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 */
|
Loading…
Reference in a new issue