summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/rsmemory.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/rsmemory.c')
-rw-r--r--sys/contrib/dev/acpica/rsmemory.c58
1 files changed, 27 insertions, 31 deletions
diff --git a/sys/contrib/dev/acpica/rsmemory.c b/sys/contrib/dev/acpica/rsmemory.c
index d33e352..7462de4 100644
--- a/sys/contrib/dev/acpica/rsmemory.c
+++ b/sys/contrib/dev/acpica/rsmemory.c
@@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: rsmem24 - Memory resource descriptors
- * $Revision: 22 $
+ * $Revision: 24 $
*
******************************************************************************/
@@ -166,7 +166,7 @@ AcpiRsMemory24Resource (
*/
Buffer += 1;
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
Buffer += 2;
*BytesConsumed = (ACPI_SIZE) Temp16 + 3;
OutputStruct->Id = ACPI_RSTYPE_MEM24;
@@ -181,28 +181,28 @@ AcpiRsMemory24Resource (
/*
* Get MinBaseAddress (Bytes 4-5)
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
Buffer += 2;
OutputStruct->Data.Memory24.MinBaseAddress = Temp16;
/*
* Get MaxBaseAddress (Bytes 6-7)
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
Buffer += 2;
OutputStruct->Data.Memory24.MaxBaseAddress = Temp16;
/*
* Get Alignment (Bytes 8-9)
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
Buffer += 2;
OutputStruct->Data.Memory24.Alignment = Temp16;
/*
* Get RangeLength (Bytes 10-11)
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
OutputStruct->Data.Memory24.RangeLength = Temp16;
/*
@@ -258,7 +258,7 @@ AcpiRsMemory24Stream (
* The length field is static
*/
Temp16 = 0x09;
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &Temp16);
+ ACPI_MOVE_16_TO_16 (Buffer, &Temp16);
Buffer += 2;
/*
@@ -271,25 +271,25 @@ AcpiRsMemory24Stream (
/*
* Set the Range minimum base address
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &LinkedList->Data.Memory24.MinBaseAddress);
+ ACPI_MOVE_32_TO_16 (Buffer, &LinkedList->Data.Memory24.MinBaseAddress);
Buffer += 2;
/*
* Set the Range maximum base address
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &LinkedList->Data.Memory24.MaxBaseAddress);
+ ACPI_MOVE_32_TO_16 (Buffer, &LinkedList->Data.Memory24.MaxBaseAddress);
Buffer += 2;
/*
* Set the base alignment
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &LinkedList->Data.Memory24.Alignment);
+ ACPI_MOVE_32_TO_16 (Buffer, &LinkedList->Data.Memory24.Alignment);
Buffer += 2;
/*
* Set the range length
*/
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &LinkedList->Data.Memory24.RangeLength);
+ ACPI_MOVE_32_TO_16 (Buffer, &LinkedList->Data.Memory24.RangeLength);
Buffer += 2;
/*
@@ -343,7 +343,7 @@ AcpiRsMemory32RangeResource (
*/
Buffer += 1;
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
Buffer += 2;
*BytesConsumed = (ACPI_SIZE) Temp16 + 3;
@@ -370,27 +370,25 @@ AcpiRsMemory32RangeResource (
/*
* Get MinBaseAddress (Bytes 4-7)
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (&OutputStruct->Data.Memory32.MinBaseAddress,
- Buffer);
+ ACPI_MOVE_32_TO_32 (&OutputStruct->Data.Memory32.MinBaseAddress, Buffer);
Buffer += 4;
/*
* Get MaxBaseAddress (Bytes 8-11)
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (&OutputStruct->Data.Memory32.MaxBaseAddress,
- Buffer);
+ ACPI_MOVE_32_TO_32 (&OutputStruct->Data.Memory32.MaxBaseAddress, Buffer);
Buffer += 4;
/*
* Get Alignment (Bytes 12-15)
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (&OutputStruct->Data.Memory32.Alignment, Buffer);
+ ACPI_MOVE_32_TO_32 (&OutputStruct->Data.Memory32.Alignment, Buffer);
Buffer += 4;
/*
* Get RangeLength (Bytes 16-19)
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (&OutputStruct->Data.Memory32.RangeLength, Buffer);
+ ACPI_MOVE_32_TO_32 (&OutputStruct->Data.Memory32.RangeLength, Buffer);
/*
* Set the Length parameter
@@ -447,7 +445,7 @@ AcpiRsFixedMemory32Resource (
* Point past the Descriptor to get the number of bytes consumed
*/
Buffer += 1;
- ACPI_MOVE_UNALIGNED16_TO_16 (&Temp16, Buffer);
+ ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
Buffer += 2;
*BytesConsumed = (ACPI_SIZE) Temp16 + 3;
@@ -464,15 +462,13 @@ AcpiRsFixedMemory32Resource (
/*
* Get RangeBaseAddress (Bytes 4-7)
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (&OutputStruct->Data.FixedMemory32.RangeBaseAddress,
- Buffer);
+ ACPI_MOVE_32_TO_32 (&OutputStruct->Data.FixedMemory32.RangeBaseAddress, Buffer);
Buffer += 4;
/*
* Get RangeLength (Bytes 8-11)
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (&OutputStruct->Data.FixedMemory32.RangeLength,
- Buffer);
+ ACPI_MOVE_32_TO_32 (&OutputStruct->Data.FixedMemory32.RangeLength, Buffer);
/*
* Set the Length parameter
@@ -528,7 +524,7 @@ AcpiRsMemory32RangeStream (
*/
Temp16 = 0x11;
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &Temp16);
+ ACPI_MOVE_16_TO_16 (Buffer, &Temp16);
Buffer += 2;
/*
@@ -541,25 +537,25 @@ AcpiRsMemory32RangeStream (
/*
* Set the Range minimum base address
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (Buffer, &LinkedList->Data.Memory32.MinBaseAddress);
+ ACPI_MOVE_32_TO_32 (Buffer, &LinkedList->Data.Memory32.MinBaseAddress);
Buffer += 4;
/*
* Set the Range maximum base address
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (Buffer, &LinkedList->Data.Memory32.MaxBaseAddress);
+ ACPI_MOVE_32_TO_32 (Buffer, &LinkedList->Data.Memory32.MaxBaseAddress);
Buffer += 4;
/*
* Set the base alignment
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (Buffer, &LinkedList->Data.Memory32.Alignment);
+ ACPI_MOVE_32_TO_32 (Buffer, &LinkedList->Data.Memory32.Alignment);
Buffer += 4;
/*
* Set the range length
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (Buffer, &LinkedList->Data.Memory32.RangeLength);
+ ACPI_MOVE_32_TO_32 (Buffer, &LinkedList->Data.Memory32.RangeLength);
Buffer += 4;
/*
@@ -611,7 +607,7 @@ AcpiRsFixedMemory32Stream (
*/
Temp16 = 0x09;
- ACPI_MOVE_UNALIGNED16_TO_16 (Buffer, &Temp16);
+ ACPI_MOVE_16_TO_16 (Buffer, &Temp16);
Buffer += 2;
/*
@@ -624,14 +620,14 @@ AcpiRsFixedMemory32Stream (
/*
* Set the Range base address
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (Buffer,
+ ACPI_MOVE_32_TO_32 (Buffer,
&LinkedList->Data.FixedMemory32.RangeBaseAddress);
Buffer += 4;
/*
* Set the range length
*/
- ACPI_MOVE_UNALIGNED32_TO_32 (Buffer,
+ ACPI_MOVE_32_TO_32 (Buffer,
&LinkedList->Data.FixedMemory32.RangeLength);
Buffer += 4;
OpenPOWER on IntegriCloud