ReactOS  0.4.15-dev-5499-g1341c38
sysinfo.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for sysinfo.c:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define REPORT_THIS_CASE(X)   case X: DPRINT1("Unhandled case: %s\n", #X); break
 

Functions

NTSTATUS NTAPI HaliHandlePCIConfigSpaceAccess (_In_ BOOLEAN IsRead, _In_ ULONG Port, _In_ ULONG Length, _Inout_ PULONG Buffer)
 
NTSTATUS NTAPI HaliQuerySystemInformation (IN HAL_QUERY_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer, OUT PULONG ReturnedLength)
 
NTSTATUS NTAPI HaliSetSystemInformation (IN HAL_SET_INFORMATION_CLASS InformationClass, IN ULONG BufferSize, IN OUT PVOID Buffer)
 

Variables

HAL_AMLI_BAD_IO_ADDRESS_LIST HalALMIBadIOAddressList []
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file sysinfo.c.

◆ REPORT_THIS_CASE

#define REPORT_THIS_CASE (   X)    case X: DPRINT1("Unhandled case: %s\n", #X); break

Function Documentation

◆ HaliHandlePCIConfigSpaceAccess()

NTSTATUS NTAPI HaliHandlePCIConfigSpaceAccess ( _In_ BOOLEAN  IsRead,
_In_ ULONG  Port,
_In_ ULONG  Length,
_Inout_ PULONG  Buffer 
)

Definition at line 43 of file sysinfo.c.

47 {
48  DPRINT1("HaliHandlePCIConfigSpaceAccess: IsRead %X, Port 0x%X, Length %u, Buffer %p\n", IsRead, Port, Length, Buffer);
49  //ASSERT(FALSE);
51 }
CPPORT Port[4]
Definition: headless.c:35
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
return STATUS_NOT_IMPLEMENTED
Definition: bufpool.h:45
#define DPRINT1
Definition: precomp.h:8

◆ HaliQuerySystemInformation()

NTSTATUS NTAPI HaliQuerySystemInformation ( IN HAL_QUERY_INFORMATION_CLASS  InformationClass,
IN ULONG  BufferSize,
IN OUT PVOID  Buffer,
OUT PULONG  ReturnedLength 
)

Definition at line 55 of file sysinfo.c.

59 {
60 #define REPORT_THIS_CASE(X) case X: DPRINT1("Unhandled case: %s\n", #X); break
61  switch (InformationClass)
62  {
72  {
73  /* FIXME: TODO */
75  }
84  {
87 
88  if (BufferSize >= Size)
89  {
92  }
93 
96  return Status;
97  }
98 
109  }
110 #undef REPORT_THIS_CASE
111 
113  return STATUS_NOT_IMPLEMENTED;
114 }
#define STATUS_INFO_LENGTH_MISMATCH
Definition: udferr_usr.h:133
LONG NTSTATUS
Definition: precomp.h:26
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
return STATUS_NOT_IMPLEMENTED
Definition: bufpool.h:45
Status
Definition: gdiplustypes.h:24
#define REPORT_THIS_CASE(X)
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
Definition: batclass.h:187
VOID NTAPI KeFlushWriteBuffer(VOID)
Definition: misc.c:39
HAL_AMLI_BAD_IO_ADDRESS_LIST HalALMIBadIOAddressList[]
Definition: sysinfo.c:16
unsigned int ULONG
Definition: retypes.h:1
#define UNIMPLEMENTED
Definition: debug.h:115
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define STATUS_SUCCESS
Definition: shellext.h:65
_In_ FILTER_INFORMATION_CLASS InformationClass
Definition: fltkernel.h:1713
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:251

◆ HaliSetSystemInformation()

NTSTATUS NTAPI HaliSetSystemInformation ( IN HAL_SET_INFORMATION_CLASS  InformationClass,
IN ULONG  BufferSize,
IN OUT PVOID  Buffer 
)

Definition at line 118 of file sysinfo.c.

121 {
123  return STATUS_NOT_IMPLEMENTED;
124 }
return STATUS_NOT_IMPLEMENTED
#define UNIMPLEMENTED
Definition: debug.h:115

Variable Documentation

◆ HalALMIBadIOAddressList

HAL_AMLI_BAD_IO_ADDRESS_LIST HalALMIBadIOAddressList[]
Initial value:
=
{
{ 0x0000, 0x10, 1, NULL },
{ 0x0020, 0x02, 0, NULL },
{ 0x0040, 0x04, 1, NULL },
{ 0x0048, 0x04, 1, NULL },
{ 0x0070, 0x02, 1, NULL },
{ 0x0074, 0x03, 1, NULL },
{ 0x0081, 0x03, 1, NULL },
{ 0x0087, 0x01, 1, NULL },
{ 0x0089, 0x01, 1, NULL },
{ 0x008A, 0x02, 1, NULL },
{ 0x008F, 0x01, 1, NULL },
{ 0x0090, 0x02, 1, NULL },
{ 0x0093, 0x02, 1, NULL },
{ 0x0096, 0x02, 1, NULL },
{ 0x00A0, 0x02, 0, NULL },
{ 0x00C0, 0x20, 1, NULL },
{ 0x04D0, 0x02, 0, NULL },
{ 0x0CF8, 0x08, 1, &HaliHandlePCIConfigSpaceAccess },
{ 0x0000, 0x00, 0, NULL }
}
NTSTATUS NTAPI HaliHandlePCIConfigSpaceAccess(_In_ BOOLEAN IsRead, _In_ ULONG Port, _In_ ULONG Length, _Inout_ PULONG Buffer)
Definition: sysinfo.c:43
#define NULL
Definition: types.h:112

Definition at line 16 of file sysinfo.c.

Referenced by HaliQuerySystemInformation().