diff options
author | Bob Moore <robert.moore@intel.com> | 2012-07-11 21:40:10 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-07-17 00:05:51 -0400 |
commit | ba494beeaa69bc0fb01eb89464ad5d57d26e3901 (patch) | |
tree | 804996ccb531af38f91853bd9b8055b65cd2ac6b /drivers/acpi/acpica/utresrc.c | |
parent | 75e7386b104b27b1158bf7d13c69d5317f0033ca (diff) |
ACPICA: AcpiSrc: Fix some translation issues for Linux conversion
Fixes issues like this:
i_aSL -> iASL
00-7_f -> 00-7F
local_fADT -> local_FADT
execute_oSI -> execute_OSI
Also, in function headers, the parameters are now translated to
lower case (with underscores if necessary.)
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>
Diffstat (limited to 'drivers/acpi/acpica/utresrc.c')
-rw-r--r-- | drivers/acpi/acpica/utresrc.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/acpi/acpica/utresrc.c b/drivers/acpi/acpica/utresrc.c index 9d441ea70305..e38bef4980bc 100644 --- a/drivers/acpi/acpica/utresrc.c +++ b/drivers/acpi/acpica/utresrc.c | |||
@@ -356,13 +356,13 @@ static const u8 acpi_gbl_resource_types[] = { | |||
356 | ACPI_SMALL_VARIABLE_LENGTH, /* 06 start_dependent_functions */ | 356 | ACPI_SMALL_VARIABLE_LENGTH, /* 06 start_dependent_functions */ |
357 | ACPI_FIXED_LENGTH, /* 07 end_dependent_functions */ | 357 | ACPI_FIXED_LENGTH, /* 07 end_dependent_functions */ |
358 | ACPI_FIXED_LENGTH, /* 08 IO */ | 358 | ACPI_FIXED_LENGTH, /* 08 IO */ |
359 | ACPI_FIXED_LENGTH, /* 09 fixed_iO */ | 359 | ACPI_FIXED_LENGTH, /* 09 fixed_IO */ |
360 | ACPI_FIXED_LENGTH, /* 0_a fixed_dMA */ | 360 | ACPI_FIXED_LENGTH, /* 0A fixed_DMA */ |
361 | 0, | 361 | 0, |
362 | 0, | 362 | 0, |
363 | 0, | 363 | 0, |
364 | ACPI_VARIABLE_LENGTH, /* 0_e vendor_short */ | 364 | ACPI_VARIABLE_LENGTH, /* 0E vendor_short */ |
365 | ACPI_FIXED_LENGTH, /* 0_f end_tag */ | 365 | ACPI_FIXED_LENGTH, /* 0F end_tag */ |
366 | 366 | ||
367 | /* Large descriptors */ | 367 | /* Large descriptors */ |
368 | 368 | ||
@@ -375,16 +375,16 @@ static const u8 acpi_gbl_resource_types[] = { | |||
375 | ACPI_FIXED_LENGTH, /* 06 memory32_fixed */ | 375 | ACPI_FIXED_LENGTH, /* 06 memory32_fixed */ |
376 | ACPI_VARIABLE_LENGTH, /* 07 Dword* address */ | 376 | ACPI_VARIABLE_LENGTH, /* 07 Dword* address */ |
377 | ACPI_VARIABLE_LENGTH, /* 08 Word* address */ | 377 | ACPI_VARIABLE_LENGTH, /* 08 Word* address */ |
378 | ACPI_VARIABLE_LENGTH, /* 09 extended_iRQ */ | 378 | ACPI_VARIABLE_LENGTH, /* 09 extended_IRQ */ |
379 | ACPI_VARIABLE_LENGTH, /* 0_a Qword* address */ | 379 | ACPI_VARIABLE_LENGTH, /* 0A Qword* address */ |
380 | ACPI_FIXED_LENGTH, /* 0_b Extended* address */ | 380 | ACPI_FIXED_LENGTH, /* 0B Extended* address */ |
381 | ACPI_VARIABLE_LENGTH, /* 0_c Gpio* */ | 381 | ACPI_VARIABLE_LENGTH, /* 0C Gpio* */ |
382 | 0, | 382 | 0, |
383 | ACPI_VARIABLE_LENGTH /* 0_e *serial_bus */ | 383 | ACPI_VARIABLE_LENGTH /* 0E *serial_bus */ |
384 | }; | 384 | }; |
385 | 385 | ||
386 | /* | 386 | /* |
387 | * For the i_aSL compiler/disassembler, we don't want any error messages | 387 | * For the iASL compiler/disassembler, we don't want any error messages |
388 | * because the disassembler uses the resource validation code to determine | 388 | * because the disassembler uses the resource validation code to determine |
389 | * if Buffer objects are actually Resource Templates. | 389 | * if Buffer objects are actually Resource Templates. |
390 | */ | 390 | */ |
@@ -398,11 +398,11 @@ static const u8 acpi_gbl_resource_types[] = { | |||
398 | * | 398 | * |
399 | * FUNCTION: acpi_ut_walk_aml_resources | 399 | * FUNCTION: acpi_ut_walk_aml_resources |
400 | * | 400 | * |
401 | * PARAMETERS: Aml - Pointer to the raw AML resource template | 401 | * PARAMETERS: aml - Pointer to the raw AML resource template |
402 | * aml_length - Length of the entire template | 402 | * aml_length - Length of the entire template |
403 | * user_function - Called once for each descriptor found. If | 403 | * user_function - Called once for each descriptor found. If |
404 | * NULL, a pointer to the end_tag is returned | 404 | * NULL, a pointer to the end_tag is returned |
405 | * Context - Passed to user_function | 405 | * context - Passed to user_function |
406 | * | 406 | * |
407 | * RETURN: Status | 407 | * RETURN: Status |
408 | * | 408 | * |
@@ -513,7 +513,7 @@ acpi_ut_walk_aml_resources(u8 * aml, | |||
513 | * | 513 | * |
514 | * FUNCTION: acpi_ut_validate_resource | 514 | * FUNCTION: acpi_ut_validate_resource |
515 | * | 515 | * |
516 | * PARAMETERS: Aml - Pointer to the raw AML resource descriptor | 516 | * PARAMETERS: aml - Pointer to the raw AML resource descriptor |
517 | * return_index - Where the resource index is returned. NULL | 517 | * return_index - Where the resource index is returned. NULL |
518 | * if the index is not required. | 518 | * if the index is not required. |
519 | * | 519 | * |
@@ -664,7 +664,7 @@ acpi_status acpi_ut_validate_resource(void *aml, u8 * return_index) | |||
664 | * | 664 | * |
665 | * FUNCTION: acpi_ut_get_resource_type | 665 | * FUNCTION: acpi_ut_get_resource_type |
666 | * | 666 | * |
667 | * PARAMETERS: Aml - Pointer to the raw AML resource descriptor | 667 | * PARAMETERS: aml - Pointer to the raw AML resource descriptor |
668 | * | 668 | * |
669 | * RETURN: The Resource Type with no extraneous bits (except the | 669 | * RETURN: The Resource Type with no extraneous bits (except the |
670 | * Large/Small descriptor bit -- this is left alone) | 670 | * Large/Small descriptor bit -- this is left alone) |
@@ -698,7 +698,7 @@ u8 acpi_ut_get_resource_type(void *aml) | |||
698 | * | 698 | * |
699 | * FUNCTION: acpi_ut_get_resource_length | 699 | * FUNCTION: acpi_ut_get_resource_length |
700 | * | 700 | * |
701 | * PARAMETERS: Aml - Pointer to the raw AML resource descriptor | 701 | * PARAMETERS: aml - Pointer to the raw AML resource descriptor |
702 | * | 702 | * |
703 | * RETURN: Byte Length | 703 | * RETURN: Byte Length |
704 | * | 704 | * |
@@ -738,7 +738,7 @@ u16 acpi_ut_get_resource_length(void *aml) | |||
738 | * | 738 | * |
739 | * FUNCTION: acpi_ut_get_resource_header_length | 739 | * FUNCTION: acpi_ut_get_resource_header_length |
740 | * | 740 | * |
741 | * PARAMETERS: Aml - Pointer to the raw AML resource descriptor | 741 | * PARAMETERS: aml - Pointer to the raw AML resource descriptor |
742 | * | 742 | * |
743 | * RETURN: Length of the AML header (depends on large/small descriptor) | 743 | * RETURN: Length of the AML header (depends on large/small descriptor) |
744 | * | 744 | * |
@@ -763,7 +763,7 @@ u8 acpi_ut_get_resource_header_length(void *aml) | |||
763 | * | 763 | * |
764 | * FUNCTION: acpi_ut_get_descriptor_length | 764 | * FUNCTION: acpi_ut_get_descriptor_length |
765 | * | 765 | * |
766 | * PARAMETERS: Aml - Pointer to the raw AML resource descriptor | 766 | * PARAMETERS: aml - Pointer to the raw AML resource descriptor |
767 | * | 767 | * |
768 | * RETURN: Byte length | 768 | * RETURN: Byte length |
769 | * | 769 | * |