Fixed some hal dispatch table issues.
[reactos.git] / reactos / hal / halx86 / 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 <ddk/ntddk.h>
14 #include <hal.h>
15 #include <bus.h>
16
17 #define NDEBUG
18 #include <internal/debug.h>
19
20
21 /* FUNCTIONS ****************************************************************/
22
23 NTSTATUS STDCALL
24 HalpQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass,
25 IN ULONG BufferSize,
26 IN OUT PVOID Buffer,
27 OUT PULONG ReturnedLength)
28 {
29 ULONG DataLength;
30 NTSTATUS Status;
31
32 DPRINT1("HalpQuerySystemInformation() called\n");
33
34 *ReturnedLength = 0;
35
36 DataLength = 0;
37
38 switch(InformationClass)
39 {
40 #if 0
41 case HalInstalledBusInformation:
42 Status = HalpQueryBusInformation(BufferSize,
43 Buffer,
44 ReturnedLength);
45 break;
46 #endif
47
48 default:
49 DataLength = 0;
50 Status = STATUS_INVALID_LEVEL;
51 break;
52 }
53
54 if (DataLength != 0)
55 {
56 if (DataLength > BufferSize)
57 DataLength = BufferSize;
58
59 // RtlCopyMemory();
60
61 *ReturnedLength = DataLength;
62 }
63
64 return(Status);
65 }
66
67
68 #if 0
69 NTSTATUS
70 HalpSetSystemInformation(VOID)
71 {
72 UNIMPLEMENTED;
73 }
74 #endif
75
76 /* EOF */