diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-07-13 15:15:43 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-07-13 15:15:43 -0400 |
| commit | 99ad25a313bda566a346b46a6015afa65bc0a02b (patch) | |
| tree | b9443fed1ab74f320c4ee0791864ee96d7c069df /drivers/acpi/utilities/uteval.c | |
| parent | f62c4a96f74d6c6dd56d1742697e94a5c2085e87 (diff) | |
| parent | 9a556e89081b0c1c2f83cee915363b15a68a6f2d (diff) | |
Auto merge with /home/aegl/GIT/linus
Diffstat (limited to 'drivers/acpi/utilities/uteval.c')
| -rw-r--r-- | drivers/acpi/utilities/uteval.c | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/drivers/acpi/utilities/uteval.c b/drivers/acpi/utilities/uteval.c index ead27d2c4d18..00046dd5d925 100644 --- a/drivers/acpi/utilities/uteval.c +++ b/drivers/acpi/utilities/uteval.c | |||
| @@ -50,6 +50,19 @@ | |||
| 50 | #define _COMPONENT ACPI_UTILITIES | 50 | #define _COMPONENT ACPI_UTILITIES |
| 51 | ACPI_MODULE_NAME ("uteval") | 51 | ACPI_MODULE_NAME ("uteval") |
| 52 | 52 | ||
| 53 | /* Local prototypes */ | ||
| 54 | |||
| 55 | static void | ||
| 56 | acpi_ut_copy_id_string ( | ||
| 57 | char *destination, | ||
| 58 | char *source, | ||
| 59 | acpi_size max_length); | ||
| 60 | |||
| 61 | static acpi_status | ||
| 62 | acpi_ut_translate_one_cid ( | ||
| 63 | union acpi_operand_object *obj_desc, | ||
| 64 | struct acpi_compatible_id *one_cid); | ||
| 65 | |||
| 53 | 66 | ||
| 54 | /******************************************************************************* | 67 | /******************************************************************************* |
| 55 | * | 68 | * |
| @@ -237,9 +250,9 @@ acpi_ut_evaluate_object ( | |||
| 237 | * | 250 | * |
| 238 | * FUNCTION: acpi_ut_evaluate_numeric_object | 251 | * FUNCTION: acpi_ut_evaluate_numeric_object |
| 239 | * | 252 | * |
| 240 | * PARAMETERS: *object_name - Object name to be evaluated | 253 | * PARAMETERS: object_name - Object name to be evaluated |
| 241 | * device_node - Node for the device | 254 | * device_node - Node for the device |
| 242 | * *Address - Where the value is returned | 255 | * Address - Where the value is returned |
| 243 | * | 256 | * |
| 244 | * RETURN: Status | 257 | * RETURN: Status |
| 245 | * | 258 | * |
| @@ -303,7 +316,6 @@ acpi_ut_copy_id_string ( | |||
| 303 | acpi_size max_length) | 316 | acpi_size max_length) |
| 304 | { | 317 | { |
| 305 | 318 | ||
| 306 | |||
| 307 | /* | 319 | /* |
| 308 | * Workaround for ID strings that have a leading asterisk. This construct | 320 | * Workaround for ID strings that have a leading asterisk. This construct |
| 309 | * is not allowed by the ACPI specification (ID strings must be | 321 | * is not allowed by the ACPI specification (ID strings must be |
| @@ -325,7 +337,7 @@ acpi_ut_copy_id_string ( | |||
| 325 | * FUNCTION: acpi_ut_execute_HID | 337 | * FUNCTION: acpi_ut_execute_HID |
| 326 | * | 338 | * |
| 327 | * PARAMETERS: device_node - Node for the device | 339 | * PARAMETERS: device_node - Node for the device |
| 328 | * *Hid - Where the HID is returned | 340 | * Hid - Where the HID is returned |
| 329 | * | 341 | * |
| 330 | * RETURN: Status | 342 | * RETURN: Status |
| 331 | * | 343 | * |
| @@ -429,7 +441,7 @@ acpi_ut_translate_one_cid ( | |||
| 429 | * FUNCTION: acpi_ut_execute_CID | 441 | * FUNCTION: acpi_ut_execute_CID |
| 430 | * | 442 | * |
| 431 | * PARAMETERS: device_node - Node for the device | 443 | * PARAMETERS: device_node - Node for the device |
| 432 | * *Cid - Where the CID is returned | 444 | * return_cid_list - Where the CID list is returned |
| 433 | * | 445 | * |
| 434 | * RETURN: Status | 446 | * RETURN: Status |
| 435 | * | 447 | * |
| @@ -488,10 +500,10 @@ acpi_ut_execute_CID ( | |||
| 488 | cid_list->size = size; | 500 | cid_list->size = size; |
| 489 | 501 | ||
| 490 | /* | 502 | /* |
| 491 | * A _CID can return either a single compatible ID or a package of compatible | 503 | * A _CID can return either a single compatible ID or a package of |
| 492 | * IDs. Each compatible ID can be one of the following: | 504 | * compatible IDs. Each compatible ID can be one of the following: |
| 493 | * -- Number (32 bit compressed EISA ID) or | 505 | * 1) Integer (32 bit compressed EISA ID) or |
| 494 | * -- String (PCI ID format, e.g. "PCI\VEN_vvvv&DEV_dddd&SUBSYS_ssssssss"). | 506 | * 2) String (PCI ID format, e.g. "PCI\VEN_vvvv&DEV_dddd&SUBSYS_ssssssss") |
| 495 | */ | 507 | */ |
| 496 | 508 | ||
| 497 | /* The _CID object can be either a single CID or a package (list) of CIDs */ | 509 | /* The _CID object can be either a single CID or a package (list) of CIDs */ |
| @@ -534,7 +546,7 @@ acpi_ut_execute_CID ( | |||
| 534 | * FUNCTION: acpi_ut_execute_UID | 546 | * FUNCTION: acpi_ut_execute_UID |
| 535 | * | 547 | * |
| 536 | * PARAMETERS: device_node - Node for the device | 548 | * PARAMETERS: device_node - Node for the device |
| 537 | * *Uid - Where the UID is returned | 549 | * Uid - Where the UID is returned |
| 538 | * | 550 | * |
| 539 | * RETURN: Status | 551 | * RETURN: Status |
| 540 | * | 552 | * |
| @@ -587,7 +599,7 @@ acpi_ut_execute_UID ( | |||
| 587 | * FUNCTION: acpi_ut_execute_STA | 599 | * FUNCTION: acpi_ut_execute_STA |
| 588 | * | 600 | * |
| 589 | * PARAMETERS: device_node - Node for the device | 601 | * PARAMETERS: device_node - Node for the device |
| 590 | * *Flags - Where the status flags are returned | 602 | * Flags - Where the status flags are returned |
| 591 | * | 603 | * |
| 592 | * RETURN: Status | 604 | * RETURN: Status |
| 593 | * | 605 | * |
| @@ -641,7 +653,7 @@ acpi_ut_execute_STA ( | |||
| 641 | * FUNCTION: acpi_ut_execute_Sxds | 653 | * FUNCTION: acpi_ut_execute_Sxds |
| 642 | * | 654 | * |
| 643 | * PARAMETERS: device_node - Node for the device | 655 | * PARAMETERS: device_node - Node for the device |
| 644 | * *Flags - Where the status flags are returned | 656 | * Flags - Where the status flags are returned |
| 645 | * | 657 | * |
| 646 | * RETURN: Status | 658 | * RETURN: Status |
| 647 | * | 659 | * |
