Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
5b7b4119
Commit
5b7b4119
authored
Dec 20, 2006
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull sgi into test branch
parents
9774f338
0f0fe1a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
3 deletions
+102
-3
drivers/acpi/namespace/nsxfobj.c
drivers/acpi/namespace/nsxfobj.c
+44
-0
drivers/acpi/tables/tbxface.c
drivers/acpi/tables/tbxface.c
+53
-1
include/acpi/acpixf.h
include/acpi/acpixf.h
+5
-2
No files found.
drivers/acpi/namespace/nsxfobj.c
View file @
5b7b4119
...
@@ -48,6 +48,50 @@
...
@@ -48,6 +48,50 @@
#define _COMPONENT ACPI_NAMESPACE
#define _COMPONENT ACPI_NAMESPACE
ACPI_MODULE_NAME
(
"nsxfobj"
)
ACPI_MODULE_NAME
(
"nsxfobj"
)
/*******************************************************************************
*
* FUNCTION: acpi_get_id
*
* PARAMETERS: Handle - Handle of object whose id is desired
* ret_id - Where the id will be placed
*
* RETURN: Status
*
* DESCRIPTION: This routine returns the owner id associated with a handle
*
******************************************************************************/
acpi_status
acpi_get_id
(
acpi_handle
handle
,
acpi_owner_id
*
ret_id
)
{
struct
acpi_namespace_node
*
node
;
acpi_status
status
;
/* Parameter Validation */
if
(
!
ret_id
)
{
return
(
AE_BAD_PARAMETER
);
}
status
=
acpi_ut_acquire_mutex
(
ACPI_MTX_NAMESPACE
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
status
);
}
/* Convert and validate the handle */
node
=
acpi_ns_map_handle_to_node
(
handle
);
if
(
!
node
)
{
(
void
)
acpi_ut_release_mutex
(
ACPI_MTX_NAMESPACE
);
return
(
AE_BAD_PARAMETER
);
}
*
ret_id
=
node
->
owner_id
;
status
=
acpi_ut_release_mutex
(
ACPI_MTX_NAMESPACE
);
return
(
status
);
}
ACPI_EXPORT_SYMBOL
(
acpi_get_id
)
/*******************************************************************************
/*******************************************************************************
*
*
* FUNCTION: acpi_get_type
* FUNCTION: acpi_get_type
...
...
drivers/acpi/tables/tbxface.c
View file @
5b7b4119
...
@@ -123,7 +123,6 @@ acpi_status acpi_load_tables(void)
...
@@ -123,7 +123,6 @@ acpi_status acpi_load_tables(void)
ACPI_EXPORT_SYMBOL
(
acpi_load_tables
)
ACPI_EXPORT_SYMBOL
(
acpi_load_tables
)
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
/*******************************************************************************
*
*
* FUNCTION: acpi_load_table
* FUNCTION: acpi_load_table
...
@@ -219,6 +218,59 @@ acpi_status acpi_load_table(struct acpi_table_header *table_ptr)
...
@@ -219,6 +218,59 @@ acpi_status acpi_load_table(struct acpi_table_header *table_ptr)
ACPI_EXPORT_SYMBOL
(
acpi_load_table
)
ACPI_EXPORT_SYMBOL
(
acpi_load_table
)
/*******************************************************************************
*
* FUNCTION: acpi_unload_table_id
*
* PARAMETERS: table_type - Type of table to be unloaded
* id - Owner ID of the table to be removed.
*
* RETURN: Status
*
* DESCRIPTION: This routine is used to force the unload of a table (by id)
*
******************************************************************************/
acpi_status
acpi_unload_table_id
(
acpi_table_type
table_type
,
acpi_owner_id
id
)
{
struct
acpi_table_desc
*
table_desc
;
acpi_status
status
;
ACPI_FUNCTION_TRACE
(
acpi_unload_table
);
/* Parameter validation */
if
(
table_type
>
ACPI_TABLE_ID_MAX
)
return_ACPI_STATUS
(
AE_BAD_PARAMETER
);
/* Find table from the requested type list */
table_desc
=
acpi_gbl_table_lists
[
table_type
].
next
;
while
(
table_desc
&&
table_desc
->
owner_id
!=
id
)
table_desc
=
table_desc
->
next
;
if
(
!
table_desc
)
return_ACPI_STATUS
(
AE_NOT_EXIST
);
/*
* Delete all namespace objects owned by this table. Note that these
* objects can appear anywhere in the namespace by virtue of the AML
* "Scope" operator. Thus, we need to track ownership by an ID, not
* simply a position within the hierarchy
*/
acpi_ns_delete_namespace_by_owner
(
table_desc
->
owner_id
);
status
=
acpi_ut_acquire_mutex
(
ACPI_MTX_TABLES
);
if
(
ACPI_FAILURE
(
status
))
return_ACPI_STATUS
(
status
);
(
void
)
acpi_tb_uninstall_table
(
table_desc
);
(
void
)
acpi_ut_release_mutex
(
ACPI_MTX_TABLES
);
return_ACPI_STATUS
(
AE_OK
);
}
ACPI_EXPORT_SYMBOL
(
acpi_unload_table_id
)
#ifdef ACPI_FUTURE_USAGE
/*******************************************************************************
/*******************************************************************************
*
*
* FUNCTION: acpi_unload_table
* FUNCTION: acpi_unload_table
...
...
include/acpi/acpixf.h
View file @
5b7b4119
...
@@ -97,11 +97,12 @@ acpi_find_root_pointer(u32 flags, struct acpi_pointer *rsdp_address);
...
@@ -97,11 +97,12 @@ acpi_find_root_pointer(u32 flags, struct acpi_pointer *rsdp_address);
acpi_status
acpi_load_tables
(
void
);
acpi_status
acpi_load_tables
(
void
);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_load_table
(
struct
acpi_table_header
*
table_ptr
);
acpi_status
acpi_load_table
(
struct
acpi_table_header
*
table_ptr
);
acpi_status
acpi_unload_table
(
acpi_table_type
table_type
);
acpi_status
acpi_unload_table
_id
(
acpi_table_type
table_type
,
acpi_owner_id
id
);
#ifdef ACPI_FUTURE_USAGE
acpi_status
acpi_unload_table
(
acpi_table_type
table_type
);
acpi_status
acpi_status
acpi_get_table_header
(
acpi_table_type
table_type
,
acpi_get_table_header
(
acpi_table_type
table_type
,
u32
instance
,
struct
acpi_table_header
*
out_table_header
);
u32
instance
,
struct
acpi_table_header
*
out_table_header
);
...
@@ -180,6 +181,8 @@ acpi_get_next_object(acpi_object_type type,
...
@@ -180,6 +181,8 @@ acpi_get_next_object(acpi_object_type type,
acpi_status
acpi_get_type
(
acpi_handle
object
,
acpi_object_type
*
out_type
);
acpi_status
acpi_get_type
(
acpi_handle
object
,
acpi_object_type
*
out_type
);
acpi_status
acpi_get_id
(
acpi_handle
object
,
acpi_owner_id
*
out_type
);
acpi_status
acpi_get_parent
(
acpi_handle
object
,
acpi_handle
*
out_handle
);
acpi_status
acpi_get_parent
(
acpi_handle
object
,
acpi_handle
*
out_handle
);
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment