diff options
Diffstat (limited to 'drivers/acpi/tables/tbutils.c')
-rw-r--r-- | drivers/acpi/tables/tbutils.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c index 0cb743962faf..0874ab299784 100644 --- a/drivers/acpi/tables/tbutils.c +++ b/drivers/acpi/tables/tbutils.c | |||
@@ -54,6 +54,29 @@ acpi_tb_get_root_table_entry(u8 * table_entry, | |||
54 | 54 | ||
55 | /******************************************************************************* | 55 | /******************************************************************************* |
56 | * | 56 | * |
57 | * FUNCTION: acpi_tb_tables_loaded | ||
58 | * | ||
59 | * PARAMETERS: None | ||
60 | * | ||
61 | * RETURN: TRUE if required ACPI tables are loaded | ||
62 | * | ||
63 | * DESCRIPTION: Determine if the minimum required ACPI tables are present | ||
64 | * (FADT, FACS, DSDT) | ||
65 | * | ||
66 | ******************************************************************************/ | ||
67 | |||
68 | u8 acpi_tb_tables_loaded(void) | ||
69 | { | ||
70 | |||
71 | if (acpi_gbl_root_table_list.count >= 3) { | ||
72 | return (TRUE); | ||
73 | } | ||
74 | |||
75 | return (FALSE); | ||
76 | } | ||
77 | |||
78 | /******************************************************************************* | ||
79 | * | ||
57 | * FUNCTION: acpi_tb_print_table_header | 80 | * FUNCTION: acpi_tb_print_table_header |
58 | * | 81 | * |
59 | * PARAMETERS: Address - Table physical address | 82 | * PARAMETERS: Address - Table physical address |