ReactOS 0.4.15-dev-8093-g3285f69
interface.c
Go to the documentation of this file.
1#include "precomp.h"
2
3#define NDEBUG
4#include <debug.h>
5
9{
11}
12
13VOID
16{
18}
19
29{
31
33}
34
38{
40
42}
43
48{
50
52}
53
58{
60
62}
63
68{
70
72}
73
79{
81
82 return STATUS_SUCCESS;
83}
84
85VOID
89{
91}
92
95 PIRP Irp)
96{
98 PACPI_INTERFACE_STANDARD AcpiInterface;
99
100 if (IrpSp->Parameters.QueryInterface.Version != 1)
101 {
102 DPRINT1("Invalid version number: %d\n",
105 }
106
108 &GUID_ACPI_INTERFACE_STANDARD, sizeof(GUID)) == sizeof(GUID))
109 {
110 DPRINT("GUID_ACPI_INTERFACE_STANDARD\n");
111
113 {
114 DPRINT1("Buffer too small! (%d)\n", IrpSp->Parameters.QueryInterface.Size);
116 }
117
118 AcpiInterface = (PACPI_INTERFACE_STANDARD)IrpSp->Parameters.QueryInterface.Interface;
119
129
130 return STATUS_SUCCESS;
131 }
132 else
133 {
134 DPRINT1("Invalid GUID\n");
136 }
137}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
static UCHAR NotificationContext
unsigned char BOOLEAN
ACPI_GPE_EVENT_INFO UINT32 GpeNumber
Definition: acevents.h:196
LONG NTSTATUS
Definition: precomp.h:26
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:118
_In_ PIRP Irp
Definition: csq.h:116
VOID NTAPI AcpiInterfaceReference(PVOID Context)
Definition: interface.c:8
NTSTATUS NTAPI AcpiInterfaceNotificationsRegister(PDEVICE_OBJECT Context, PDEVICE_NOTIFY_CALLBACK NotificationHandler, PVOID NotificationContext)
Definition: interface.c:76
NTSTATUS NTAPI AcpiInterfaceClearStatus(PDEVICE_OBJECT Context, PVOID ObjectContext)
Definition: interface.c:66
VOID NTAPI AcpiInterfaceDereference(PVOID Context)
Definition: interface.c:15
NTSTATUS NTAPI AcpiInterfaceEnableEvent(PDEVICE_OBJECT Context, PVOID ObjectContext)
Definition: interface.c:46
NTSTATUS NTAPI AcpiInterfaceDisableEvent(PDEVICE_OBJECT Context, PVOID ObjectContext)
Definition: interface.c:56
VOID NTAPI AcpiInterfaceNotificationsUnregister(PDEVICE_OBJECT Context, PDEVICE_NOTIFY_CALLBACK NotificationHandler)
Definition: interface.c:87
NTSTATUS Bus_PDO_QueryInterface(PPDO_DEVICE_DATA DeviceData, PIRP Irp)
Definition: interface.c:94
NTSTATUS NTAPI AcpiInterfaceDisconnectVector(PVOID ObjectContext)
Definition: interface.c:37
NTSTATUS NTAPI AcpiInterfaceConnectVector(PDEVICE_OBJECT Context, ULONG GpeNumber, KINTERRUPT_MODE Mode, BOOLEAN Shareable, PGPE_SERVICE_ROUTINE ServiceRoutine, PVOID ServiceContext, PVOID ObjectContext)
Definition: interface.c:22
_In_ PIO_STACK_LOCATION IrpSp
Definition: create.c:4137
#define RtlCompareMemory(s1, s2, l)
Definition: env_spec_w32.h:465
_In_ ULONG Mode
Definition: hubbusif.h:303
#define STATUS_NOT_SUPPORTED
Definition: ntstatus.h:423
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:239
enum _KINTERRUPT_MODE KINTERRUPT_MODE
#define STATUS_SUCCESS
Definition: shellext.h:65
#define STATUS_BUFFER_TOO_SMALL
Definition: shellext.h:69
#define DPRINT
Definition: sndvol32.h:73
PUNREGISTER_FOR_DEVICE_NOTIFICATIONS UnregisterForDeviceNotifications
Definition: iotypes.h:3024
PINTERFACE_DEREFERENCE InterfaceDereference
Definition: iotypes.h:3017
PGPE_CLEAR_STATUS GpeClearStatus
Definition: iotypes.h:3022
PGPE_ENABLE_EVENT GpeEnableEvent
Definition: iotypes.h:3020
PREGISTER_FOR_DEVICE_NOTIFICATIONS RegisterForDeviceNotifications
Definition: iotypes.h:3023
PINTERFACE_REFERENCE InterfaceReference
Definition: iotypes.h:3016
PGPE_DISCONNECT_VECTOR GpeDisconnectVector
Definition: iotypes.h:3019
PGPE_DISABLE_EVENT GpeDisableEvent
Definition: iotypes.h:3021
PGPE_CONNECT_VECTOR GpeConnectVector
Definition: iotypes.h:3018
union _IO_STACK_LOCATION::@1567 Parameters
struct _IO_STACK_LOCATION::@3982::@4008 QueryInterface
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_In_ PKSERVICE_ROUTINE ServiceRoutine
Definition: iofuncs.h:800
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID ServiceContext
Definition: iofuncs.h:801
ULONG KINTERRUPT_MODE BOOLEAN PGPE_SERVICE_ROUTINE PVOID PVOID * ObjectContext
Definition: iotypes.h:3042
ULONG KINTERRUPT_MODE BOOLEAN Shareable
Definition: iotypes.h:3039
BOOLEAN(NTAPI * PGPE_SERVICE_ROUTINE)(PVOID, PVOID)
Definition: iotypes.h:2950
struct _ACPI_INTERFACE_STANDARD * PACPI_INTERFACE_STANDARD
VOID(NTAPI * PDEVICE_NOTIFY_CALLBACK)(PVOID, ULONG)
Definition: iotypes.h:2994
PDEVICE_NOTIFY_CALLBACK2 NotificationHandler
Definition: iotypes.h:3083