- Fix all ACPI warnings and add default case for unhandled ACPI cases.

svn path=/trunk/; revision=16790
This commit is contained in:
Alex Ionescu 2005-07-27 05:09:05 +00:00
parent 14e0bc6128
commit a9d517d95c
4 changed files with 13 additions and 3 deletions

View file

@ -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__ */

View file

@ -14,6 +14,7 @@
#define __INCLUDE_ACPI_TYPES_H
#include <ddk/ntddk.h>
#include <stdio.h>
typedef UCHAR UINT8;
typedef USHORT UINT16;

View file

@ -279,7 +279,7 @@ bm_extract_package_data (
}
head = buffer->pointer;
tail = buffer->pointer + tail_offset;
tail = head + tail_offset;
/*
* Extract package data:

View file

@ -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(