diff options
| author | Bob Moore <robert.moore@intel.com> | 2011-04-13 01:19:35 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2011-05-09 22:16:11 -0400 |
| commit | 82a1b7cb83b6bd7d2fe3972e847c8ccbff55cb9c (patch) | |
| tree | f257364bddd964e53746c5a93bcdb96719b23f81 | |
| parent | 945488b9c5fc3f85e3f6a3580235b5c73febc8a6 (diff) | |
ACPICA: Update internal address SpaceID for DataTable regions
Moved this internal space id in preparation for ACPI 5.0 changes
that will include some new space IDs.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
| -rw-r--r-- | drivers/acpi/acpica/acconfig.h | 2 | ||||
| -rw-r--r-- | drivers/acpi/acpica/amlcode.h | 15 | ||||
| -rw-r--r-- | drivers/acpi/acpica/dswload.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/acpica/dswload2.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/acpica/excreate.c | 3 | ||||
| -rw-r--r-- | drivers/acpi/acpica/utdecode.c | 5 | ||||
| -rw-r--r-- | include/acpi/actypes.h | 13 |
7 files changed, 19 insertions, 23 deletions
diff --git a/drivers/acpi/acpica/acconfig.h b/drivers/acpi/acpica/acconfig.h index ab87396c2c07..c115bb9bd4d3 100644 --- a/drivers/acpi/acpica/acconfig.h +++ b/drivers/acpi/acpica/acconfig.h | |||
| @@ -187,7 +187,7 @@ | |||
| 187 | 187 | ||
| 188 | /* Operation regions */ | 188 | /* Operation regions */ |
| 189 | 189 | ||
| 190 | #define ACPI_NUM_PREDEFINED_REGIONS 9 | 190 | #define ACPI_NUM_PREDEFINED_REGIONS 8 |
| 191 | #define ACPI_USER_REGION_BEGIN 0x80 | 191 | #define ACPI_USER_REGION_BEGIN 0x80 |
| 192 | 192 | ||
| 193 | /* Maximum space_ids for Operation Regions */ | 193 | /* Maximum space_ids for Operation Regions */ |
diff --git a/drivers/acpi/acpica/amlcode.h b/drivers/acpi/acpica/amlcode.h index f4f0998d3967..1077f17859ed 100644 --- a/drivers/acpi/acpica/amlcode.h +++ b/drivers/acpi/acpica/amlcode.h | |||
| @@ -394,21 +394,6 @@ | |||
| 394 | #define AML_CLASS_METHOD_CALL 0x09 | 394 | #define AML_CLASS_METHOD_CALL 0x09 |
| 395 | #define AML_CLASS_UNKNOWN 0x0A | 395 | #define AML_CLASS_UNKNOWN 0x0A |
| 396 | 396 | ||
| 397 | /* Predefined Operation Region space_iDs */ | ||
| 398 | |||
| 399 | typedef enum { | ||
| 400 | REGION_MEMORY = 0, | ||
| 401 | REGION_IO, | ||
| 402 | REGION_PCI_CONFIG, | ||
| 403 | REGION_EC, | ||
| 404 | REGION_SMBUS, | ||
| 405 | REGION_CMOS, | ||
| 406 | REGION_PCI_BAR, | ||
| 407 | REGION_IPMI, | ||
| 408 | REGION_DATA_TABLE, /* Internal use only */ | ||
| 409 | REGION_FIXED_HW = 0x7F | ||
| 410 | } AML_REGION_TYPES; | ||
| 411 | |||
| 412 | /* Comparison operation codes for match_op operator */ | 397 | /* Comparison operation codes for match_op operator */ |
| 413 | 398 | ||
| 414 | typedef enum { | 399 | typedef enum { |
diff --git a/drivers/acpi/acpica/dswload.c b/drivers/acpi/acpica/dswload.c index 23a3b1ab20c1..324acec1179a 100644 --- a/drivers/acpi/acpica/dswload.c +++ b/drivers/acpi/acpica/dswload.c | |||
| @@ -450,7 +450,7 @@ acpi_status acpi_ds_load1_end_op(struct acpi_walk_state *walk_state) | |||
| 450 | status = | 450 | status = |
| 451 | acpi_ex_create_region(op->named.data, | 451 | acpi_ex_create_region(op->named.data, |
| 452 | op->named.length, | 452 | op->named.length, |
| 453 | REGION_DATA_TABLE, | 453 | ACPI_ADR_SPACE_DATA_TABLE, |
| 454 | walk_state); | 454 | walk_state); |
| 455 | if (ACPI_FAILURE(status)) { | 455 | if (ACPI_FAILURE(status)) { |
| 456 | return_ACPI_STATUS(status); | 456 | return_ACPI_STATUS(status); |
diff --git a/drivers/acpi/acpica/dswload2.c b/drivers/acpi/acpica/dswload2.c index 4be4e921dfe1..976318138c56 100644 --- a/drivers/acpi/acpica/dswload2.c +++ b/drivers/acpi/acpica/dswload2.c | |||
| @@ -562,7 +562,7 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state) | |||
| 562 | ((op->common.value.arg)->common.value. | 562 | ((op->common.value.arg)->common.value. |
| 563 | integer); | 563 | integer); |
| 564 | } else { | 564 | } else { |
| 565 | region_space = REGION_DATA_TABLE; | 565 | region_space = ACPI_ADR_SPACE_DATA_TABLE; |
| 566 | } | 566 | } |
| 567 | 567 | ||
| 568 | /* | 568 | /* |
diff --git a/drivers/acpi/acpica/excreate.c b/drivers/acpi/acpica/excreate.c index e7b372d17667..110711afada8 100644 --- a/drivers/acpi/acpica/excreate.c +++ b/drivers/acpi/acpica/excreate.c | |||
| @@ -305,7 +305,8 @@ acpi_ex_create_region(u8 * aml_start, | |||
| 305 | * range | 305 | * range |
| 306 | */ | 306 | */ |
| 307 | if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) && | 307 | if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) && |
| 308 | (region_space < ACPI_USER_REGION_BEGIN)) { | 308 | (region_space < ACPI_USER_REGION_BEGIN) && |
| 309 | (region_space != ACPI_ADR_SPACE_DATA_TABLE)) { | ||
| 309 | ACPI_ERROR((AE_INFO, "Invalid AddressSpace type 0x%X", | 310 | ACPI_ERROR((AE_INFO, "Invalid AddressSpace type 0x%X", |
| 310 | region_space)); | 311 | region_space)); |
| 311 | return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID); | 312 | return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID); |
diff --git a/drivers/acpi/acpica/utdecode.c b/drivers/acpi/acpica/utdecode.c index 136a814cec69..97cb36f85ce9 100644 --- a/drivers/acpi/acpica/utdecode.c +++ b/drivers/acpi/acpica/utdecode.c | |||
| @@ -170,8 +170,7 @@ const char *acpi_gbl_region_types[ACPI_NUM_PREDEFINED_REGIONS] = { | |||
| 170 | "SMBus", | 170 | "SMBus", |
| 171 | "SystemCMOS", | 171 | "SystemCMOS", |
| 172 | "PCIBARTarget", | 172 | "PCIBARTarget", |
| 173 | "IPMI", | 173 | "IPMI" |
| 174 | "DataTable" | ||
| 175 | }; | 174 | }; |
| 176 | 175 | ||
| 177 | char *acpi_ut_get_region_name(u8 space_id) | 176 | char *acpi_ut_get_region_name(u8 space_id) |
| @@ -179,6 +178,8 @@ char *acpi_ut_get_region_name(u8 space_id) | |||
| 179 | 178 | ||
| 180 | if (space_id >= ACPI_USER_REGION_BEGIN) { | 179 | if (space_id >= ACPI_USER_REGION_BEGIN) { |
| 181 | return ("UserDefinedRegion"); | 180 | return ("UserDefinedRegion"); |
| 181 | } else if (space_id == ACPI_ADR_SPACE_DATA_TABLE) { | ||
| 182 | return ("DataTable"); | ||
| 182 | } else if (space_id == ACPI_ADR_SPACE_FIXED_HARDWARE) { | 183 | } else if (space_id == ACPI_ADR_SPACE_FIXED_HARDWARE) { |
| 183 | return ("FunctionalFixedHW"); | 184 | return ("FunctionalFixedHW"); |
| 184 | } else if (space_id >= ACPI_NUM_PREDEFINED_REGIONS) { | 185 | } else if (space_id >= ACPI_NUM_PREDEFINED_REGIONS) { |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 64f838beaabf..ad77c613c743 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
| @@ -712,8 +712,17 @@ typedef u8 acpi_adr_space_type; | |||
| 712 | #define ACPI_ADR_SPACE_CMOS (acpi_adr_space_type) 5 | 712 | #define ACPI_ADR_SPACE_CMOS (acpi_adr_space_type) 5 |
| 713 | #define ACPI_ADR_SPACE_PCI_BAR_TARGET (acpi_adr_space_type) 6 | 713 | #define ACPI_ADR_SPACE_PCI_BAR_TARGET (acpi_adr_space_type) 6 |
| 714 | #define ACPI_ADR_SPACE_IPMI (acpi_adr_space_type) 7 | 714 | #define ACPI_ADR_SPACE_IPMI (acpi_adr_space_type) 7 |
| 715 | #define ACPI_ADR_SPACE_DATA_TABLE (acpi_adr_space_type) 8 | 715 | |
| 716 | #define ACPI_ADR_SPACE_FIXED_HARDWARE (acpi_adr_space_type) 127 | 716 | /* |
| 717 | * Special region types | ||
| 718 | * | ||
| 719 | * Note: A Data Table region is a special type of operation region | ||
| 720 | * that has its own AML opcode. However, internally, the AML | ||
| 721 | * interpreter simply creates an operation region with an an address | ||
| 722 | * space type of ACPI_ADR_SPACE_DATA_TABLE. | ||
| 723 | */ | ||
| 724 | #define ACPI_ADR_SPACE_DATA_TABLE (acpi_adr_space_type) 0x7E /* Internal to ACPICA only */ | ||
| 725 | #define ACPI_ADR_SPACE_FIXED_HARDWARE (acpi_adr_space_type) 0x7F | ||
| 717 | 726 | ||
| 718 | /* | 727 | /* |
| 719 | * bit_register IDs | 728 | * bit_register IDs |
