Deleted Added
full compact
utxface.c (71867) utxface.c (73561)
1/******************************************************************************
2 *
3 * Module Name: cmxface - External interfaces for "global" ACPI functions
1/******************************************************************************
2 *
3 * Module Name: cmxface - External interfaces for "global" ACPI functions
4 * $Revision: 62 $
4 * $Revision: 64 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

267
268 if (!(Flags & ACPI_NO_ACPI_ENABLE))
269 {
270 DEBUG_PRINT (TRACE_EXEC, ("[Init] Going into ACPI mode\n"));
271
272 Status = AcpiEnable ();
273 if (ACPI_FAILURE (Status))
274 {
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

267
268 if (!(Flags & ACPI_NO_ACPI_ENABLE))
269 {
270 DEBUG_PRINT (TRACE_EXEC, ("[Init] Going into ACPI mode\n"));
271
272 Status = AcpiEnable ();
273 if (ACPI_FAILURE (Status))
274 {
275 /* TBD: workaround. Old Lions don't enable properly */
276 DEBUG_PRINT(ACPI_WARN, ("AcpiEnable failed.\n"));
275 DEBUG_PRINT(ACPI_WARN, ("AcpiEnable failed.\n"));
277 /*return_ACPI_STATUS (Status);*/
276 return_ACPI_STATUS (Status);
278 }
279 }
280
281 /*
282 * Note:
283 * We must have the hardware AND events initialized before we can execute
284 * ANY control methods SAFELY. Any control method can require ACPI hardware
285 * support, so the hardware MUST be initialized before execution!

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

294 {
295 return_ACPI_STATUS (Status);
296 }
297 }
298
299
300 /*
301 * Initialize all device objects in the namespace
277 }
278 }
279
280 /*
281 * Note:
282 * We must have the hardware AND events initialized before we can execute
283 * ANY control methods SAFELY. Any control method can require ACPI hardware
284 * support, so the hardware MUST be initialized before execution!

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

293 {
294 return_ACPI_STATUS (Status);
295 }
296 }
297
298
299 /*
300 * Initialize all device objects in the namespace
302 * This runs the _STA, _INI, and _HID methods, and detects
303 * the PCI root bus(es)
301 * This runs the _STA and _INI methods.
304 */
305
306 if (!(Flags & ACPI_NO_DEVICE_INIT))
307 {
308 DEBUG_PRINT (TRACE_EXEC, ("[Init] Initializing ACPI Devices\n"));
309
302 */
303
304 if (!(Flags & ACPI_NO_DEVICE_INIT))
305 {
306 DEBUG_PRINT (TRACE_EXEC, ("[Init] Initializing ACPI Devices\n"));
307
310 Status = AcpiNsInitializeDevices (Flags & ACPI_NO_PCI_INIT);
308 Status = AcpiNsInitializeDevices ();
311 if (ACPI_FAILURE (Status))
312 {
313 return_ACPI_STATUS (Status);
314 }
315 }
316
317
318 /*
309 if (ACPI_FAILURE (Status))
310 {
311 return_ACPI_STATUS (Status);
312 }
313 }
314
315
316 /*
319 * Initialize the objects that remain unitialized. This
317 * Initialize the objects that remain uninitialized. This
320 * runs the executable AML that is part of the declaration of OpRegions
321 * and Fields.
322 */
323
324 if (!(Flags & ACPI_NO_OBJECT_INIT))
325 {
326 DEBUG_PRINT (TRACE_EXEC, ("[Init] Initializing ACPI Objects\n"));
327

--- 212 unchanged lines hidden ---
318 * runs the executable AML that is part of the declaration of OpRegions
319 * and Fields.
320 */
321
322 if (!(Flags & ACPI_NO_OBJECT_INIT))
323 {
324 DEBUG_PRINT (TRACE_EXEC, ("[Init] Initializing ACPI Objects\n"));
325

--- 212 unchanged lines hidden ---