Ditto for HAL
[reactos.git] / reactos / hal / halx86 / generic / sysinfo.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/hal/x86/sysinfo.c
5 * PURPOSE: Getting system information
6 * PROGRAMMER: David Welch (welch@mcmail.com)
7 * UPDATE HISTORY:
8 * Created 22/05/98
9 */
10
11 /* INCLUDES *****************************************************************/
12
13 #include <hal.h>
14 #define NDEBUG
15 #include <debug.h>
16
17
18
19 /* FUNCTIONS ****************************************************************/
20
21 NTSTATUS STDCALL
22 HalpQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass,
23 IN ULONG BufferSize,
24 IN OUT PVOID Buffer,
25 OUT PULONG ReturnedLength)
26 {
27 ULONG DataLength;
28 NTSTATUS Status;
29
30 DPRINT1("HalpQuerySystemInformation() called\n");
31
32 *ReturnedLength = 0;
33
34 DataLength = 0;
35
36 switch(InformationClass)
37 {
38 #if 0
39 case HalInstalledBusInformation:
40 Status = HalpQueryBusInformation(BufferSize,
41 Buffer,
42 ReturnedLength);
43 break;
44 #endif
45
46 default:
47 DataLength = 0;
48 Status = STATUS_INVALID_LEVEL;
49 break;
50 }
51
52 if (DataLength != 0)
53 {
54 if (DataLength > BufferSize)
55 DataLength = BufferSize;
56
57 // RtlCopyMemory();
58
59 *ReturnedLength = DataLength;
60 }
61
62 return(Status);
63 }
64
65
66 #if 0
67 NTSTATUS
68 HalpSetSystemInformation(VOID)
69 {
70 UNIMPLEMENTED;
71 }
72 #endif
73
74 /* EOF */