Print this page
update to acpica-unix2-20140114
acpica-unix2-20130823
PANKOVs restructure
*** 1,14 ****
-
/******************************************************************************
*
* Module Name: exregion - ACPI default OpRegion (address space) handlers
*
*****************************************************************************/
/*
! * Copyright (C) 2000 - 2011, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
--- 1,13 ----
/******************************************************************************
*
* Module Name: exregion - ACPI default OpRegion (address space) handlers
*
*****************************************************************************/
/*
! * Copyright (C) 2000 - 2014, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*** 98,123 ****
--- 97,127 ----
/* Validate and translate the bit width */
switch (BitWidth)
{
case 8:
+
Length = 1;
break;
case 16:
+
Length = 2;
break;
case 32:
+
Length = 4;
break;
case 64:
+
Length = 8;
break;
default:
+
ACPI_ERROR ((AE_INFO, "Invalid SystemMemory width %u",
BitWidth));
return_ACPI_STATUS (AE_AML_OPERAND_VALUE);
}
*** 230,287 ****
*Value = 0;
switch (BitWidth)
{
case 8:
*Value = (UINT64) ACPI_GET8 (LogicalAddrPtr);
break;
case 16:
*Value = (UINT64) ACPI_GET16 (LogicalAddrPtr);
break;
case 32:
*Value = (UINT64) ACPI_GET32 (LogicalAddrPtr);
break;
case 64:
*Value = (UINT64) ACPI_GET64 (LogicalAddrPtr);
break;
default:
/* BitWidth was already validated */
break;
}
break;
case ACPI_WRITE:
switch (BitWidth)
{
case 8:
! ACPI_SET8 (LogicalAddrPtr) = (UINT8) *Value;
break;
case 16:
! ACPI_SET16 (LogicalAddrPtr) = (UINT16) *Value;
break;
case 32:
! ACPI_SET32 ( LogicalAddrPtr) = (UINT32) *Value;
break;
case 64:
! ACPI_SET64 (LogicalAddrPtr) = (UINT64) *Value;
break;
default:
/* BitWidth was already validated */
break;
}
break;
default:
Status = AE_BAD_PARAMETER;
break;
}
return_ACPI_STATUS (Status);
--- 234,304 ----
*Value = 0;
switch (BitWidth)
{
case 8:
+
*Value = (UINT64) ACPI_GET8 (LogicalAddrPtr);
break;
case 16:
+
*Value = (UINT64) ACPI_GET16 (LogicalAddrPtr);
break;
case 32:
+
*Value = (UINT64) ACPI_GET32 (LogicalAddrPtr);
break;
case 64:
+
*Value = (UINT64) ACPI_GET64 (LogicalAddrPtr);
break;
default:
+
/* BitWidth was already validated */
+
break;
}
break;
case ACPI_WRITE:
switch (BitWidth)
{
case 8:
!
! ACPI_SET8 (LogicalAddrPtr, *Value);
break;
case 16:
!
! ACPI_SET16 (LogicalAddrPtr, *Value);
break;
case 32:
!
! ACPI_SET32 (LogicalAddrPtr, *Value);
break;
case 64:
!
! ACPI_SET64 (LogicalAddrPtr, *Value);
break;
default:
+
/* BitWidth was already validated */
+
break;
}
break;
default:
+
Status = AE_BAD_PARAMETER;
break;
}
return_ACPI_STATUS (Status);
*** 342,351 ****
--- 359,369 ----
Status = AcpiHwWritePort ((ACPI_IO_ADDRESS) Address,
(UINT32) *Value, BitWidth);
break;
default:
+
Status = AE_BAD_PARAMETER;
break;
}
return_ACPI_STATUS (Status);
*** 559,565 ****
return_ACPI_STATUS (AE_BAD_PARAMETER);
}
return_ACPI_STATUS (AE_OK);
}
-
-
--- 577,581 ----