mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[HALX86] Tabs to 4-space indentation in generic/sysinfo.c + Fix typo "ALMI" -> "AMLI"
This commit is contained in:
parent
d03fc32e7d
commit
d6a78d580b
1 changed files with 47 additions and 47 deletions
|
@ -13,7 +13,7 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
HAL_AMLI_BAD_IO_ADDRESS_LIST HalALMIBadIOAddressList[] =
|
HAL_AMLI_BAD_IO_ADDRESS_LIST HalAMLIBadIOAddressList[] =
|
||||||
{
|
{
|
||||||
{ 0x0000, 0x10, 1, NULL }, // DMA controller
|
{ 0x0000, 0x10, 1, NULL }, // DMA controller
|
||||||
{ 0x0020, 0x02, 0, NULL }, // Programmable Interrupt Controller (8259A)
|
{ 0x0020, 0x02, 0, NULL }, // Programmable Interrupt Controller (8259A)
|
||||||
|
@ -58,59 +58,59 @@ HaliQuerySystemInformation(IN HAL_QUERY_INFORMATION_CLASS InformationClass,
|
||||||
OUT PULONG ReturnedLength)
|
OUT PULONG ReturnedLength)
|
||||||
{
|
{
|
||||||
#define REPORT_THIS_CASE(X) case X: DPRINT1("Unhandled case: %s\n", #X); break
|
#define REPORT_THIS_CASE(X) case X: DPRINT1("Unhandled case: %s\n", #X); break
|
||||||
switch (InformationClass)
|
switch (InformationClass)
|
||||||
{
|
{
|
||||||
REPORT_THIS_CASE(HalInstalledBusInformation);
|
REPORT_THIS_CASE(HalInstalledBusInformation);
|
||||||
REPORT_THIS_CASE(HalProfileSourceInformation);
|
REPORT_THIS_CASE(HalProfileSourceInformation);
|
||||||
REPORT_THIS_CASE(HalInformationClassUnused1);
|
REPORT_THIS_CASE(HalInformationClassUnused1);
|
||||||
REPORT_THIS_CASE(HalPowerInformation);
|
REPORT_THIS_CASE(HalPowerInformation);
|
||||||
REPORT_THIS_CASE(HalProcessorSpeedInformation);
|
REPORT_THIS_CASE(HalProcessorSpeedInformation);
|
||||||
REPORT_THIS_CASE(HalCallbackInformation);
|
REPORT_THIS_CASE(HalCallbackInformation);
|
||||||
REPORT_THIS_CASE(HalMapRegisterInformation);
|
REPORT_THIS_CASE(HalMapRegisterInformation);
|
||||||
REPORT_THIS_CASE(HalMcaLogInformation);
|
REPORT_THIS_CASE(HalMcaLogInformation);
|
||||||
case HalFrameBufferCachingInformation:
|
case HalFrameBufferCachingInformation:
|
||||||
{
|
{
|
||||||
/* FIXME: TODO */
|
/* FIXME: TODO */
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
REPORT_THIS_CASE(HalDisplayBiosInformation);
|
REPORT_THIS_CASE(HalDisplayBiosInformation);
|
||||||
REPORT_THIS_CASE(HalProcessorFeatureInformation);
|
REPORT_THIS_CASE(HalProcessorFeatureInformation);
|
||||||
REPORT_THIS_CASE(HalNumaTopologyInterface);
|
REPORT_THIS_CASE(HalNumaTopologyInterface);
|
||||||
REPORT_THIS_CASE(HalErrorInformation);
|
REPORT_THIS_CASE(HalErrorInformation);
|
||||||
REPORT_THIS_CASE(HalCmcLogInformation);
|
REPORT_THIS_CASE(HalCmcLogInformation);
|
||||||
REPORT_THIS_CASE(HalCpeLogInformation);
|
REPORT_THIS_CASE(HalCpeLogInformation);
|
||||||
REPORT_THIS_CASE(HalQueryMcaInterface);
|
REPORT_THIS_CASE(HalQueryMcaInterface);
|
||||||
case HalQueryAMLIIllegalIOPortAddresses:
|
case HalQueryAMLIIllegalIOPortAddresses:
|
||||||
{
|
{
|
||||||
ULONG Size = sizeof(HalALMIBadIOAddressList);
|
ULONG Size = sizeof(HalAMLIBadIOAddressList);
|
||||||
NTSTATUS Status = STATUS_INFO_LENGTH_MISMATCH;
|
NTSTATUS Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
|
||||||
if (BufferSize >= Size)
|
if (BufferSize >= Size)
|
||||||
{
|
{
|
||||||
RtlCopyMemory(Buffer, HalALMIBadIOAddressList, Size);
|
RtlCopyMemory(Buffer, HalAMLIBadIOAddressList, Size);
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
*ReturnedLength = Size;
|
*ReturnedLength = Size;
|
||||||
KeFlushWriteBuffer();
|
KeFlushWriteBuffer();
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
REPORT_THIS_CASE(HalQueryMaxHotPlugMemoryAddress);
|
REPORT_THIS_CASE(HalQueryMaxHotPlugMemoryAddress);
|
||||||
REPORT_THIS_CASE(HalPartitionIpiInterface);
|
REPORT_THIS_CASE(HalPartitionIpiInterface);
|
||||||
REPORT_THIS_CASE(HalPlatformInformation);
|
REPORT_THIS_CASE(HalPlatformInformation);
|
||||||
REPORT_THIS_CASE(HalQueryProfileSourceList);
|
REPORT_THIS_CASE(HalQueryProfileSourceList);
|
||||||
REPORT_THIS_CASE(HalInitLogInformation);
|
REPORT_THIS_CASE(HalInitLogInformation);
|
||||||
REPORT_THIS_CASE(HalFrequencyInformation);
|
REPORT_THIS_CASE(HalFrequencyInformation);
|
||||||
REPORT_THIS_CASE(HalProcessorBrandString);
|
REPORT_THIS_CASE(HalProcessorBrandString);
|
||||||
REPORT_THIS_CASE(HalHypervisorInformation);
|
REPORT_THIS_CASE(HalHypervisorInformation);
|
||||||
REPORT_THIS_CASE(HalPlatformTimerInformation);
|
REPORT_THIS_CASE(HalPlatformTimerInformation);
|
||||||
REPORT_THIS_CASE(HalAcpiAuditInformation);
|
REPORT_THIS_CASE(HalAcpiAuditInformation);
|
||||||
}
|
}
|
||||||
#undef REPORT_THIS_CASE
|
#undef REPORT_THIS_CASE
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
Loading…
Reference in a new issue