Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46367
b: refs/heads/master
c: 77389e1
h: refs/heads/master
i:
  46365: 964928f
  46363: 2c73585
  46359: f9b4462
  46351: c99b49f
  46335: 42a2349
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Feb 3, 2007
1 parent ffb7eb8 commit d06fe3e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 694b0b2092bce3f4610626b04158a6f3a95058e6
refs/heads/master: 77389e1263a7c9bc8040bda726e08b6501ba1c8b
30 changes: 25 additions & 5 deletions trunk/drivers/acpi/tables/tbxface.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,29 @@ ACPI_MODULE_NAME("tbxface")
/* Local prototypes */
static acpi_status acpi_tb_load_namespace(void);

/*******************************************************************************
*
* FUNCTION: acpi_allocate_root_table
*
* PARAMETERS: initial_table_count - Size of initial_table_array, in number of
* struct acpi_table_desc structures
*
* RETURN: Status
*
* DESCRIPTION: Allocate a root table array. Used by i_aSL compiler and
* acpi_initialize_tables.
*
******************************************************************************/

acpi_status acpi_allocate_root_table(u32 initial_table_count)
{

acpi_gbl_root_table_list.size = initial_table_count;
acpi_gbl_root_table_list.flags = ACPI_ROOT_ALLOW_RESIZE;

return (acpi_tb_resize_root_table_list());
}

/*******************************************************************************
*
* FUNCTION: acpi_initialize_tables
Expand Down Expand Up @@ -79,7 +102,7 @@ static acpi_status acpi_tb_load_namespace(void);
******************************************************************************/

acpi_status __init
acpi_initialize_tables(struct acpi_table_desc *initial_table_array,
acpi_initialize_tables(struct acpi_table_desc * initial_table_array,
u32 initial_table_count, u8 allow_resize)
{
acpi_physical_address rsdp_address;
Expand All @@ -92,10 +115,7 @@ acpi_initialize_tables(struct acpi_table_desc *initial_table_array,
* Allocate the table array if requested
*/
if (!initial_table_array) {
acpi_gbl_root_table_list.size = initial_table_count;
acpi_gbl_root_table_list.flags = ACPI_ROOT_ALLOW_RESIZE;

status = acpi_tb_resize_root_table_list();
status = acpi_allocate_root_table(initial_table_count);
if (ACPI_FAILURE(status)) {
return_ACPI_STATUS(status);
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/acpi/actables.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#ifndef __ACTABLES_H__
#define __ACTABLES_H__

acpi_status acpi_allocate_root_table(u32 initial_table_count);

/*
* tbfadt - FADT parse/convert/validate
*/
Expand Down

0 comments on commit d06fe3e

Please sign in to comment.