ReactOS 0.4.15-dev-8061-g57b775e
oprghdlr.h File Reference
#include "wdm.h"
Include dependency graph for oprghdlr.h:

Go to the source code of this file.

Macros

#define EXPORT   __cdecl
 
#define ACPI_OPREGION_ACCESS_AS_RAW   0x1
 
#define ACPI_OPREGION_ACCESS_AS_COOKED   0x2
 
#define ACPI_OPREGION_REGION_SPACE_MEMORY   0x0
 
#define ACPI_OPREGION_REGION_SPACE_IO   0x1
 
#define ACPI_OPREGION_REGION_SPACE_PCI_CONFIG   0x2
 
#define ACPI_OPREGION_REGION_SPACE_EC   0x3
 
#define ACPI_OPREGION_REGION_SPACE_SMB   0x4
 
#define ACPI_OPREGION_READ   0x0
 
#define ACPI_OPREGION_WRITE   0x1
 
#define ACPI_OPREGION_ACCESS_AT_HIGH_LEVEL   0x1
 

Typedefs

typedef VOID(EXPORTPACPI_OP_REGION_CALLBACK) ()
 
typedef NTSTATUS(EXPORTPACPI_OP_REGION_HANDLER) (ULONG AccessType, PVOID OperationRegionObject, ULONG Address, ULONG Size, PULONG Data, ULONG_PTR Context, PACPI_OP_REGION_CALLBACK CompletionHandler, PVOID CompletionContext)
 

Functions

NTSTATUS RegisterOpRegionHandler (IN PDEVICE_OBJECT DeviceObject, IN ULONG AccessType, IN ULONG RegionSpace, IN PACPI_OP_REGION_HANDLER Handler, IN PVOID Context, IN ULONG Flags, IN OUT PVOID *OperationRegionObject)
 
NTSTATUS DeRegisterOpRegionHandler (IN PDEVICE_OBJECT DeviceObject, IN PVOID OperationRegionObject)
 

Macro Definition Documentation

◆ ACPI_OPREGION_ACCESS_AS_COOKED

#define ACPI_OPREGION_ACCESS_AS_COOKED   0x2

Definition at line 35 of file oprghdlr.h.

◆ ACPI_OPREGION_ACCESS_AS_RAW

#define ACPI_OPREGION_ACCESS_AS_RAW   0x1

Definition at line 34 of file oprghdlr.h.

◆ ACPI_OPREGION_ACCESS_AT_HIGH_LEVEL

#define ACPI_OPREGION_ACCESS_AT_HIGH_LEVEL   0x1

Definition at line 43 of file oprghdlr.h.

◆ ACPI_OPREGION_READ

#define ACPI_OPREGION_READ   0x0

Definition at line 41 of file oprghdlr.h.

◆ ACPI_OPREGION_REGION_SPACE_EC

#define ACPI_OPREGION_REGION_SPACE_EC   0x3

Definition at line 39 of file oprghdlr.h.

◆ ACPI_OPREGION_REGION_SPACE_IO

#define ACPI_OPREGION_REGION_SPACE_IO   0x1

Definition at line 37 of file oprghdlr.h.

◆ ACPI_OPREGION_REGION_SPACE_MEMORY

#define ACPI_OPREGION_REGION_SPACE_MEMORY   0x0

Definition at line 36 of file oprghdlr.h.

◆ ACPI_OPREGION_REGION_SPACE_PCI_CONFIG

#define ACPI_OPREGION_REGION_SPACE_PCI_CONFIG   0x2

Definition at line 38 of file oprghdlr.h.

◆ ACPI_OPREGION_REGION_SPACE_SMB

#define ACPI_OPREGION_REGION_SPACE_SMB   0x4

Definition at line 40 of file oprghdlr.h.

◆ ACPI_OPREGION_WRITE

#define ACPI_OPREGION_WRITE   0x1

Definition at line 42 of file oprghdlr.h.

◆ EXPORT

Definition at line 6 of file oprghdlr.h.

Typedef Documentation

◆ PACPI_OP_REGION_CALLBACK

typedef VOID(EXPORT * PACPI_OP_REGION_CALLBACK) ()

Definition at line 9 of file oprghdlr.h.

◆ PACPI_OP_REGION_HANDLER

typedef NTSTATUS(EXPORT * PACPI_OP_REGION_HANDLER) (ULONG AccessType, PVOID OperationRegionObject, ULONG Address, ULONG Size, PULONG Data, ULONG_PTR Context, PACPI_OP_REGION_CALLBACK CompletionHandler, PVOID CompletionContext)

Definition at line 12 of file oprghdlr.h.

Function Documentation

◆ DeRegisterOpRegionHandler()

NTSTATUS DeRegisterOpRegionHandler ( IN PDEVICE_OBJECT  DeviceObject,
IN PVOID  OperationRegionObject 
)

◆ RegisterOpRegionHandler()

NTSTATUS RegisterOpRegionHandler ( IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  AccessType,
IN ULONG  RegionSpace,
IN PACPI_OP_REGION_HANDLER  Handler,
IN PVOID  Context,
IN ULONG  Flags,
IN OUT PVOID OperationRegionObject 
)