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.

125 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. internal.h
  5. Abstract:
  6. This file contains the headers for internal.c
  7. Author:
  8. Stephane Plante (splante)
  9. Environment:
  10. NT Kernel Model Driver only
  11. Revision History:
  12. 29-Sep-97: Added Support for moving PowerRequest lists around
  13. --*/
  14. #ifndef _INTERNAL_H_
  15. #define _INTERNAL_H_
  16. extern KSPIN_LOCK AcpiUpdateFlagsLock;
  17. extern UCHAR FirstSetLeftBit[];
  18. extern UCHAR HexDigit[];
  19. BOOLEAN
  20. ACPIInternalConvertToNumber(
  21. IN UCHAR ValueLow,
  22. IN UCHAR ValueHigh,
  23. IN PULONG Output
  24. );
  25. VOID
  26. ACPIInternalDecrementIrpReferenceCount(
  27. IN PDEVICE_EXTENSION DeviceExtension
  28. );
  29. NTSTATUS
  30. ACPIInternalGetDeviceCapabilities(
  31. IN PDEVICE_OBJECT DeviceObject,
  32. IN PDEVICE_CAPABILITIES DeviceCapabilities
  33. );
  34. PDEVICE_EXTENSION
  35. ACPIInternalGetDeviceExtension(
  36. IN PDEVICE_OBJECT DeviceObject
  37. );
  38. NTSTATUS
  39. ACPIInternalGetDispatchTable(
  40. IN PDEVICE_OBJECT DeviceObject,
  41. OUT PDEVICE_EXTENSION *DeviceExtension,
  42. OUT PIRP_DISPATCH_TABLE *DispatchTable
  43. );
  44. NTSTATUS
  45. ACPIInternalGrowBuffer(
  46. IN OUT PVOID *Buffer,
  47. IN ULONG OriginalSize,
  48. IN ULONG NewSize
  49. );
  50. NTSTATUS
  51. ACPIInternalIsPci(
  52. IN PDEVICE_OBJECT DeviceObject
  53. );
  54. BOOLEAN
  55. ACPIInternalIsReportedMissing(
  56. IN PDEVICE_EXTENSION DeviceExtension
  57. );
  58. VOID
  59. ACPIInternalMoveList(
  60. IN PLIST_ENTRY FromList,
  61. IN PLIST_ENTRY ToList
  62. );
  63. VOID
  64. ACPIInternalMovePowerList(
  65. IN PLIST_ENTRY FromList,
  66. IN PLIST_ENTRY ToList
  67. );
  68. NTSTATUS
  69. ACPIInternalRegisterPowerCallBack(
  70. IN PDEVICE_EXTENSION DeviceExtension,
  71. IN PCALLBACK_FUNCTION CallBackFunction
  72. );
  73. NTSTATUS
  74. ACPIInternalSendSynchronousIrp(
  75. IN PDEVICE_OBJECT DeviceObject,
  76. IN PIO_STACK_LOCATION TopStackLocation,
  77. OUT PVOID *Information
  78. );
  79. NTSTATUS
  80. ACPIInternalSetDeviceInterface(
  81. IN PDEVICE_OBJECT DeviceObject,
  82. IN LPGUID InterfaceGuid
  83. );
  84. VOID
  85. ACPIInternalUpdateDeviceStatus(
  86. IN PDEVICE_EXTENSION DeviceExtension,
  87. IN ULONG DeviceStatus
  88. );
  89. ULONGLONG
  90. ACPIInternalUpdateFlags(
  91. IN PULONGLONG FlagLocation,
  92. IN ULONGLONG NewFlags,
  93. IN BOOLEAN Clear
  94. );
  95. #endif