summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/dmbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/dmbuffer.c')
-rw-r--r--sys/contrib/dev/acpica/dmbuffer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/contrib/dev/acpica/dmbuffer.c b/sys/contrib/dev/acpica/dmbuffer.c
index 5d734c4..e78b6ce 100644
--- a/sys/contrib/dev/acpica/dmbuffer.c
+++ b/sys/contrib/dev/acpica/dmbuffer.c
@@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: dmbuffer - AML disassembler, buffer and string support
- * $Revision: 10 $
+ * $Revision: 12 $
*
******************************************************************************/
@@ -205,7 +205,7 @@ AcpiDmByteList (
ByteData = Op->Named.Data;
- ByteCount = Op->Common.Value.Integer32;
+ ByteCount = (UINT32) Op->Common.Value.Integer;
/*
* The byte list belongs to a buffer, and can be produced by either
@@ -282,7 +282,7 @@ AcpiDmIsUnicodeBuffer (
/* Extract the byte list info */
ByteData = NextOp->Named.Data;
- ByteCount = NextOp->Common.Value.Integer32;
+ ByteCount = (UINT32) NextOp->Common.Value.Integer;
WordCount = ACPI_DIV_2 (ByteCount);
/*
@@ -353,7 +353,7 @@ AcpiDmIsStringBuffer (
/* Extract the byte list info */
ByteData = NextOp->Named.Data;
- ByteCount = NextOp->Common.Value.Integer32;
+ ByteCount = (UINT32) NextOp->Common.Value.Integer;
/* Last byte must be the null terminator */
@@ -405,7 +405,7 @@ AcpiDmUnicode (
/* Extract the buffer info as a WORD buffer */
WordData = ACPI_CAST_PTR (UINT16, Op->Named.Data);
- WordCount = ACPI_DIV_2 (Op->Common.Value.Integer32);
+ WordCount = ACPI_DIV_2 (((UINT32) Op->Common.Value.Integer));
AcpiOsPrintf ("\"");
@@ -454,7 +454,7 @@ AcpiIsEisaId (
/* We are looking for _HID */
- if (ACPI_STRNCMP ((char *) &Name, "_HID", 4))
+ if (ACPI_STRNCMP ((char *) &Name, METHOD_NAME__HID, 4))
{
return;
}
@@ -470,7 +470,7 @@ AcpiIsEisaId (
/* Swap from little-endian to big-endian to simplify conversion */
- BigEndianId = AcpiUtDwordByteSwap (NextOp->Common.Value.Integer32);
+ BigEndianId = AcpiUtDwordByteSwap ((UINT32) NextOp->Common.Value.Integer);
/* Create the 3 leading ASCII letters */
OpenPOWER on IntegriCloud