diff options
author | Bob Moore <robert.moore@intel.com> | 2008-12-30 13:55:32 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-31 01:12:56 -0500 |
commit | ecfbbc7b46f74ca48b9f42132739114c9e70f8e4 (patch) | |
tree | 99ff958735f35d812cf25075cc19d4c0f5c0ecb1 /include/acpi/acpixf.h | |
parent | 385c4d98d851bc94ad4f351fe25fe49b70b9cf78 (diff) |
ACPICA: New: acpi_read and acpi_write public interfaces
Changed the acpi_hw_low_level_read and acpi_hw_low_level_write functions to
the public acpi_read and acpi_write to allow direct access to
ACPI registers. Removed the "width" parameter since the width
can be obtained from the input GAS structure. Updated the FADT
initialization to setup the GAS structures with the proper
widths. Some widths are still hardcoded because many FADTs have
incorrect register lengths.
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 'include/acpi/acpixf.h')
-rw-r--r-- | include/acpi/acpixf.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 6d8fb6fb35e0..030aeb556e6b 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -81,11 +81,6 @@ const char *acpi_format_exception(acpi_status exception); | |||
81 | 81 | ||
82 | acpi_status acpi_purge_cached_objects(void); | 82 | acpi_status acpi_purge_cached_objects(void); |
83 | 83 | ||
84 | #ifdef ACPI_FUTURE_USAGE | ||
85 | acpi_status | ||
86 | acpi_install_initialization_handler(acpi_init_handler handler, u32 function); | ||
87 | #endif | ||
88 | |||
89 | /* | 84 | /* |
90 | * ACPI Memory management | 85 | * ACPI Memory management |
91 | */ | 86 | */ |
@@ -195,9 +190,12 @@ acpi_status acpi_get_id(acpi_handle object, acpi_owner_id * out_type); | |||
195 | acpi_status acpi_get_parent(acpi_handle object, acpi_handle * out_handle); | 190 | acpi_status acpi_get_parent(acpi_handle object, acpi_handle * out_handle); |
196 | 191 | ||
197 | /* | 192 | /* |
198 | * Event handler interfaces | 193 | * Handler interfaces |
199 | */ | 194 | */ |
200 | acpi_status | 195 | acpi_status |
196 | acpi_install_initialization_handler(acpi_init_handler handler, u32 function); | ||
197 | |||
198 | acpi_status | ||
201 | acpi_install_fixed_event_handler(u32 acpi_event, | 199 | acpi_install_fixed_event_handler(u32 acpi_event, |
202 | acpi_event_handler handler, void *context); | 200 | acpi_event_handler handler, void *context); |
203 | 201 | ||
@@ -336,6 +334,10 @@ acpi_set_firmware_waking_vector(u32 physical_address); | |||
336 | acpi_status | 334 | acpi_status |
337 | acpi_set_firmware_waking_vector64(u64 physical_address); | 335 | acpi_set_firmware_waking_vector64(u64 physical_address); |
338 | 336 | ||
337 | acpi_status acpi_read(u32 *value, struct acpi_generic_address *reg); | ||
338 | |||
339 | acpi_status acpi_write(u32 value, struct acpi_generic_address *reg); | ||
340 | |||
339 | acpi_status | 341 | acpi_status |
340 | acpi_get_sleep_type_data(u8 sleep_state, u8 * slp_typ_a, u8 * slp_typ_b); | 342 | acpi_get_sleep_type_data(u8 sleep_state, u8 * slp_typ_a, u8 * slp_typ_b); |
341 | 343 | ||