evxface.c (77424) | evxface.c (82367) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: evxface - External interfaces for ACPI events | 1/****************************************************************************** 2 * 3 * Module Name: evxface - External interfaces for ACPI events |
4 * $Revision: 110 $ | 4 * $Revision: 111 $ |
5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. --- 172 unchanged lines hidden (view full) --- 185 /* Install the handler before enabling the event - just in case... */ 186 187 AcpiGbl_FixedEventHandlers[Event].Handler = Handler; 188 AcpiGbl_FixedEventHandlers[Event].Context = Context; 189 190 Status = AcpiEnableEvent (Event, ACPI_EVENT_FIXED); 191 if (!ACPI_SUCCESS (Status)) 192 { | 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. --- 172 unchanged lines hidden (view full) --- 185 /* Install the handler before enabling the event - just in case... */ 186 187 AcpiGbl_FixedEventHandlers[Event].Handler = Handler; 188 AcpiGbl_FixedEventHandlers[Event].Context = Context; 189 190 Status = AcpiEnableEvent (Event, ACPI_EVENT_FIXED); 191 if (!ACPI_SUCCESS (Status)) 192 { |
193 DEBUG_PRINTP (ACPI_WARN, ("Could not enable fixed event.\n")); | 193 ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "Could not enable fixed event.\n")); |
194 195 /* Remove the handler */ 196 197 AcpiGbl_FixedEventHandlers[Event].Handler = NULL; 198 AcpiGbl_FixedEventHandlers[Event].Context = NULL; 199 } 200 201 else 202 { | 194 195 /* Remove the handler */ 196 197 AcpiGbl_FixedEventHandlers[Event].Handler = NULL; 198 AcpiGbl_FixedEventHandlers[Event].Context = NULL; 199 } 200 201 else 202 { |
203 DEBUG_PRINTP (ACPI_INFO, 204 ("Enabled fixed event %X, Handler=%p\n", Event, Handler)); | 203 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, 204 "Enabled fixed event %X, Handler=%p\n", Event, Handler)); |
205 } 206 207 208Cleanup: 209 AcpiUtReleaseMutex (ACPI_MTX_EVENTS); 210 return_ACPI_STATUS (Status); 211} 212 --- 46 unchanged lines hidden (view full) --- 259 /* Always Remove the handler */ 260 261 AcpiGbl_FixedEventHandlers[Event].Handler = NULL; 262 AcpiGbl_FixedEventHandlers[Event].Context = NULL; 263 264 265 if (!ACPI_SUCCESS(Status)) 266 { | 205 } 206 207 208Cleanup: 209 AcpiUtReleaseMutex (ACPI_MTX_EVENTS); 210 return_ACPI_STATUS (Status); 211} 212 --- 46 unchanged lines hidden (view full) --- 259 /* Always Remove the handler */ 260 261 AcpiGbl_FixedEventHandlers[Event].Handler = NULL; 262 AcpiGbl_FixedEventHandlers[Event].Context = NULL; 263 264 265 if (!ACPI_SUCCESS(Status)) 266 { |
267 DEBUG_PRINTP (ACPI_WARN, 268 ("Could not write to fixed event enable register.\n")); | 267 ACPI_DEBUG_PRINT ((ACPI_DB_WARN, 268 "Could not write to fixed event enable register.\n")); |
269 } 270 271 else 272 { | 269 } 270 271 else 272 { |
273 DEBUG_PRINTP (ACPI_INFO, ("Disabled fixed event %X.\n", Event)); | 273 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Disabled fixed event %X.\n", Event)); |
274 } 275 276 AcpiUtReleaseMutex (ACPI_MTX_EVENTS); 277 return_ACPI_STATUS (Status); 278} 279 280 281/******************************************************************************* --- 238 unchanged lines hidden (view full) --- 520 } 521 522 /* 523 * Root Object: 524 * ------------ 525 */ 526 if (Device == ACPI_ROOT_OBJECT) { 527 | 274 } 275 276 AcpiUtReleaseMutex (ACPI_MTX_EVENTS); 277 return_ACPI_STATUS (Status); 278} 279 280 281/******************************************************************************* --- 238 unchanged lines hidden (view full) --- 520 } 521 522 /* 523 * Root Object: 524 * ------------ 525 */ 526 if (Device == ACPI_ROOT_OBJECT) { 527 |
528 DEBUG_PRINTP (ACPI_INFO, ("Removing notify handler for ROOT object.\n")); | 528 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Removing notify handler for ROOT object.\n")); |
529 530 if (((HandlerType == ACPI_SYSTEM_NOTIFY) && 531 !AcpiGbl_SysNotify.Handler) || 532 ((HandlerType == ACPI_DEVICE_NOTIFY) && 533 !AcpiGbl_DrvNotify.Handler)) 534 { 535 Status = AE_NOT_EXIST; 536 goto UnlockAndExit; --- 307 unchanged lines hidden --- | 529 530 if (((HandlerType == ACPI_SYSTEM_NOTIFY) && 531 !AcpiGbl_SysNotify.Handler) || 532 ((HandlerType == ACPI_DEVICE_NOTIFY) && 533 !AcpiGbl_DrvNotify.Handler)) 534 { 535 Status = AE_NOT_EXIST; 536 goto UnlockAndExit; --- 307 unchanged lines hidden --- |