[HALX86] HalpQueryInterface(): Debug log InterfaceType param (#4772)

This should help to find out which GUIDs are actually wanted.
Based on CircularTriangle06's patch.

CORE-11632
This commit is contained in:
Serge Gautherie 2022-11-15 00:04:04 +01:00 committed by GitHub
parent 5efb6e3d97
commit ba1ed89f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 2 deletions

View file

@ -9,6 +9,10 @@
/* INCLUDES *******************************************************************/ /* INCLUDES *******************************************************************/
#include <hal.h> #include <hal.h>
#include <initguid.h>
#include <wdmguid.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
@ -153,7 +157,23 @@ HalpQueryInterface(IN PDEVICE_OBJECT DeviceObject,
IN PINTERFACE Interface, IN PINTERFACE Interface,
OUT PULONG Length) OUT PULONG Length)
{ {
UNIMPLEMENTED; if (IsEqualIID(InterfaceType, &GUID_ACPI_REGS_INTERFACE_STANDARD))
{
DPRINT1("HalpQueryInterface(GUID_ACPI_REGS_INTERFACE_STANDARD) is UNIMPLEMENTED\n");
}
else if (IsEqualIID(InterfaceType, &GUID_ACPI_PORT_RANGES_INTERFACE_STANDARD))
{
DPRINT1("HalpQueryInterface(GUID_ACPI_PORT_RANGES_INTERFACE_STANDARD) is UNIMPLEMENTED\n");
}
else
{
DPRINT1("HalpQueryInterface({%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}) is UNIMPLEMENTED\n",
InterfaceType->Data1, InterfaceType->Data2, InterfaceType->Data3,
InterfaceType->Data4[0], InterfaceType->Data4[1],
InterfaceType->Data4[2], InterfaceType->Data4[3],
InterfaceType->Data4[4], InterfaceType->Data4[5],
InterfaceType->Data4[6], InterfaceType->Data4[7]);
}
return STATUS_NOT_SUPPORTED; return STATUS_NOT_SUPPORTED;
} }

View file

@ -145,7 +145,12 @@ HalpQueryInterface(IN PDEVICE_OBJECT DeviceObject,
IN PINTERFACE Interface, IN PINTERFACE Interface,
OUT PULONG Length) OUT PULONG Length)
{ {
UNIMPLEMENTED; DPRINT1("HalpQueryInterface({%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}) is UNIMPLEMENTED\n",
InterfaceType->Data1, InterfaceType->Data2, InterfaceType->Data3,
InterfaceType->Data4[0], InterfaceType->Data4[1],
InterfaceType->Data4[2], InterfaceType->Data4[3],
InterfaceType->Data4[4], InterfaceType->Data4[5],
InterfaceType->Data4[6], InterfaceType->Data4[7]);
return STATUS_NOT_SUPPORTED; return STATUS_NOT_SUPPORTED;
} }