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.

112 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. pnppower.h
  5. Abstract:
  6. ACPI BIOS Simulator / Generic 3rd Party Operation Region Provider
  7. Pnp / Power handler module
  8. Author(s):
  9. Vincent Geglia
  10. Michael T. Murphy
  11. Chris Burgess
  12. Environment:
  13. Kernel mode
  14. Notes:
  15. Revision History:
  16. --*/
  17. #if !defined(_PNPPOWER_H_)
  18. #define _PNPPOWER_H_
  19. //
  20. // Power context structure
  21. //
  22. typedef struct _POWER_CONTEXT {
  23. PIRP SIrp;
  24. PVOID Context;
  25. } POWER_CONTEXT, *PPOWER_CONTEXT;
  26. #define POWER_CONTEXT_TAG 'misA'
  27. //
  28. // External functions
  29. //
  30. extern
  31. NTSTATUS
  32. AcpisimRegisterOpRegionHandler
  33. (
  34. IN PDEVICE_OBJECT DeviceObject
  35. );
  36. extern
  37. NTSTATUS
  38. AcpisimUnRegisterOpRegionHandler
  39. (
  40. IN PDEVICE_OBJECT DeviceObject
  41. );
  42. extern
  43. NTSTATUS
  44. AcpisimHandleIoctl
  45. (
  46. IN PDEVICE_OBJECT DeviceObject,
  47. IN PIRP Irp
  48. );
  49. //
  50. // Public function prototypes
  51. //
  52. NTSTATUS
  53. AcpisimDispatchPnp
  54. (
  55. IN PDEVICE_OBJECT DeviceObject,
  56. IN PIRP Irp
  57. );
  58. NTSTATUS
  59. AcpisimDispatchPower
  60. (
  61. IN PDEVICE_OBJECT DeviceObject,
  62. IN PIRP Irp
  63. );
  64. NTSTATUS
  65. AcpisimDispatchIoctl
  66. (
  67. IN PDEVICE_OBJECT DeviceObject,
  68. IN PIRP Irp
  69. );
  70. NTSTATUS
  71. AcpisimDispatchSystemControl
  72. (
  73. IN PDEVICE_OBJECT DeviceObject,
  74. IN PIRP Irp
  75. );
  76. NTSTATUS
  77. AcpisimCreateClose
  78. (
  79. IN PDEVICE_OBJECT DeviceObject,
  80. IN PIRP Irp
  81. );
  82. #endif // _PNPPOWER_H_