diff options
Diffstat (limited to 'tools/power/acpi/os_specific/service_layers/oslinuxtbl.c')
-rw-r--r-- | tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c b/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c index 587b701a7edb..2686d858225a 100644 --- a/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c +++ b/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | |||
@@ -293,7 +293,7 @@ static acpi_status osl_add_table_to_list(char *signature, u32 instance) | |||
293 | } else { | 293 | } else { |
294 | next = gbl_table_list_head; | 294 | next = gbl_table_list_head; |
295 | while (1) { | 295 | while (1) { |
296 | if (ACPI_COMPARE_NAME(next->signature, signature)) { | 296 | if (ACPI_COMPARE_NAMESEG(next->signature, signature)) { |
297 | if (next->instance == instance) { | 297 | if (next->instance == instance) { |
298 | found = TRUE; | 298 | found = TRUE; |
299 | } | 299 | } |
@@ -782,11 +782,11 @@ osl_get_bios_table(char *signature, | |||
782 | 782 | ||
783 | /* Handle special tables whose addresses are not in RSDT/XSDT */ | 783 | /* Handle special tables whose addresses are not in RSDT/XSDT */ |
784 | 784 | ||
785 | if (ACPI_COMPARE_NAME(signature, ACPI_RSDP_NAME) || | 785 | if (ACPI_COMPARE_NAMESEG(signature, ACPI_RSDP_NAME) || |
786 | ACPI_COMPARE_NAME(signature, ACPI_SIG_RSDT) || | 786 | ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_RSDT) || |
787 | ACPI_COMPARE_NAME(signature, ACPI_SIG_XSDT) || | 787 | ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_XSDT) || |
788 | ACPI_COMPARE_NAME(signature, ACPI_SIG_DSDT) || | 788 | ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_DSDT) || |
789 | ACPI_COMPARE_NAME(signature, ACPI_SIG_FACS)) { | 789 | ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_FACS)) { |
790 | 790 | ||
791 | find_next_instance: | 791 | find_next_instance: |
792 | 792 | ||
@@ -797,7 +797,7 @@ find_next_instance: | |||
797 | * careful about the FADT length and validate table addresses. | 797 | * careful about the FADT length and validate table addresses. |
798 | * Note: The 64-bit addresses have priority. | 798 | * Note: The 64-bit addresses have priority. |
799 | */ | 799 | */ |
800 | if (ACPI_COMPARE_NAME(signature, ACPI_SIG_DSDT)) { | 800 | if (ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_DSDT)) { |
801 | if (current_instance < 2) { | 801 | if (current_instance < 2) { |
802 | if ((gbl_fadt->header.length >= | 802 | if ((gbl_fadt->header.length >= |
803 | MIN_FADT_FOR_XDSDT) && gbl_fadt->Xdsdt | 803 | MIN_FADT_FOR_XDSDT) && gbl_fadt->Xdsdt |
@@ -815,7 +815,7 @@ find_next_instance: | |||
815 | dsdt; | 815 | dsdt; |
816 | } | 816 | } |
817 | } | 817 | } |
818 | } else if (ACPI_COMPARE_NAME(signature, ACPI_SIG_FACS)) { | 818 | } else if (ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_FACS)) { |
819 | if (current_instance < 2) { | 819 | if (current_instance < 2) { |
820 | if ((gbl_fadt->header.length >= | 820 | if ((gbl_fadt->header.length >= |
821 | MIN_FADT_FOR_XFACS) && gbl_fadt->Xfacs | 821 | MIN_FADT_FOR_XFACS) && gbl_fadt->Xfacs |
@@ -833,7 +833,7 @@ find_next_instance: | |||
833 | facs; | 833 | facs; |
834 | } | 834 | } |
835 | } | 835 | } |
836 | } else if (ACPI_COMPARE_NAME(signature, ACPI_SIG_XSDT)) { | 836 | } else if (ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_XSDT)) { |
837 | if (!gbl_revision) { | 837 | if (!gbl_revision) { |
838 | return (AE_BAD_SIGNATURE); | 838 | return (AE_BAD_SIGNATURE); |
839 | } | 839 | } |
@@ -842,7 +842,7 @@ find_next_instance: | |||
842 | (acpi_physical_address)gbl_rsdp. | 842 | (acpi_physical_address)gbl_rsdp. |
843 | xsdt_physical_address; | 843 | xsdt_physical_address; |
844 | } | 844 | } |
845 | } else if (ACPI_COMPARE_NAME(signature, ACPI_SIG_RSDT)) { | 845 | } else if (ACPI_COMPARE_NAMESEG(signature, ACPI_SIG_RSDT)) { |
846 | if (current_instance == 0) { | 846 | if (current_instance == 0) { |
847 | table_address = | 847 | table_address = |
848 | (acpi_physical_address)gbl_rsdp. | 848 | (acpi_physical_address)gbl_rsdp. |
@@ -931,7 +931,7 @@ find_next_instance: | |||
931 | 931 | ||
932 | /* Does this table match the requested signature? */ | 932 | /* Does this table match the requested signature? */ |
933 | 933 | ||
934 | if (!ACPI_COMPARE_NAME | 934 | if (!ACPI_COMPARE_NAMESEG |
935 | (mapped_table->signature, signature)) { | 935 | (mapped_table->signature, signature)) { |
936 | osl_unmap_table(mapped_table); | 936 | osl_unmap_table(mapped_table); |
937 | mapped_table = NULL; | 937 | mapped_table = NULL; |
@@ -1086,8 +1086,8 @@ osl_map_table(acpi_size address, | |||
1086 | return (AE_BAD_SIGNATURE); | 1086 | return (AE_BAD_SIGNATURE); |
1087 | } | 1087 | } |
1088 | } else | 1088 | } else |
1089 | if (!ACPI_COMPARE_NAME(signature, mapped_table->signature)) | 1089 | if (!ACPI_COMPARE_NAMESEG |
1090 | { | 1090 | (signature, mapped_table->signature)) { |
1091 | acpi_os_unmap_memory(mapped_table, | 1091 | acpi_os_unmap_memory(mapped_table, |
1092 | sizeof(struct acpi_table_header)); | 1092 | sizeof(struct acpi_table_header)); |
1093 | return (AE_BAD_SIGNATURE); | 1093 | return (AE_BAD_SIGNATURE); |
@@ -1236,7 +1236,7 @@ osl_read_table_from_file(char *filename, | |||
1236 | status = AE_BAD_SIGNATURE; | 1236 | status = AE_BAD_SIGNATURE; |
1237 | goto exit; | 1237 | goto exit; |
1238 | } | 1238 | } |
1239 | } else if (!ACPI_COMPARE_NAME(signature, header.signature)) { | 1239 | } else if (!ACPI_COMPARE_NAMESEG(signature, header.signature)) { |
1240 | fprintf(stderr, | 1240 | fprintf(stderr, |
1241 | "Incorrect signature: Expecting %4.4s, found %4.4s\n", | 1241 | "Incorrect signature: Expecting %4.4s, found %4.4s\n", |
1242 | signature, header.signature); | 1242 | signature, header.signature); |
@@ -1329,7 +1329,7 @@ osl_get_customized_table(char *pathname, | |||
1329 | 1329 | ||
1330 | /* Ignore meaningless files */ | 1330 | /* Ignore meaningless files */ |
1331 | 1331 | ||
1332 | if (!ACPI_COMPARE_NAME(filename, signature)) { | 1332 | if (!ACPI_COMPARE_NAMESEG(filename, signature)) { |
1333 | continue; | 1333 | continue; |
1334 | } | 1334 | } |
1335 | 1335 | ||