- Fix all ACPI warnings and add default case for unhandled ACPI cases.
Modified: trunk/reactos/drivers/bus/acpi/include/acpi.h
Modified: trunk/reactos/drivers/bus/acpi/include/platform/types.h
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
_____
Modified: trunk/reactos/drivers/bus/acpi/include/acpi.h
--- trunk/reactos/drivers/bus/acpi/include/acpi.h 2005-07-27
05:08:32 UTC (rev 16789)
+++ trunk/reactos/drivers/bus/acpi/include/acpi.h 2005-07-27
05:09:05 UTC (rev 16790)
@@ -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__ */
_____
Modified: trunk/reactos/drivers/bus/acpi/include/platform/types.h
--- trunk/reactos/drivers/bus/acpi/include/platform/types.h
2005-07-27 05:08:32 UTC (rev 16789)
+++ trunk/reactos/drivers/bus/acpi/include/platform/types.h
2005-07-27 05:09:05 UTC (rev 16790)
@@ -14,6 +14,7 @@
#define __INCLUDE_ACPI_TYPES_H
#include <ddk/ntddk.h>
+#include <stdio.h>
typedef UCHAR UINT8;
typedef USHORT UINT16;
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
2005-07-27 05:08:32 UTC (rev 16789)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
2005-07-27 05:09:05 UTC (rev 16790)
@@ -279,7 +279,7 @@
}
head = buffer->pointer;
- tail = buffer->pointer + tail_offset;
+ tail = head + tail_offset;
/*
* Extract package data:
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
--- trunk/reactos/drivers/bus/acpi/ospm/fdo.c 2005-07-27 05:08:32 UTC
(rev 16789)
+++ trunk/reactos/drivers/bus/acpi/ospm/fdo.c 2005-07-27 05:09:05 UTC
(rev 16790)
@@ -162,6 +162,10 @@
Done = TRUE;
break;
}
+ default:
+ {
+ break;
+ }
}
resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT)
resource->length);
}
@@ -301,6 +305,10 @@
Done = TRUE;
break;
}
+ default:
+ {
+ break;
+ }
}
resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT)
resource->length);
}
@@ -471,7 +479,7 @@
return Status;
}
-
+#ifndef NDEBUG
static VOID
ACPIPrintInfo(
PFDO_DEVICE_EXTENSION DeviceExtension)
@@ -491,8 +499,8 @@
(DeviceExtension->SystemStates[5]?'+':'-'));
DbgPrint("+------------------------------------------------------------\
n");
}
+#endif
-
static NTSTATUS
ACPIInitializeInternalDriver(
PFDO_DEVICE_EXTENSION DeviceExtension,