patch-2.4.6 linux/drivers/acpi/include/acinterp.h

Next file: linux/drivers/acpi/include/aclinux.h
Previous file: linux/drivers/acpi/include/achware.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/drivers/acpi/include/acinterp.h linux/drivers/acpi/include/acinterp.h
@@ -1,7 +1,7 @@
 /******************************************************************************
  *
  * Name: acinterp.h - Interpreter subcomponent prototypes and defines
- *       $Revision: 92 $
+ *       $Revision: 102 $
  *
  *****************************************************************************/
 
@@ -48,7 +48,7 @@
 
 
 ACPI_STATUS
-acpi_aml_resolve_operands (
+acpi_ex_resolve_operands (
 	u16                     opcode,
 	ACPI_OPERAND_OBJECT     **stack_ptr,
 	ACPI_WALK_STATE         *walk_state);
@@ -59,11 +59,11 @@
  */
 
 ACPI_STATUS
-acpi_aml_load_table (
+acpi_ex_load_table (
 	ACPI_TABLE_TYPE         table_id);
 
 ACPI_STATUS
-acpi_aml_execute_method (
+acpi_ex_execute_method (
 	ACPI_NAMESPACE_NODE     *method_node,
 	ACPI_OPERAND_OBJECT     **params,
 	ACPI_OPERAND_OBJECT     **return_obj_desc);
@@ -74,23 +74,23 @@
  */
 
 ACPI_STATUS
-acpi_aml_convert_to_integer (
+acpi_ex_convert_to_integer (
 	ACPI_OPERAND_OBJECT     **obj_desc,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_convert_to_buffer (
+acpi_ex_convert_to_buffer (
 	ACPI_OPERAND_OBJECT     **obj_desc,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_convert_to_string (
+acpi_ex_convert_to_string (
 	ACPI_OPERAND_OBJECT     **obj_desc,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_convert_to_target_type (
-	OBJECT_TYPE_INTERNAL    destination_type,
+acpi_ex_convert_to_target_type (
+	ACPI_OBJECT_TYPE8       destination_type,
 	ACPI_OPERAND_OBJECT     **obj_desc,
 	ACPI_WALK_STATE         *walk_state);
 
@@ -100,110 +100,164 @@
  */
 
 ACPI_STATUS
-acpi_aml_read_field (
+acpi_ex_extract_from_field (
 	ACPI_OPERAND_OBJECT     *obj_desc,
 	void                    *buffer,
-	u32                     buffer_length,
-	u32                     byte_length,
-	u32                     datum_length,
-	u32                     bit_granularity,
-	u32                     byte_granularity);
+	u32                     buffer_length);
 
 ACPI_STATUS
-acpi_aml_write_field (
+acpi_ex_insert_into_field (
 	ACPI_OPERAND_OBJECT     *obj_desc,
 	void                    *buffer,
-	u32                     buffer_length,
-	u32                     byte_length,
-	u32                     datum_length,
-	u32                     bit_granularity,
-	u32                     byte_granularity);
+	u32                     buffer_length);
 
 ACPI_STATUS
-acpi_aml_setup_field (
+acpi_ex_setup_field (
 	ACPI_OPERAND_OBJECT     *obj_desc,
-	ACPI_OPERAND_OBJECT     *rgn_desc,
-	u32                     field_bit_width);
+	u32                     field_byte_offset);
 
 ACPI_STATUS
-acpi_aml_read_field_data (
+acpi_ex_read_field_datum (
 	ACPI_OPERAND_OBJECT     *obj_desc,
 	u32                     field_byte_offset,
-	u32                     field_bit_width,
 	u32                     *value);
 
 ACPI_STATUS
-acpi_aml_access_named_field (
+acpi_ex_common_access_field (
 	u32                     mode,
-	ACPI_HANDLE             named_field,
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	void                    *buffer,
+	u32                     buffer_length);
+
+
+ACPI_STATUS
+acpi_ex_access_index_field (
+	u32                     mode,
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	void                    *buffer,
+	u32                     buffer_length);
+
+ACPI_STATUS
+acpi_ex_access_bank_field (
+	u32                     mode,
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	void                    *buffer,
+	u32                     buffer_length);
+
+ACPI_STATUS
+acpi_ex_access_region_field (
+	u32                     mode,
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	void                    *buffer,
+	u32                     buffer_length);
+
+
+ACPI_STATUS
+acpi_ex_access_buffer_field (
+	u32                     mode,
+	ACPI_OPERAND_OBJECT     *obj_desc,
 	void                    *buffer,
-	u32                     length);
+	u32                     buffer_length);
+
+ACPI_STATUS
+acpi_ex_read_data_from_field (
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	ACPI_OPERAND_OBJECT     **ret_buffer_desc);
+
+ACPI_STATUS
+acpi_ex_write_data_to_field (
+	ACPI_OPERAND_OBJECT     *source_desc,
+	ACPI_OPERAND_OBJECT     *obj_desc);
 
 /*
  * ammisc - ACPI AML (p-code) execution - specific opcodes
  */
 
 ACPI_STATUS
-acpi_aml_exec_create_field (
+acpi_ex_create_buffer_field (
 	u8                      *aml_ptr,
 	u32                     aml_length,
 	ACPI_NAMESPACE_NODE     *node,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_reconfiguration (
+acpi_ex_reconfiguration (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_fatal (
+acpi_ex_fatal (
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_index (
+acpi_ex_index (
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
 
 ACPI_STATUS
-acpi_aml_exec_match (
+acpi_ex_match (
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
 
 ACPI_STATUS
-acpi_aml_exec_create_mutex (
+acpi_ex_create_mutex (
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_create_processor (
+acpi_ex_create_processor (
 	ACPI_PARSE_OBJECT       *op,
-	ACPI_HANDLE             processor_nTE);
+	ACPI_NAMESPACE_NODE     *processor_node);
 
 ACPI_STATUS
-acpi_aml_exec_create_power_resource (
+acpi_ex_create_power_resource (
 	ACPI_PARSE_OBJECT       *op,
-	ACPI_HANDLE             processor_nTE);
+	ACPI_NAMESPACE_NODE     *power_node);
 
 ACPI_STATUS
-acpi_aml_exec_create_region (
+acpi_ex_create_region (
 	u8                      *aml_ptr,
-	u32                     acpi_aml_length,
+	u32                     aml_length,
 	u8                      region_space,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_create_event (
+acpi_ex_create_event (
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_create_alias (
+acpi_ex_create_alias (
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_create_method (
+acpi_ex_create_method (
 	u8                      *aml_ptr,
-	u32                     acpi_aml_length,
+	u32                     aml_length,
 	u32                     method_flags,
-	ACPI_HANDLE             method);
+	ACPI_NAMESPACE_NODE     *method);
+
+
+/*
+ * ammutex - mutex support
+ */
+
+ACPI_STATUS
+acpi_ex_acquire_mutex (
+	ACPI_OPERAND_OBJECT     *time_desc,
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	ACPI_WALK_STATE         *walk_state);
+
+ACPI_STATUS
+acpi_ex_release_mutex (
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	ACPI_WALK_STATE         *walk_state);
+
+ACPI_STATUS
+acpi_ex_release_all_mutexes (
+	ACPI_OPERAND_OBJECT     *mutex_list);
+
+void
+acpi_ex_unlink_mutex (
+	ACPI_OPERAND_OBJECT     *obj_desc);
 
 
 /*
@@ -211,32 +265,36 @@
  */
 
 ACPI_STATUS
-acpi_aml_prep_def_field_value (
+acpi_ex_prep_common_field_object (
+	ACPI_OPERAND_OBJECT     *obj_desc,
+	u8                      field_flags,
+	u32                     field_position,
+	u32                     field_length);
+
+ACPI_STATUS
+acpi_ex_prep_region_field_value (
 	ACPI_NAMESPACE_NODE     *node,
 	ACPI_HANDLE             region,
 	u8                      field_flags,
-	u8                      field_attribute,
 	u32                     field_position,
 	u32                     field_length);
 
 ACPI_STATUS
-acpi_aml_prep_bank_field_value (
+acpi_ex_prep_bank_field_value (
 	ACPI_NAMESPACE_NODE     *node,
-	ACPI_HANDLE             region,
-	ACPI_HANDLE             bank_reg,
+	ACPI_NAMESPACE_NODE     *region_node,
+	ACPI_NAMESPACE_NODE     *bank_register_node,
 	u32                     bank_val,
 	u8                      field_flags,
-	u8                      field_attribute,
 	u32                     field_position,
 	u32                     field_length);
 
 ACPI_STATUS
-acpi_aml_prep_index_field_value (
+acpi_ex_prep_index_field_value (
 	ACPI_NAMESPACE_NODE     *node,
-	ACPI_HANDLE             index_reg,
-	ACPI_HANDLE             data_reg,
+	ACPI_NAMESPACE_NODE     *index_reg,
+	ACPI_NAMESPACE_NODE     *data_reg,
 	u8                      field_flags,
-	u8                      field_attribute,
 	u32                     field_position,
 	u32                     field_length);
 
@@ -245,47 +303,43 @@
  * amsystem - Interface to OS services
  */
 
-u16
-acpi_aml_system_thread_id (
-	void);
-
 ACPI_STATUS
-acpi_aml_system_do_notify_op (
+acpi_ex_system_do_notify_op (
 	ACPI_OPERAND_OBJECT     *value,
 	ACPI_OPERAND_OBJECT     *obj_desc);
 
 void
-acpi_aml_system_do_suspend(
+acpi_ex_system_do_suspend(
 	u32                     time);
 
 void
-acpi_aml_system_do_stall (
+acpi_ex_system_do_stall (
 	u32                     time);
 
 ACPI_STATUS
-acpi_aml_system_acquire_mutex(
+acpi_ex_system_acquire_mutex(
 	ACPI_OPERAND_OBJECT     *time,
 	ACPI_OPERAND_OBJECT     *obj_desc);
 
 ACPI_STATUS
-acpi_aml_system_release_mutex(
+acpi_ex_system_release_mutex(
 	ACPI_OPERAND_OBJECT     *obj_desc);
 
 ACPI_STATUS
-acpi_aml_system_signal_event(
+acpi_ex_system_signal_event(
 	ACPI_OPERAND_OBJECT     *obj_desc);
 
 ACPI_STATUS
-acpi_aml_system_wait_event(
+acpi_ex_system_wait_event(
 	ACPI_OPERAND_OBJECT     *time,
 	ACPI_OPERAND_OBJECT     *obj_desc);
 
 ACPI_STATUS
-acpi_aml_system_reset_event(
+acpi_ex_system_reset_event(
 	ACPI_OPERAND_OBJECT     *obj_desc);
 
 ACPI_STATUS
-acpi_aml_system_wait_semaphore (
+acpi_ex_system_wait_semaphore (
 	ACPI_HANDLE             semaphore,
 	u32                     timeout);
 
@@ -295,18 +349,18 @@
  */
 
 ACPI_STATUS
-acpi_aml_exec_monadic1 (
+acpi_ex_monadic1 (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_monadic2 (
+acpi_ex_monadic2 (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
 
 ACPI_STATUS
-acpi_aml_exec_monadic2_r (
+acpi_ex_monadic2_r (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
@@ -317,24 +371,24 @@
  */
 
 ACPI_STATUS
-acpi_aml_exec_dyadic1 (
+acpi_ex_dyadic1 (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_exec_dyadic2 (
+acpi_ex_dyadic2 (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
 
 ACPI_STATUS
-acpi_aml_exec_dyadic2_r (
+acpi_ex_dyadic2_r (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
 
 ACPI_STATUS
-acpi_aml_exec_dyadic2_s (
+acpi_ex_dyadic2_s (
 	u16                     opcode,
 	ACPI_WALK_STATE         *walk_state,
 	ACPI_OPERAND_OBJECT     **return_desc);
@@ -345,22 +399,22 @@
  */
 
 ACPI_STATUS
-acpi_aml_resolve_to_value (
+acpi_ex_resolve_to_value (
 	ACPI_OPERAND_OBJECT     **stack_ptr,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_resolve_node_to_value (
+acpi_ex_resolve_node_to_value (
 	ACPI_NAMESPACE_NODE     **stack_ptr,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_resolve_object_to_value (
+acpi_ex_resolve_object_to_value (
 	ACPI_OPERAND_OBJECT     **stack_ptr,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_get_field_unit_value (
+acpi_ex_get_buffer_field_value (
 	ACPI_OPERAND_OBJECT     *field_desc,
 	ACPI_OPERAND_OBJECT     *result_desc);
 
@@ -370,18 +424,18 @@
  */
 
 void
-acpi_aml_show_hex_value (
+acpi_ex_show_hex_value (
 	u32                     byte_count,
 	u8                      *aml_ptr,
 	u32                     lead_space);
 
 
 ACPI_STATUS
-acpi_aml_dump_operand (
+acpi_ex_dump_operand (
 	ACPI_OPERAND_OBJECT     *entry_desc);
 
 void
-acpi_aml_dump_operands (
+acpi_ex_dump_operands (
 	ACPI_OPERAND_OBJECT     **operands,
 	OPERATING_MODE          interpreter_mode,
 	NATIVE_CHAR             *ident,
@@ -391,13 +445,13 @@
 	u32                     line_number);
 
 void
-acpi_aml_dump_object_descriptor (
+acpi_ex_dump_object_descriptor (
 	ACPI_OPERAND_OBJECT     *object,
 	u32                     flags);
 
 
 void
-acpi_aml_dump_node (
+acpi_ex_dump_node (
 	ACPI_NAMESPACE_NODE     *node,
 	u32                     flags);
 
@@ -407,28 +461,28 @@
  */
 
 NATIVE_CHAR *
-acpi_aml_allocate_name_string (
+acpi_ex_allocate_name_string (
 	u32                     prefix_count,
 	u32                     num_name_segs);
 
 u32
-acpi_aml_good_char (
+acpi_ex_good_char (
 	u32                     character);
 
 ACPI_STATUS
-acpi_aml_exec_name_segment (
+acpi_ex_name_segment (
 	u8                      **in_aml_address,
 	NATIVE_CHAR             *name_string);
 
 ACPI_STATUS
-acpi_aml_get_name_string (
-	OBJECT_TYPE_INTERNAL    data_type,
+acpi_ex_get_name_string (
+	ACPI_OBJECT_TYPE8       data_type,
 	u8                      *in_aml_address,
 	NATIVE_CHAR             **out_name_string,
 	u32                     *out_name_length);
 
 ACPI_STATUS
-acpi_aml_do_name (
+acpi_ex_do_name (
 	ACPI_OBJECT_TYPE        data_type,
 	OPERATING_MODE          load_exec_mode);
 
@@ -438,25 +492,25 @@
  */
 
 ACPI_STATUS
-acpi_aml_exec_store (
+acpi_ex_store (
 	ACPI_OPERAND_OBJECT     *val_desc,
 	ACPI_OPERAND_OBJECT     *dest_desc,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_store_object_to_index (
+acpi_ex_store_object_to_index (
 	ACPI_OPERAND_OBJECT     *val_desc,
 	ACPI_OPERAND_OBJECT     *dest_desc,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_store_object_to_node (
+acpi_ex_store_object_to_node (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_NAMESPACE_NODE     *node,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_store_object_to_object (
+acpi_ex_store_object_to_object (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_OPERAND_OBJECT     *dest_desc,
 	ACPI_WALK_STATE         *walk_state);
@@ -467,15 +521,15 @@
  */
 
 ACPI_STATUS
-acpi_aml_resolve_object (
+acpi_ex_resolve_object (
 	ACPI_OPERAND_OBJECT     **source_desc_ptr,
-	OBJECT_TYPE_INTERNAL    target_type,
+	ACPI_OBJECT_TYPE8       target_type,
 	ACPI_WALK_STATE         *walk_state);
 
 ACPI_STATUS
-acpi_aml_store_object (
+acpi_ex_store_object (
 	ACPI_OPERAND_OBJECT     *source_desc,
-	OBJECT_TYPE_INTERNAL    target_type,
+	ACPI_OBJECT_TYPE8       target_type,
 	ACPI_OPERAND_OBJECT     **target_desc_ptr,
 	ACPI_WALK_STATE         *walk_state);
 
@@ -485,32 +539,32 @@
  */
 
 ACPI_STATUS
-acpi_aml_copy_buffer_to_buffer (
+acpi_ex_copy_buffer_to_buffer (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_OPERAND_OBJECT     *target_desc);
 
 ACPI_STATUS
-acpi_aml_copy_string_to_string (
+acpi_ex_copy_string_to_string (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_OPERAND_OBJECT     *target_desc);
 
 ACPI_STATUS
-acpi_aml_copy_integer_to_index_field (
+acpi_ex_copy_integer_to_index_field (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_OPERAND_OBJECT     *target_desc);
 
 ACPI_STATUS
-acpi_aml_copy_integer_to_bank_field (
+acpi_ex_copy_integer_to_bank_field (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_OPERAND_OBJECT     *target_desc);
 
 ACPI_STATUS
-acpi_aml_copy_data_to_named_field (
+acpi_ex_copy_data_to_named_field (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_NAMESPACE_NODE     *node);
 
 ACPI_STATUS
-acpi_aml_copy_integer_to_field_unit (
+acpi_ex_copy_integer_to_buffer_field (
 	ACPI_OPERAND_OBJECT     *source_desc,
 	ACPI_OPERAND_OBJECT     *target_desc);
 
@@ -518,43 +572,43 @@
  * amutils - interpreter/scanner utilities
  */
 
-void
-acpi_aml_enter_interpreter (
+ACPI_STATUS
+acpi_ex_enter_interpreter (
 	void);
 
 void
-acpi_aml_exit_interpreter (
+acpi_ex_exit_interpreter (
 	void);
 
 void
-acpi_aml_truncate_for32bit_table (
+acpi_ex_truncate_for32bit_table (
 	ACPI_OPERAND_OBJECT     *obj_desc,
 	ACPI_WALK_STATE         *walk_state);
 
 u8
-acpi_aml_validate_object_type (
+acpi_ex_validate_object_type (
 	ACPI_OBJECT_TYPE        type);
 
 u8
-acpi_aml_acquire_global_lock (
+acpi_ex_acquire_global_lock (
 	u32                     rule);
 
 ACPI_STATUS
-acpi_aml_release_global_lock (
+acpi_ex_release_global_lock (
 	u8                      locked);
 
 u32
-acpi_aml_digits_needed (
+acpi_ex_digits_needed (
 	ACPI_INTEGER            value,
 	u32                     base);
 
 ACPI_STATUS
-acpi_aml_eisa_id_to_string (
+acpi_ex_eisa_id_to_string (
 	u32                     numeric_id,
 	NATIVE_CHAR             *out_string);
 
 ACPI_STATUS
-acpi_aml_unsigned_integer_to_string (
+acpi_ex_unsigned_integer_to_string (
 	ACPI_INTEGER            value,
 	NATIVE_CHAR             *out_string);
 
@@ -564,7 +618,7 @@
  */
 
 ACPI_STATUS
-acpi_aml_system_memory_space_handler (
+acpi_ex_system_memory_space_handler (
 	u32                     function,
 	ACPI_PHYSICAL_ADDRESS   address,
 	u32                     bit_width,
@@ -573,7 +627,7 @@
 	void                    *region_context);
 
 ACPI_STATUS
-acpi_aml_system_io_space_handler (
+acpi_ex_system_io_space_handler (
 	u32                     function,
 	ACPI_PHYSICAL_ADDRESS   address,
 	u32                     bit_width,
@@ -582,7 +636,7 @@
 	void                    *region_context);
 
 ACPI_STATUS
-acpi_aml_pci_config_space_handler (
+acpi_ex_pci_config_space_handler (
 	u32                     function,
 	ACPI_PHYSICAL_ADDRESS   address,
 	u32                     bit_width,
@@ -591,7 +645,7 @@
 	void                    *region_context);
 
 ACPI_STATUS
-acpi_aml_embedded_controller_space_handler (
+acpi_ex_embedded_controller_space_handler (
 	u32                     function,
 	ACPI_PHYSICAL_ADDRESS   address,
 	u32                     bit_width,
@@ -600,7 +654,7 @@
 	void                    *region_context);
 
 ACPI_STATUS
-acpi_aml_sm_bus_space_handler (
+acpi_ex_sm_bus_space_handler (
 	u32                     function,
 	ACPI_PHYSICAL_ADDRESS   address,
 	u32                     bit_width,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)