diff options
author | Bob Moore <robert.moore@intel.com> | 2008-09-28 03:26:17 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-22 23:14:49 -0400 |
commit | e8707b340fb5b6313cde784b944a568dfd770ddd (patch) | |
tree | 949c7a254309d22e962140305cc06cef2a580ad1 /include/acpi/acnamesp.h | |
parent | b9d1312ad4246e467f333dfe2ac4dc7a79608d59 (diff) |
ACPICA: New: Validation for predefined ACPI methods/objects
Validates predefined ACPI objects that appear in the namespace,
at the time they are evaluated. The argument count and the type of
the returned object are validated. The purpose of this validation
is to detect problems with the BIOS-exposed predefined ACPI objects
before the results are returned to the ACPI-related drivers.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acnamesp.h')
-rw-r--r-- | include/acpi/acnamesp.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/acpi/acnamesp.h b/include/acpi/acnamesp.h index c34008507b69..db4e6f677855 100644 --- a/include/acpi/acnamesp.h +++ b/include/acpi/acnamesp.h | |||
@@ -178,6 +178,22 @@ acpi_ns_dump_objects(acpi_object_type type, | |||
178 | acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info); | 178 | acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info); |
179 | 179 | ||
180 | /* | 180 | /* |
181 | * nspredef - Support for predefined/reserved names | ||
182 | */ | ||
183 | acpi_status | ||
184 | acpi_ns_check_predefined_names(struct acpi_namespace_node *node, | ||
185 | union acpi_operand_object *return_object); | ||
186 | |||
187 | const union acpi_predefined_info *acpi_ns_check_for_predefined_name(struct | ||
188 | acpi_namespace_node | ||
189 | *node); | ||
190 | |||
191 | void | ||
192 | acpi_ns_check_parameter_count(char *pathname, | ||
193 | struct acpi_namespace_node *node, | ||
194 | const union acpi_predefined_info *info); | ||
195 | |||
196 | /* | ||
181 | * nsnames - Name and Scope manipulation | 197 | * nsnames - Name and Scope manipulation |
182 | */ | 198 | */ |
183 | u32 acpi_ns_opens_scope(acpi_object_type type); | 199 | u32 acpi_ns_opens_scope(acpi_object_type type); |