2014-01-28 11:11:36 +00:00
|
|
|
#include "precomp.h"
|
2010-03-23 03:05:57 +00:00
|
|
|
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
AcpiInterfaceReference(PVOID Context)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
AcpiInterfaceDereference(PVOID Context)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
2010-03-23 03:05:57 +00:00
|
|
|
AcpiInterfaceConnectVector(PDEVICE_OBJECT Context,
|
|
|
|
ULONG GpeNumber,
|
|
|
|
KINTERRUPT_MODE Mode,
|
|
|
|
BOOLEAN Shareable,
|
|
|
|
PGPE_SERVICE_ROUTINE ServiceRoutine,
|
|
|
|
PVOID ServiceContext,
|
2010-05-31 13:54:38 +00:00
|
|
|
PVOID ObjectContext)
|
2010-03-23 03:05:57 +00:00
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
|
|
|
AcpiInterfaceDisconnectVector(PVOID ObjectContext)
|
2010-03-23 03:05:57 +00:00
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
2010-03-23 03:05:57 +00:00
|
|
|
AcpiInterfaceEnableEvent(PDEVICE_OBJECT Context,
|
|
|
|
PVOID ObjectContext)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
2010-03-23 03:05:57 +00:00
|
|
|
AcpiInterfaceDisableEvent(PDEVICE_OBJECT Context,
|
|
|
|
PVOID ObjectContext)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
2010-03-23 03:05:57 +00:00
|
|
|
AcpiInterfaceClearStatus(PDEVICE_OBJECT Context,
|
|
|
|
PVOID ObjectContext)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
2010-03-23 03:05:57 +00:00
|
|
|
AcpiInterfaceNotificationsRegister(PDEVICE_OBJECT Context,
|
|
|
|
PDEVICE_NOTIFY_CALLBACK NotificationHandler,
|
|
|
|
PVOID NotificationContext)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
|
2024-02-01 09:02:36 +00:00
|
|
|
return STATUS_SUCCESS;
|
2010-03-23 03:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VOID
|
2010-05-31 13:54:38 +00:00
|
|
|
NTAPI
|
2010-03-23 03:05:57 +00:00
|
|
|
AcpiInterfaceNotificationsUnregister(PDEVICE_OBJECT Context,
|
|
|
|
PDEVICE_NOTIFY_CALLBACK NotificationHandler)
|
|
|
|
{
|
2017-02-06 15:49:23 +00:00
|
|
|
UNIMPLEMENTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
Bus_PDO_QueryInterface(PPDO_DEVICE_DATA DeviceData,
|
|
|
|
PIRP Irp)
|
|
|
|
{
|
|
|
|
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
|
|
|
PACPI_INTERFACE_STANDARD AcpiInterface;
|
|
|
|
|
|
|
|
if (IrpSp->Parameters.QueryInterface.Version != 1)
|
|
|
|
{
|
|
|
|
DPRINT1("Invalid version number: %d\n",
|
|
|
|
IrpSp->Parameters.QueryInterface.Version);
|
|
|
|
return STATUS_INVALID_PARAMETER;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (RtlCompareMemory(IrpSp->Parameters.QueryInterface.InterfaceType,
|
|
|
|
&GUID_ACPI_INTERFACE_STANDARD, sizeof(GUID)) == sizeof(GUID))
|
|
|
|
{
|
|
|
|
DPRINT("GUID_ACPI_INTERFACE_STANDARD\n");
|
|
|
|
|
|
|
|
if (IrpSp->Parameters.QueryInterface.Size < sizeof(ACPI_INTERFACE_STANDARD))
|
|
|
|
{
|
|
|
|
DPRINT1("Buffer too small! (%d)\n", IrpSp->Parameters.QueryInterface.Size);
|
|
|
|
return STATUS_BUFFER_TOO_SMALL;
|
|
|
|
}
|
|
|
|
|
|
|
|
AcpiInterface = (PACPI_INTERFACE_STANDARD)IrpSp->Parameters.QueryInterface.Interface;
|
|
|
|
|
|
|
|
AcpiInterface->InterfaceReference = AcpiInterfaceReference;
|
|
|
|
AcpiInterface->InterfaceDereference = AcpiInterfaceDereference;
|
|
|
|
AcpiInterface->GpeConnectVector = AcpiInterfaceConnectVector;
|
|
|
|
AcpiInterface->GpeDisconnectVector = AcpiInterfaceDisconnectVector;
|
|
|
|
AcpiInterface->GpeEnableEvent = AcpiInterfaceEnableEvent;
|
|
|
|
AcpiInterface->GpeDisableEvent = AcpiInterfaceDisableEvent;
|
|
|
|
AcpiInterface->GpeClearStatus = AcpiInterfaceClearStatus;
|
|
|
|
AcpiInterface->RegisterForDeviceNotifications = AcpiInterfaceNotificationsRegister;
|
|
|
|
AcpiInterface->UnregisterForDeviceNotifications = AcpiInterfaceNotificationsUnregister;
|
|
|
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
DPRINT1("Invalid GUID\n");
|
2011-12-04 22:34:55 +00:00
|
|
|
return STATUS_NOT_SUPPORTED;
|
2010-03-23 03:05:57 +00:00
|
|
|
}
|
|
|
|
}
|