[HEADERS]
[reactos.git] / reactos / hal / halx86 / generic / sysinfo.c
index ed13934..d3a72c5 100644 (file)
@@ -1,27 +1,25 @@
 /*
- * PROJECT:         ReactOS HA:
+ * PROJECT:         ReactOS HAL
  * LICENSE:         GPL - See COPYING in the top level directory
  * FILE:            hal/halx86/generic/sysinfo.c
  * PURPOSE:         HAL Information Routines
  * PROGRAMMERS:     Alex Ionescu (alex.ionescu@reactos.org)
  */
 
-/* INCLUDES ******************************************************************/
+/* INCLUDES *******************************************************************/
 
 #include <hal.h>
 #define NDEBUG
 #include <debug.h>
 
-PUCHAR KdComPortInUse;
-
-/* FUNCTIONS *****************************************************************/
+/* FUNCTIONS ******************************************************************/
 
 NTSTATUS
 NTAPI
-HaliQuerySystemInformation(IN     HAL_QUERY_INFORMATION_CLASS InformationClass,
-                           IN     ULONG  BufferSize,
-                           IN OUT PVOID  Buffer,
-                              OUT PULONG ReturnedLength)
+HaliQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass,
+                           IN ULONG BufferSize,
+                           IN OUT PVOID Buffer,
+                           OUT PULONG ReturnedLength)
 {
 #define REPORT_THIS_CASE(X) case X: DPRINT1("Unhandled case: %s\n", #X); break
        switch (InformationClass)
@@ -35,20 +33,10 @@ HaliQuerySystemInformation(IN     HAL_QUERY_INFORMATION_CLASS InformationClass,
                REPORT_THIS_CASE(HalMapRegisterInformation);
                REPORT_THIS_CASE(HalMcaLogInformation);
                case HalFrameBufferCachingInformation:
-               if (BufferSize >= 1)
                {
-                       // The only caller that has been seen calling this function told
-                       // us it expected a single byte back. We therefore guess it expects
-                       // a BOOLEAN, and we dream up the value TRUE to (we think) tell it
-                       // "Sure, the framebuffer is cached".
-                       BOOLEAN ToReturn = TRUE;
-                       DPRINT("%s: caller expects %u bytes (should be 1)\n", "HalFrameBufferCachingInformation", BufferSize);
-                       ASSERT(sizeof(BOOLEAN) == 1);
-                       *ReturnedLength = sizeof(BOOLEAN);
-                       RtlCopyMemory(Buffer, &ToReturn, sizeof(BOOLEAN));
-                       return STATUS_SUCCESS;
+            /* FIXME: TODO */
+            return STATUS_NOT_IMPLEMENTED;
                }
-               break;
                REPORT_THIS_CASE(HalDisplayBiosInformation);
                REPORT_THIS_CASE(HalProcessorFeatureInformation);
                REPORT_THIS_CASE(HalNumaTopologyInterface);
@@ -61,6 +49,12 @@ HaliQuerySystemInformation(IN     HAL_QUERY_INFORMATION_CLASS InformationClass,
                REPORT_THIS_CASE(HalPartitionIpiInterface);
                REPORT_THIS_CASE(HalPlatformInformation);
                REPORT_THIS_CASE(HalQueryProfileSourceList);
+               REPORT_THIS_CASE(HalInitLogInformation);
+               REPORT_THIS_CASE(HalFrequencyInformation);
+               REPORT_THIS_CASE(HalProcessorBrandString);
+               REPORT_THIS_CASE(HalHypervisorInformation);
+               REPORT_THIS_CASE(HalPlatformTimerInformation);
+               REPORT_THIS_CASE(HalAcpiAuditInformation);
        }
 #undef REPORT_THIS_CASE
 
@@ -77,5 +71,3 @@ HaliSetSystemInformation(IN HAL_SET_INFORMATION_CLASS InformationClass,
     UNIMPLEMENTED;
     return STATUS_NOT_IMPLEMENTED;
 }
-
-/* EOF */