Add ns_handle_to_pathname acpi function to the acpi module.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33663 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -209,6 +209,8 @@ struct acpi_module_info {
|
|||||||
acpi_object_type **_returnValue);
|
acpi_object_type **_returnValue);
|
||||||
status_t (*get_object_typed)(const char *path,
|
status_t (*get_object_typed)(const char *path,
|
||||||
acpi_object_type **_returnValue, uint32 objectType);
|
acpi_object_type **_returnValue, uint32 objectType);
|
||||||
|
status_t (*ns_handle_to_pathname)(acpi_handle targetHandle,
|
||||||
|
acpi_data *buffer);
|
||||||
|
|
||||||
/* Control method execution and data acquisition */
|
/* Control method execution and data acquisition */
|
||||||
|
|
||||||
|
|||||||
@@ -510,6 +510,14 @@ get_object_typed(const char* path, acpi_object_type** _returnValue,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
ns_handle_to_pathname(acpi_handle targetHandle, acpi_data *buffer)
|
||||||
|
{
|
||||||
|
status_t status = AcpiNsHandleToPathname(targetHandle, buffer);
|
||||||
|
return status == AE_OK ? B_OK : B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
evaluate_object(const char* object, acpi_object_type* returnValue,
|
evaluate_object(const char* object, acpi_object_type* returnValue,
|
||||||
size_t bufferLength)
|
size_t bufferLength)
|
||||||
@@ -647,6 +655,7 @@ struct acpi_module_info gACPIModule = {
|
|||||||
get_object_type,
|
get_object_type,
|
||||||
get_object,
|
get_object,
|
||||||
get_object_typed,
|
get_object_typed,
|
||||||
|
ns_handle_to_pathname,
|
||||||
evaluate_object,
|
evaluate_object,
|
||||||
evaluate_method,
|
evaluate_method,
|
||||||
prepare_sleep_state,
|
prepare_sleep_state,
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ static struct acpi_root_info sACPIRootModule = {
|
|||||||
get_object_type,
|
get_object_type,
|
||||||
get_object,
|
get_object,
|
||||||
get_object_typed,
|
get_object_typed,
|
||||||
|
ns_handle_to_pathname,
|
||||||
evaluate_object,
|
evaluate_object,
|
||||||
evaluate_method,
|
evaluate_method,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -102,6 +102,8 @@ typedef struct acpi_root_info {
|
|||||||
acpi_object_type **_returnValue);
|
acpi_object_type **_returnValue);
|
||||||
status_t (*get_object_typed)(const char *path,
|
status_t (*get_object_typed)(const char *path,
|
||||||
acpi_object_type **_returnValue, uint32 objectType);
|
acpi_object_type **_returnValue, uint32 objectType);
|
||||||
|
status_t (*ns_handle_to_pathname)(acpi_handle targetHandle,
|
||||||
|
acpi_data *buffer);
|
||||||
|
|
||||||
/* Control method execution and data acquisition */
|
/* Control method execution and data acquisition */
|
||||||
|
|
||||||
@@ -161,6 +163,7 @@ uint32 get_object_type(const char *path);
|
|||||||
status_t get_object(const char *path, acpi_object_type **return_value);
|
status_t get_object(const char *path, acpi_object_type **return_value);
|
||||||
status_t get_object_typed(const char *path, acpi_object_type **return_value,
|
status_t get_object_typed(const char *path, acpi_object_type **return_value,
|
||||||
uint32 object_type);
|
uint32 object_type);
|
||||||
|
status_t ns_handle_to_pathname(acpi_handle targetHandle, acpi_data *buffer);
|
||||||
|
|
||||||
status_t evaluate_object(const char* object, acpi_object_type *returnValue,
|
status_t evaluate_object(const char* object, acpi_object_type *returnValue,
|
||||||
size_t bufferLength);
|
size_t bufferLength);
|
||||||
|
|||||||
Reference in New Issue
Block a user