summaryrefslogtreecommitdiff
path: root/executer/exfldio.c
diff options
context:
space:
mode:
Diffstat (limited to 'executer/exfldio.c')
-rw-r--r--executer/exfldio.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/executer/exfldio.c b/executer/exfldio.c
index 37a678655172..403cb069446d 100644
--- a/executer/exfldio.c
+++ b/executer/exfldio.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -133,13 +133,13 @@ static ACPI_STATUS
AcpiExFieldDatumIo (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 ReadWrite);
static BOOLEAN
AcpiExRegisterOverflow (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Value);
+ UINT64 Value);
static ACPI_STATUS
AcpiExSetupRegion (
@@ -296,7 +296,7 @@ AcpiExSetupRegion (
* FieldDatumByteOffset - Byte offset of this datum within the
* parent field
* Value - Where to store value (must at least
- * the size of ACPI_INTEGER)
+ * 64 bits)
* Function - Read or Write flag plus other region-
* dependent flags
*
@@ -310,7 +310,7 @@ ACPI_STATUS
AcpiExAccessRegion (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 Function)
{
ACPI_STATUS Status;
@@ -408,7 +408,7 @@ AcpiExAccessRegion (
static BOOLEAN
AcpiExRegisterOverflow (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Value)
+ UINT64 Value)
{
if (ObjDesc->CommonField.BitLength >= ACPI_INTEGER_BIT_SIZE)
@@ -420,7 +420,7 @@ AcpiExRegisterOverflow (
return (FALSE);
}
- if (Value >= ((ACPI_INTEGER) 1 << ObjDesc->CommonField.BitLength))
+ if (Value >= ((UINT64) 1 << ObjDesc->CommonField.BitLength))
{
/*
* The Value is larger than the maximum value that can fit into
@@ -457,11 +457,11 @@ static ACPI_STATUS
AcpiExFieldDatumIo (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 ReadWrite)
{
ACPI_STATUS Status;
- ACPI_INTEGER LocalValue;
+ UINT64 LocalValue;
ACPI_FUNCTION_TRACE_U32 (ExFieldDatumIo, FieldDatumByteOffset);
@@ -543,7 +543,7 @@ AcpiExFieldDatumIo (
* the register
*/
if (AcpiExRegisterOverflow (ObjDesc->BankField.BankObj,
- (ACPI_INTEGER) ObjDesc->BankField.Value))
+ (UINT64) ObjDesc->BankField.Value))
{
return_ACPI_STATUS (AE_AML_REGISTER_LIMIT);
}
@@ -586,7 +586,7 @@ AcpiExFieldDatumIo (
* the register
*/
if (AcpiExRegisterOverflow (ObjDesc->IndexField.IndexObj,
- (ACPI_INTEGER) ObjDesc->IndexField.Value))
+ (UINT64) ObjDesc->IndexField.Value))
{
return_ACPI_STATUS (AE_AML_REGISTER_LIMIT);
}
@@ -615,7 +615,7 @@ AcpiExFieldDatumIo (
"Read from Data Register\n"));
Status = AcpiExExtractFromField (ObjDesc->IndexField.DataObj,
- Value, sizeof (ACPI_INTEGER));
+ Value, sizeof (UINT64));
}
else
{
@@ -626,7 +626,7 @@ AcpiExFieldDatumIo (
ACPI_FORMAT_UINT64 (*Value)));
Status = AcpiExInsertIntoField (ObjDesc->IndexField.DataObj,
- Value, sizeof (ACPI_INTEGER));
+ Value, sizeof (UINT64));
}
break;
@@ -679,13 +679,13 @@ AcpiExFieldDatumIo (
ACPI_STATUS
AcpiExWriteWithUpdateRule (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Mask,
- ACPI_INTEGER FieldValue,
+ UINT64 Mask,
+ UINT64 FieldValue,
UINT32 FieldDatumByteOffset)
{
ACPI_STATUS Status = AE_OK;
- ACPI_INTEGER MergedValue;
- ACPI_INTEGER CurrentValue;
+ UINT64 MergedValue;
+ UINT64 CurrentValue;
ACPI_FUNCTION_TRACE_U32 (ExWriteWithUpdateRule, Mask);
@@ -697,7 +697,7 @@ AcpiExWriteWithUpdateRule (
/* If the mask is all ones, we don't need to worry about the update rule */
- if (Mask != ACPI_INTEGER_MAX)
+ if (Mask != ACPI_UINT64_MAX)
{
/* Decode the update rule */
@@ -787,8 +787,8 @@ AcpiExExtractFromField (
UINT32 BufferLength)
{
ACPI_STATUS Status;
- ACPI_INTEGER RawDatum;
- ACPI_INTEGER MergedDatum;
+ UINT64 RawDatum;
+ UINT64 MergedDatum;
UINT32 FieldOffset = 0;
UINT32 BufferOffset = 0;
UINT32 BufferTailBits;
@@ -917,10 +917,10 @@ AcpiExInsertIntoField (
UINT32 BufferLength)
{
ACPI_STATUS Status;
- ACPI_INTEGER Mask;
- ACPI_INTEGER WidthMask;
- ACPI_INTEGER MergedDatum;
- ACPI_INTEGER RawDatum = 0;
+ UINT64 Mask;
+ UINT64 WidthMask;
+ UINT64 MergedDatum;
+ UINT64 RawDatum = 0;
UINT32 FieldOffset = 0;
UINT32 BufferOffset = 0;
UINT32 BufferTailBits;
@@ -972,7 +972,7 @@ AcpiExInsertIntoField (
*/
if (ObjDesc->CommonField.AccessBitWidth == ACPI_INTEGER_BIT_SIZE)
{
- WidthMask = ACPI_INTEGER_MAX;
+ WidthMask = ACPI_UINT64_MAX;
}
else
{