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.

89 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. callback.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. 04-Jun-97 Initial Revision
  12. --*/
  13. #ifndef _CALLBACK_H_
  14. #define _CALLBACK_H_
  15. extern PNSOBJ ProcessorList[];
  16. extern KSPIN_LOCK AcpiCallBackLock;
  17. extern SINGLE_LIST_ENTRY AcpiCallBackList;
  18. //
  19. // This is the structure that is used to store the information
  20. // about the callbacks that we had to queue up
  21. //
  22. typedef struct _ACPI_CALLBACK_ENTRY {
  23. //
  24. // Points to the next element in the list
  25. //
  26. SINGLE_LIST_ENTRY ListEntry;
  27. //
  28. // This is the type of event type eg: EVTYPE_OPCODE
  29. //
  30. ULONG EventType;
  31. //
  32. // This is the subtype: eg OP_DEVICE
  33. //
  34. ULONG EventData;
  35. //
  36. // The targeted NS object
  37. //
  38. PNSOBJ AcpiObject;
  39. //
  40. // Event specific information
  41. //
  42. ULONG EventParameter;
  43. //
  44. // Function to call
  45. //
  46. PFNOH CallBack;
  47. } ACPI_CALLBACK_ENTRY, *PACPI_CALLBACK_ENTRY;
  48. NTSTATUS
  49. EXPORT
  50. ACPICallBackLoad(
  51. IN ULONG EventType,
  52. IN ULONG NotifyType,
  53. IN ULONG EventData,
  54. IN PNSOBJ AcpiObject,
  55. IN ULONG EventParameter
  56. );
  57. NTSTATUS
  58. EXPORT
  59. ACPICallBackUnload(
  60. IN ULONG EventType,
  61. IN ULONG NotifyType,
  62. IN ULONG EventData,
  63. IN PNSOBJ AcpiObject,
  64. IN ULONG EventParameter
  65. );
  66. #endif