https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ba1ed89f91664db2f7f1c4...
commit ba1ed89f91664db2f7f1c4a8915a99b3b72e26d5 Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Tue Nov 15 00:04:04 2022 +0100 Commit: GitHub noreply@github.com CommitDate: Tue Nov 15 02:04:04 2022 +0300
[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 <hal.h> + +#include <initguid.h> +#include <wdmguid.h> + #define NDEBUG #include <debug.h>
@@ -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; }