mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
- Fix all ACPI warnings and add default case for unhandled ACPI cases.
svn path=/trunk/; revision=16790
This commit is contained in:
parent
14e0bc6128
commit
a9d517d95c
4 changed files with 13 additions and 3 deletions
|
@ -50,6 +50,7 @@
|
|||
#include "acglobal.h" /* All global variables */
|
||||
#include "achware.h" /* Hardware defines and interfaces */
|
||||
#include "accommon.h" /* Common interfaces */
|
||||
#include "acresrc.h" /* Resource Manager function prototypes */
|
||||
|
||||
|
||||
#endif /* __ACPI_H__ */
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#define __INCLUDE_ACPI_TYPES_H
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <stdio.h>
|
||||
|
||||
typedef UCHAR UINT8;
|
||||
typedef USHORT UINT16;
|
||||
|
|
|
@ -279,7 +279,7 @@ bm_extract_package_data (
|
|||
}
|
||||
|
||||
head = buffer->pointer;
|
||||
tail = buffer->pointer + tail_offset;
|
||||
tail = head + tail_offset;
|
||||
|
||||
/*
|
||||
* Extract package data:
|
||||
|
|
|
@ -162,6 +162,10 @@ AcpiCreateResourceList(PCM_RESOURCE_LIST* pResourceList,
|
|||
Done = TRUE;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT) resource->length);
|
||||
}
|
||||
|
@ -301,6 +305,10 @@ AcpiCreateResourceList(PCM_RESOURCE_LIST* pResourceList,
|
|||
Done = TRUE;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT) resource->length);
|
||||
}
|
||||
|
@ -471,7 +479,7 @@ FdoQueryBusRelations(
|
|||
return Status;
|
||||
}
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
static VOID
|
||||
ACPIPrintInfo(
|
||||
PFDO_DEVICE_EXTENSION DeviceExtension)
|
||||
|
@ -491,7 +499,7 @@ ACPIPrintInfo(
|
|||
(DeviceExtension->SystemStates[5]?'+':'-'));
|
||||
DbgPrint("+------------------------------------------------------------\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static NTSTATUS
|
||||
ACPIInitializeInternalDriver(
|
||||
|
|
Loading…
Reference in a new issue