From ba1ed89f91664db2f7f1c4a8915a99b3b72e26d5 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Tue, 15 Nov 2022 00:04:04 +0100 Subject: [PATCH] [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 --- hal/halx86/acpi/halpnpdd.c | 22 +++++++++++++++++++++- hal/halx86/legacy/halpnpdd.c | 7 ++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/hal/halx86/acpi/halpnpdd.c b/hal/halx86/acpi/halpnpdd.c index 3f3d895cf2c..0dabbcc6f5b 100644 --- a/hal/halx86/acpi/halpnpdd.c +++ b/hal/halx86/acpi/halpnpdd.c @@ -9,6 +9,10 @@ /* INCLUDES *******************************************************************/ #include + +#include +#include + #define NDEBUG #include @@ -153,7 +157,23 @@ HalpQueryInterface(IN PDEVICE_OBJECT DeviceObject, IN PINTERFACE Interface, 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; } diff --git a/hal/halx86/legacy/halpnpdd.c b/hal/halx86/legacy/halpnpdd.c index b2c03f2e417..90e7d1294ae 100644 --- a/hal/halx86/legacy/halpnpdd.c +++ b/hal/halx86/legacy/halpnpdd.c @@ -145,7 +145,12 @@ HalpQueryInterface(IN PDEVICE_OBJECT DeviceObject, IN PINTERFACE Interface, 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; }