Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. osnotify.h
  5. Abstract:
  6. This module implements all the callbacks that are NT specific from
  7. the AML Interperter
  8. Environment
  9. Kernel mode only
  10. Revision History:
  11. 01-Mar-98 Initial Revision [split from callback.h]
  12. --*/
  13. #ifndef _OSNOTIFY_H_
  14. #define _OSNOTIFY_H_
  15. typedef struct _ACPI_FATAL_ERROR_CONTEXT {
  16. WORK_QUEUE_ITEM Item;
  17. ULONG Param1;
  18. ULONG Param2;
  19. ULONG Param3;
  20. ULONG_PTR Context;
  21. } ACPI_FATAL_ERROR_CONTEXT, *PACPI_FATAL_ERROR_CONTEXT;
  22. extern ACPI_FATAL_ERROR_CONTEXT AcpiFatalContext;
  23. extern KSPIN_LOCK AcpiFatalLock;
  24. extern BOOLEAN AcpiFatalOutstanding;
  25. NTSTATUS
  26. EXPORT
  27. OSNotifyCreate(
  28. IN ULONG ObjType,
  29. IN PNSOBJ AcpiObject
  30. );
  31. NTSTATUS
  32. OSNotifyCreateDevice(
  33. IN PNSOBJ AcpiObject,
  34. IN ULONGLONG OptionalFlags
  35. );
  36. NTSTATUS
  37. OSNotifyCreateOperationRegion(
  38. IN PNSOBJ AcpiObject
  39. );
  40. NTSTATUS
  41. OSNotifyCreatePowerResource(
  42. IN PNSOBJ AcpiObject
  43. );
  44. NTSTATUS
  45. OSNotifyCreateProcessor(
  46. IN PNSOBJ AcpiObject,
  47. IN ULONGLONG OptionalFlags
  48. );
  49. NTSTATUS
  50. OSNotifyCreateThermalZone(
  51. IN PNSOBJ AcpiObject,
  52. IN ULONGLONG OptionalFlags
  53. );
  54. VOID
  55. EXPORT
  56. OSNotifyDeviceWakeCallBack(
  57. IN PNSOBJ AcpiObject,
  58. IN NTSTATUS Status,
  59. IN POBJDATA ObjectData,
  60. IN PVOID Context
  61. );
  62. NTSTATUS
  63. EXPORT
  64. OSNotifyFatalError(
  65. IN ULONG Param1,
  66. IN ULONG Param2,
  67. IN ULONG Param3,
  68. IN ULONG_PTR AmlContext,
  69. IN ULONG_PTR Context
  70. );
  71. VOID
  72. OSNotifyFatalErrorWorker(
  73. IN PVOID Context
  74. );
  75. #endif