uteval.c (566c1d0a49da09dfdf23e836398e2607f44c7c5e) uteval.c (a7d5caf6d21814a855422df75c2d8c093cb2019a)
1/******************************************************************************
2 *
3 * Module Name: uteval - Object evaluation
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 225 unchanged lines hidden (view full) ---

234 * FUNCTION: acpi_ut_execute_STA
235 *
236 * PARAMETERS: device_node - Node for the device
237 * flags - Where the status flags are returned
238 *
239 * RETURN: Status
240 *
241 * DESCRIPTION: Executes _STA for selected device and stores results in
1/******************************************************************************
2 *
3 * Module Name: uteval - Object evaluation
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 225 unchanged lines hidden (view full) ---

234 * FUNCTION: acpi_ut_execute_STA
235 *
236 * PARAMETERS: device_node - Node for the device
237 * flags - Where the status flags are returned
238 *
239 * RETURN: Status
240 *
241 * DESCRIPTION: Executes _STA for selected device and stores results in
242 * *Flags.
242 * *Flags. If _STA does not exist, then the device is assumed
243 * to be present/functional/enabled (as per the ACPI spec).
243 *
244 * NOTE: Internal function, no parameter validation
245 *
246 ******************************************************************************/
247
248acpi_status
249acpi_ut_execute_STA(struct acpi_namespace_node *device_node, u32 * flags)
250{
251 union acpi_operand_object *obj_desc;
252 acpi_status status;
253
254 ACPI_FUNCTION_TRACE(ut_execute_STA);
255
256 status = acpi_ut_evaluate_object(device_node, METHOD_NAME__STA,
257 ACPI_BTYPE_INTEGER, &obj_desc);
258 if (ACPI_FAILURE(status)) {
259 if (AE_NOT_FOUND == status) {
244 *
245 * NOTE: Internal function, no parameter validation
246 *
247 ******************************************************************************/
248
249acpi_status
250acpi_ut_execute_STA(struct acpi_namespace_node *device_node, u32 * flags)
251{
252 union acpi_operand_object *obj_desc;
253 acpi_status status;
254
255 ACPI_FUNCTION_TRACE(ut_execute_STA);
256
257 status = acpi_ut_evaluate_object(device_node, METHOD_NAME__STA,
258 ACPI_BTYPE_INTEGER, &obj_desc);
259 if (ACPI_FAILURE(status)) {
260 if (AE_NOT_FOUND == status) {
261 /*
262 * if _STA does not exist, then (as per the ACPI specification),
263 * the returned flags will indicate that the device is present,
264 * functional, and enabled.
265 */
260 ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
261 "_STA on %4.4s was not found, assuming device is present\n",
262 acpi_ut_get_node_name(device_node)));
263
264 *flags = ACPI_UINT32_MAX;
265 status = AE_OK;
266 }
267

--- 76 unchanged lines hidden ---
266 ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
267 "_STA on %4.4s was not found, assuming device is present\n",
268 acpi_ut_get_node_name(device_node)));
269
270 *flags = ACPI_UINT32_MAX;
271 status = AE_OK;
272 }
273

--- 76 unchanged lines hidden ---