diff options
author | Bob Moore <robert.moore@intel.com> | 2006-04-21 17:15:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-14 02:30:55 -0400 |
commit | b229cf92eee616c7cb5ad8cdb35a19b119f00bc8 (patch) | |
tree | 74b52bec6ec029859c2320aba227290a503af31a /drivers/acpi/hardware/hwregs.c | |
parent | 793c2388cae3fd023b3b5166354931752d42353c (diff) |
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/hardware/hwregs.c')
-rw-r--r-- | drivers/acpi/hardware/hwregs.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/acpi/hardware/hwregs.c b/drivers/acpi/hardware/hwregs.c index 3d1f41c6bfe9..ec9f5a11a8b3 100644 --- a/drivers/acpi/hardware/hwregs.c +++ b/drivers/acpi/hardware/hwregs.c | |||
@@ -66,7 +66,7 @@ acpi_status acpi_hw_clear_acpi_status(u32 flags) | |||
66 | { | 66 | { |
67 | acpi_status status; | 67 | acpi_status status; |
68 | 68 | ||
69 | ACPI_FUNCTION_TRACE("hw_clear_acpi_status"); | 69 | ACPI_FUNCTION_TRACE(hw_clear_acpi_status); |
70 | 70 | ||
71 | ACPI_DEBUG_PRINT((ACPI_DB_IO, "About to write %04X to %04X\n", | 71 | ACPI_DEBUG_PRINT((ACPI_DB_IO, "About to write %04X to %04X\n", |
72 | ACPI_BITMASK_ALL_FIXED_STATUS, | 72 | ACPI_BITMASK_ALL_FIXED_STATUS, |
@@ -130,7 +130,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 * sleep_type_a, u8 * sleep_type_b) | |||
130 | struct acpi_parameter_info info; | 130 | struct acpi_parameter_info info; |
131 | char *sleep_state_name; | 131 | char *sleep_state_name; |
132 | 132 | ||
133 | ACPI_FUNCTION_TRACE("acpi_get_sleep_type_data"); | 133 | ACPI_FUNCTION_TRACE(acpi_get_sleep_type_data); |
134 | 134 | ||
135 | /* Validate parameters */ | 135 | /* Validate parameters */ |
136 | 136 | ||
@@ -148,7 +148,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 * sleep_type_a, u8 * sleep_type_b) | |||
148 | status = acpi_ns_evaluate_by_name(sleep_state_name, &info); | 148 | status = acpi_ns_evaluate_by_name(sleep_state_name, &info); |
149 | if (ACPI_FAILURE(status)) { | 149 | if (ACPI_FAILURE(status)) { |
150 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, | 150 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, |
151 | "%s while evaluating sleep_state [%s]\n", | 151 | "%s while evaluating SleepState [%s]\n", |
152 | acpi_format_exception(status), | 152 | acpi_format_exception(status), |
153 | sleep_state_name)); | 153 | sleep_state_name)); |
154 | 154 | ||
@@ -208,7 +208,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 * sleep_type_a, u8 * sleep_type_b) | |||
208 | 208 | ||
209 | if (ACPI_FAILURE(status)) { | 209 | if (ACPI_FAILURE(status)) { |
210 | ACPI_EXCEPTION((AE_INFO, status, | 210 | ACPI_EXCEPTION((AE_INFO, status, |
211 | "While evaluating sleep_state [%s], bad Sleep object %p type %s", | 211 | "While evaluating SleepState [%s], bad Sleep object %p type %s", |
212 | sleep_state_name, info.return_object, | 212 | sleep_state_name, info.return_object, |
213 | acpi_ut_get_object_type_name(info. | 213 | acpi_ut_get_object_type_name(info. |
214 | return_object))); | 214 | return_object))); |
@@ -236,7 +236,7 @@ struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id) | |||
236 | ACPI_FUNCTION_ENTRY(); | 236 | ACPI_FUNCTION_ENTRY(); |
237 | 237 | ||
238 | if (register_id > ACPI_BITREG_MAX) { | 238 | if (register_id > ACPI_BITREG_MAX) { |
239 | ACPI_ERROR((AE_INFO, "Invalid bit_register ID: %X", | 239 | ACPI_ERROR((AE_INFO, "Invalid BitRegister ID: %X", |
240 | register_id)); | 240 | register_id)); |
241 | return (NULL); | 241 | return (NULL); |
242 | } | 242 | } |
@@ -265,7 +265,7 @@ acpi_status acpi_get_register(u32 register_id, u32 * return_value, u32 flags) | |||
265 | struct acpi_bit_register_info *bit_reg_info; | 265 | struct acpi_bit_register_info *bit_reg_info; |
266 | acpi_status status; | 266 | acpi_status status; |
267 | 267 | ||
268 | ACPI_FUNCTION_TRACE("acpi_get_register"); | 268 | ACPI_FUNCTION_TRACE(acpi_get_register); |
269 | 269 | ||
270 | /* Get the info structure corresponding to the requested ACPI Register */ | 270 | /* Get the info structure corresponding to the requested ACPI Register */ |
271 | 271 | ||
@@ -331,13 +331,13 @@ acpi_status acpi_set_register(u32 register_id, u32 value, u32 flags) | |||
331 | struct acpi_bit_register_info *bit_reg_info; | 331 | struct acpi_bit_register_info *bit_reg_info; |
332 | acpi_status status; | 332 | acpi_status status; |
333 | 333 | ||
334 | ACPI_FUNCTION_TRACE_U32("acpi_set_register", register_id); | 334 | ACPI_FUNCTION_TRACE_U32(acpi_set_register, register_id); |
335 | 335 | ||
336 | /* Get the info structure corresponding to the requested ACPI Register */ | 336 | /* Get the info structure corresponding to the requested ACPI Register */ |
337 | 337 | ||
338 | bit_reg_info = acpi_hw_get_bit_register_info(register_id); | 338 | bit_reg_info = acpi_hw_get_bit_register_info(register_id); |
339 | if (!bit_reg_info) { | 339 | if (!bit_reg_info) { |
340 | ACPI_ERROR((AE_INFO, "Bad ACPI HW register_id: %X", | 340 | ACPI_ERROR((AE_INFO, "Bad ACPI HW RegisterId: %X", |
341 | register_id)); | 341 | register_id)); |
342 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 342 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
343 | } | 343 | } |
@@ -494,7 +494,7 @@ acpi_hw_register_read(u8 use_lock, u32 register_id, u32 * return_value) | |||
494 | u32 value2 = 0; | 494 | u32 value2 = 0; |
495 | acpi_status status; | 495 | acpi_status status; |
496 | 496 | ||
497 | ACPI_FUNCTION_TRACE("hw_register_read"); | 497 | ACPI_FUNCTION_TRACE(hw_register_read); |
498 | 498 | ||
499 | if (ACPI_MTX_LOCK == use_lock) { | 499 | if (ACPI_MTX_LOCK == use_lock) { |
500 | status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE); | 500 | status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE); |
@@ -607,7 +607,7 @@ acpi_status acpi_hw_register_write(u8 use_lock, u32 register_id, u32 value) | |||
607 | { | 607 | { |
608 | acpi_status status; | 608 | acpi_status status; |
609 | 609 | ||
610 | ACPI_FUNCTION_TRACE("hw_register_write"); | 610 | ACPI_FUNCTION_TRACE(hw_register_write); |
611 | 611 | ||
612 | if (ACPI_MTX_LOCK == use_lock) { | 612 | if (ACPI_MTX_LOCK == use_lock) { |
613 | status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE); | 613 | status = acpi_ut_acquire_mutex(ACPI_MTX_HARDWARE); |
@@ -729,7 +729,7 @@ acpi_hw_low_level_read(u32 width, u32 * value, struct acpi_generic_address *reg) | |||
729 | u64 address; | 729 | u64 address; |
730 | acpi_status status; | 730 | acpi_status status; |
731 | 731 | ||
732 | ACPI_FUNCTION_NAME("hw_low_level_read"); | 732 | ACPI_FUNCTION_NAME(hw_low_level_read); |
733 | 733 | ||
734 | /* | 734 | /* |
735 | * Must have a valid pointer to a GAS structure, and | 735 | * Must have a valid pointer to a GAS structure, and |
@@ -801,7 +801,7 @@ acpi_hw_low_level_write(u32 width, u32 value, struct acpi_generic_address * reg) | |||
801 | u64 address; | 801 | u64 address; |
802 | acpi_status status; | 802 | acpi_status status; |
803 | 803 | ||
804 | ACPI_FUNCTION_NAME("hw_low_level_write"); | 804 | ACPI_FUNCTION_NAME(hw_low_level_write); |
805 | 805 | ||
806 | /* | 806 | /* |
807 | * Must have a valid pointer to a GAS structure, and | 807 | * Must have a valid pointer to a GAS structure, and |