diff options
author | Bob Moore <robert.moore@intel.com> | 2005-10-21 00:00:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-12-10 00:22:54 -0500 |
commit | 0897831bb54eb36fd9e2a22da7f0f64be1b20d09 (patch) | |
tree | 8d77687ce8ebcfb62d6012d2d3c44f6a904b3c15 /drivers/pnp/pnpacpi/rsparser.c | |
parent | 50eca3eb89d73d9f0aa070b126c7ee6a616016ab (diff) |
[ACPI] ACPICA 20051021
Implemented support for the EM64T and other x86_64
processors. This essentially entails recognizing
that these processors support non-aligned memory
transfers. Previously, all 64-bit processors were assumed
to lack hardware support for non-aligned transfers.
Completed conversion of the Resource Manager to nearly
full table-driven operation. Specifically, the resource
conversion code (convert AML to internal format and the
reverse) and the debug code to dump internal resource
descriptors are fully table-driven, reducing code and data
size and improving maintainability.
The OSL interfaces for Acquire and Release Lock now use a
64-bit flag word on 64-bit processors instead of a fixed
32-bit word. (Alexey Starikovskiy)
Implemented support within the resource conversion code
for the Type-Specific byte within the various ACPI 3.0
*WordSpace macros.
Fixed some issues within the resource conversion code for
the type-specific flags for both Memory and I/O address
resource descriptors. For Memory, implemented support
for the MTP and TTP flags. For I/O, split the TRS and TTP
flags into two separate fields.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/pnpacpi/rsparser.c')
-rw-r--r-- | drivers/pnp/pnpacpi/rsparser.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c index f4adebde6155..b8b46ab54f4e 100644 --- a/drivers/pnp/pnpacpi/rsparser.c +++ b/drivers/pnp/pnpacpi/rsparser.c | |||
@@ -401,7 +401,7 @@ pnpacpi_parse_mem24_option(struct pnp_option *option, | |||
401 | mem->align = p->alignment; | 401 | mem->align = p->alignment; |
402 | mem->size = p->address_length; | 402 | mem->size = p->address_length; |
403 | 403 | ||
404 | mem->flags = (ACPI_READ_WRITE_MEMORY == p->read_write_attribute) ? | 404 | mem->flags = (ACPI_READ_WRITE_MEMORY == p->write_protect) ? |
405 | IORESOURCE_MEM_WRITEABLE : 0; | 405 | IORESOURCE_MEM_WRITEABLE : 0; |
406 | 406 | ||
407 | pnp_register_mem_resource(option,mem); | 407 | pnp_register_mem_resource(option,mem); |
@@ -424,7 +424,7 @@ pnpacpi_parse_mem32_option(struct pnp_option *option, | |||
424 | mem->align = p->alignment; | 424 | mem->align = p->alignment; |
425 | mem->size = p->address_length; | 425 | mem->size = p->address_length; |
426 | 426 | ||
427 | mem->flags = (ACPI_READ_WRITE_MEMORY == p->read_write_attribute) ? | 427 | mem->flags = (ACPI_READ_WRITE_MEMORY == p->write_protect) ? |
428 | IORESOURCE_MEM_WRITEABLE : 0; | 428 | IORESOURCE_MEM_WRITEABLE : 0; |
429 | 429 | ||
430 | pnp_register_mem_resource(option,mem); | 430 | pnp_register_mem_resource(option,mem); |
@@ -446,7 +446,7 @@ pnpacpi_parse_fixed_mem32_option(struct pnp_option *option, | |||
446 | mem->size = p->address_length; | 446 | mem->size = p->address_length; |
447 | mem->align = 0; | 447 | mem->align = 0; |
448 | 448 | ||
449 | mem->flags = (ACPI_READ_WRITE_MEMORY == p->read_write_attribute) ? | 449 | mem->flags = (ACPI_READ_WRITE_MEMORY == p->write_protect) ? |
450 | IORESOURCE_MEM_WRITEABLE : 0; | 450 | IORESOURCE_MEM_WRITEABLE : 0; |
451 | 451 | ||
452 | pnp_register_mem_resource(option,mem); | 452 | pnp_register_mem_resource(option,mem); |
@@ -734,7 +734,7 @@ static void pnpacpi_encode_mem24(struct acpi_resource *resource, | |||
734 | resource->type = ACPI_RESOURCE_TYPE_MEMORY24; | 734 | resource->type = ACPI_RESOURCE_TYPE_MEMORY24; |
735 | resource->length = sizeof(struct acpi_resource); | 735 | resource->length = sizeof(struct acpi_resource); |
736 | /* Note: pnp_assign_mem will copy pnp_mem->flags into p->flags */ | 736 | /* Note: pnp_assign_mem will copy pnp_mem->flags into p->flags */ |
737 | resource->data.memory24.read_write_attribute = | 737 | resource->data.memory24.write_protect = |
738 | (p->flags & IORESOURCE_MEM_WRITEABLE) ? | 738 | (p->flags & IORESOURCE_MEM_WRITEABLE) ? |
739 | ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; | 739 | ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; |
740 | resource->data.memory24.minimum = p->start; | 740 | resource->data.memory24.minimum = p->start; |
@@ -748,7 +748,7 @@ static void pnpacpi_encode_mem32(struct acpi_resource *resource, | |||
748 | { | 748 | { |
749 | resource->type = ACPI_RESOURCE_TYPE_MEMORY32; | 749 | resource->type = ACPI_RESOURCE_TYPE_MEMORY32; |
750 | resource->length = sizeof(struct acpi_resource); | 750 | resource->length = sizeof(struct acpi_resource); |
751 | resource->data.memory32.read_write_attribute = | 751 | resource->data.memory32.write_protect = |
752 | (p->flags & IORESOURCE_MEM_WRITEABLE) ? | 752 | (p->flags & IORESOURCE_MEM_WRITEABLE) ? |
753 | ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; | 753 | ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; |
754 | resource->data.memory32.minimum = p->start; | 754 | resource->data.memory32.minimum = p->start; |
@@ -762,7 +762,7 @@ static void pnpacpi_encode_fixed_mem32(struct acpi_resource *resource, | |||
762 | { | 762 | { |
763 | resource->type = ACPI_RESOURCE_TYPE_FIXED_MEMORY32; | 763 | resource->type = ACPI_RESOURCE_TYPE_FIXED_MEMORY32; |
764 | resource->length = sizeof(struct acpi_resource); | 764 | resource->length = sizeof(struct acpi_resource); |
765 | resource->data.fixed_memory32.read_write_attribute = | 765 | resource->data.fixed_memory32.write_protect = |
766 | (p->flags & IORESOURCE_MEM_WRITEABLE) ? | 766 | (p->flags & IORESOURCE_MEM_WRITEABLE) ? |
767 | ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; | 767 | ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; |
768 | resource->data.fixed_memory32.address = p->start; | 768 | resource->data.fixed_memory32.address = p->start; |