diff options
Diffstat (limited to 'drivers/acpi/acpica/actables.h')
-rw-r--r-- | drivers/acpi/acpica/actables.h | 62 |
1 files changed, 49 insertions, 13 deletions
diff --git a/drivers/acpi/acpica/actables.h b/drivers/acpi/acpica/actables.h index 5fa4b2027697..f14882788eee 100644 --- a/drivers/acpi/acpica/actables.h +++ b/drivers/acpi/acpica/actables.h | |||
@@ -54,6 +54,31 @@ acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp); | |||
54 | u8 *acpi_tb_scan_memory_for_rsdp(u8 *start_address, u32 length); | 54 | u8 *acpi_tb_scan_memory_for_rsdp(u8 *start_address, u32 length); |
55 | 55 | ||
56 | /* | 56 | /* |
57 | * tbdata - table data structure management | ||
58 | */ | ||
59 | acpi_status acpi_tb_get_next_root_index(u32 *table_index); | ||
60 | |||
61 | void | ||
62 | acpi_tb_init_table_descriptor(struct acpi_table_desc *table_desc, | ||
63 | acpi_physical_address address, | ||
64 | u8 flags, struct acpi_table_header *table); | ||
65 | |||
66 | acpi_status | ||
67 | acpi_tb_acquire_temp_table(struct acpi_table_desc *table_desc, | ||
68 | acpi_physical_address address, u8 flags); | ||
69 | |||
70 | void acpi_tb_release_temp_table(struct acpi_table_desc *table_desc); | ||
71 | |||
72 | acpi_status acpi_tb_validate_temp_table(struct acpi_table_desc *table_desc); | ||
73 | |||
74 | acpi_status | ||
75 | acpi_tb_verify_temp_table(struct acpi_table_desc *table_desc, char *signature); | ||
76 | |||
77 | u8 acpi_tb_is_table_loaded(u32 table_index); | ||
78 | |||
79 | void acpi_tb_set_table_loaded_flag(u32 table_index, u8 is_loaded); | ||
80 | |||
81 | /* | ||
57 | * tbfadt - FADT parse/convert/validate | 82 | * tbfadt - FADT parse/convert/validate |
58 | */ | 83 | */ |
59 | void acpi_tb_parse_fadt(u32 table_index); | 84 | void acpi_tb_parse_fadt(u32 table_index); |
@@ -72,22 +97,32 @@ acpi_tb_find_table(char *signature, | |||
72 | */ | 97 | */ |
73 | acpi_status acpi_tb_resize_root_table_list(void); | 98 | acpi_status acpi_tb_resize_root_table_list(void); |
74 | 99 | ||
75 | acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc); | 100 | acpi_status acpi_tb_validate_table(struct acpi_table_desc *table_desc); |
101 | |||
102 | void acpi_tb_invalidate_table(struct acpi_table_desc *table_desc); | ||
103 | |||
104 | void acpi_tb_override_table(struct acpi_table_desc *old_table_desc); | ||
76 | 105 | ||
77 | struct acpi_table_header *acpi_tb_table_override(struct acpi_table_header | 106 | acpi_status |
78 | *table_header, | 107 | acpi_tb_acquire_table(struct acpi_table_desc *table_desc, |
79 | struct acpi_table_desc | 108 | struct acpi_table_header **table_ptr, |
80 | *table_desc); | 109 | u32 *table_length, u8 *table_flags); |
110 | |||
111 | void | ||
112 | acpi_tb_release_table(struct acpi_table_header *table, | ||
113 | u32 table_length, u8 table_flags); | ||
81 | 114 | ||
82 | acpi_status | 115 | acpi_status |
83 | acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index); | 116 | acpi_tb_install_standard_table(acpi_physical_address address, |
117 | u8 flags, | ||
118 | u8 reload, u8 override, u32 *table_index); | ||
84 | 119 | ||
85 | acpi_status | 120 | acpi_status |
86 | acpi_tb_store_table(acpi_physical_address address, | 121 | acpi_tb_store_table(acpi_physical_address address, |
87 | struct acpi_table_header *table, | 122 | struct acpi_table_header *table, |
88 | u32 length, u8 flags, u32 *table_index); | 123 | u32 length, u8 flags, u32 *table_index); |
89 | 124 | ||
90 | void acpi_tb_delete_table(struct acpi_table_desc *table_desc); | 125 | void acpi_tb_uninstall_table(struct acpi_table_desc *table_desc); |
91 | 126 | ||
92 | void acpi_tb_terminate(void); | 127 | void acpi_tb_terminate(void); |
93 | 128 | ||
@@ -99,10 +134,6 @@ acpi_status acpi_tb_release_owner_id(u32 table_index); | |||
99 | 134 | ||
100 | acpi_status acpi_tb_get_owner_id(u32 table_index, acpi_owner_id *owner_id); | 135 | acpi_status acpi_tb_get_owner_id(u32 table_index, acpi_owner_id *owner_id); |
101 | 136 | ||
102 | u8 acpi_tb_is_table_loaded(u32 table_index); | ||
103 | |||
104 | void acpi_tb_set_table_loaded_flag(u32 table_index, u8 is_loaded); | ||
105 | |||
106 | /* | 137 | /* |
107 | * tbutils - table manager utilities | 138 | * tbutils - table manager utilities |
108 | */ | 139 | */ |
@@ -124,8 +155,13 @@ void acpi_tb_check_dsdt_header(void); | |||
124 | struct acpi_table_header *acpi_tb_copy_dsdt(u32 table_index); | 155 | struct acpi_table_header *acpi_tb_copy_dsdt(u32 table_index); |
125 | 156 | ||
126 | void | 157 | void |
127 | acpi_tb_install_table(acpi_physical_address address, | 158 | acpi_tb_install_table_with_override(u32 table_index, |
128 | char *signature, u32 table_index); | 159 | struct acpi_table_desc *new_table_desc, |
160 | u8 override); | ||
161 | |||
162 | acpi_status | ||
163 | acpi_tb_install_fixed_table(acpi_physical_address address, | ||
164 | char *signature, u32 table_index); | ||
129 | 165 | ||
130 | acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address); | 166 | acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address); |
131 | 167 | ||