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.

94 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. util.h
  5. Abstract:
  6. ACPI BIOS Simulator / Generic 3rd Party Operation Region Provider
  7. Utility 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(_UTIL_H_)
  18. #define _UTIL_H_
  19. //
  20. // Public function prototypes
  21. //
  22. VOID
  23. AcpisimSetDevExtFlags
  24. (
  25. IN PDEVICE_OBJECT DeviceObject,
  26. IN DEV_EXT_FLAGS Flags
  27. );
  28. VOID
  29. AcpisimClearDevExtFlags
  30. (
  31. IN PDEVICE_OBJECT DeviceObject,
  32. IN DEV_EXT_FLAGS Flags
  33. );
  34. VOID
  35. AcpisimUpdatePnpState
  36. (
  37. IN PDEVICE_OBJECT DeviceObject,
  38. IN PNP_STATE PnpState
  39. );
  40. VOID
  41. AcpisimUpdateDevicePowerState
  42. (
  43. IN PDEVICE_OBJECT DeviceObject,
  44. IN DEVICE_POWER_STATE DevicePowerState
  45. );
  46. VOID
  47. AcpisimUpdatePowerState
  48. (
  49. IN PDEVICE_OBJECT DeviceObject,
  50. IN PWR_STATE PowerState
  51. );
  52. NTSTATUS
  53. AcpisimEnableDisableDeviceInterface
  54. (
  55. IN PDEVICE_OBJECT DeviceObject,
  56. IN BOOLEAN Enable
  57. );
  58. VOID
  59. AcpisimDecrementIrpCount
  60. (
  61. PDEVICE_OBJECT DeviceObject
  62. );
  63. PDEVICE_EXTENSION
  64. AcpisimGetDeviceExtension
  65. (
  66. PDEVICE_OBJECT DeviceObject
  67. );
  68. #endif // _UTIL_H_