diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-11-27 18:07:48 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-11-27 18:07:48 +0000 |
commit | 10fb1b40ac2c40a3ce01db48e82a02380186cda2 (patch) | |
tree | 7e1248720e7c1c31fedb0a3ab46b79376d860c38 /sys/contrib/dev/acpica/exprep.c | |
parent | 2897e2728d2060055931ead3c876fadfc0eb41e0 (diff) | |
parent | 2b17a8d498a3e4598c19121ab1fad3e7ced2c699 (diff) | |
download | FreeBSD-src-10fb1b40ac2c40a3ce01db48e82a02380186cda2.zip FreeBSD-src-10fb1b40ac2c40a3ce01db48e82a02380186cda2.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r107325,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'sys/contrib/dev/acpica/exprep.c')
-rw-r--r-- | sys/contrib/dev/acpica/exprep.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/sys/contrib/dev/acpica/exprep.c b/sys/contrib/dev/acpica/exprep.c index 2aeb7eed..e9ed816 100644 --- a/sys/contrib/dev/acpica/exprep.c +++ b/sys/contrib/dev/acpica/exprep.c @@ -2,7 +2,7 @@ /****************************************************************************** * * Module Name: exprep - ACPI AML (p-code) execution - field prep utilities - * $Revision: 119 $ + * $Revision: 121 $ * *****************************************************************************/ @@ -205,28 +205,24 @@ AcpiExDecodeFieldAccess ( break; case AML_FIELD_ACCESS_BYTE: + case AML_FIELD_ACCESS_BUFFER: /* ACPI 2.0 (SMBus Buffer) */ ByteAlignment = 1; - BitLength = 8; + BitLength = 8; break; case AML_FIELD_ACCESS_WORD: ByteAlignment = 2; - BitLength = 16; + BitLength = 16; break; case AML_FIELD_ACCESS_DWORD: ByteAlignment = 4; - BitLength = 32; + BitLength = 32; break; - case AML_FIELD_ACCESS_QWORD: /* ACPI 2.0 */ + case AML_FIELD_ACCESS_QWORD: /* ACPI 2.0 */ ByteAlignment = 8; - BitLength = 64; - break; - - case AML_FIELD_ACCESS_BUFFER: /* ACPI 2.0 */ - ByteAlignment = 8; - BitLength = 8; + BitLength = 64; break; default: @@ -414,7 +410,7 @@ AcpiExPrepFieldValue ( /* Parameter validation */ - if (Info->FieldType != INTERNAL_TYPE_INDEX_FIELD) + if (Info->FieldType != ACPI_TYPE_LOCAL_INDEX_FIELD) { if (!Info->RegionNode) { @@ -456,7 +452,7 @@ AcpiExPrepFieldValue ( switch (Info->FieldType) { - case INTERNAL_TYPE_REGION_FIELD: + case ACPI_TYPE_LOCAL_REGION_FIELD: ObjDesc->Field.RegionObj = AcpiNsGetAttachedObject (Info->RegionNode); @@ -471,7 +467,7 @@ AcpiExPrepFieldValue ( break; - case INTERNAL_TYPE_BANK_FIELD: + case ACPI_TYPE_LOCAL_BANK_FIELD: ObjDesc->BankField.Value = Info->BankValue; ObjDesc->BankField.RegionObj = AcpiNsGetAttachedObject (Info->RegionNode); @@ -492,7 +488,7 @@ AcpiExPrepFieldValue ( break; - case INTERNAL_TYPE_INDEX_FIELD: + case ACPI_TYPE_LOCAL_INDEX_FIELD: ObjDesc->IndexField.IndexObj = AcpiNsGetAttachedObject (Info->RegisterNode); ObjDesc->IndexField.DataObj = AcpiNsGetAttachedObject (Info->DataRegisterNode); |