Source code of Windows XP (NT5)
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.

119 lines
1.9 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. hali.h
  5. Abstract:
  6. This header file defines the private Hardware Architecture Layer (HAL)
  7. interfaces for bus range support.
  8. Author:
  9. David N. Cutler (davec) 28-Mar-95
  10. Revision History:
  11. --*/
  12. #ifndef _HALI_
  13. #define _HALI_
  14. // define INVALID_HANDLE for HAL routines
  15. #define INVALID_HANDLE (HANDLE) -1
  16. //
  17. // Define type of memory for bus range allocations.
  18. //
  19. #define SPRANGEPOOL NonPagedPool
  20. //
  21. // General Pool Tag for HAL use (see pooltag.txt).
  22. //
  23. #define HAL_POOL_TAG ' laH'
  24. //
  25. // Define bus range function prototypes.
  26. //
  27. PSUPPORTED_RANGES
  28. HalpMergeRanges (
  29. IN PSUPPORTED_RANGES Parent,
  30. IN PSUPPORTED_RANGES Child
  31. );
  32. VOID
  33. HalpMergeRangeList (
  34. PSUPPORTED_RANGE NewList,
  35. PSUPPORTED_RANGE Source1,
  36. PSUPPORTED_RANGE Source2
  37. );
  38. PSUPPORTED_RANGES
  39. HalpConsolidateRanges (
  40. PSUPPORTED_RANGES Ranges
  41. );
  42. PSUPPORTED_RANGES
  43. HalpAllocateNewRangeList (
  44. VOID
  45. );
  46. VOID
  47. HalpFreeRangeList (
  48. PSUPPORTED_RANGES Ranges
  49. );
  50. PSUPPORTED_RANGES
  51. HalpCopyRanges (
  52. PSUPPORTED_RANGES Source
  53. );
  54. VOID
  55. HalpAddRangeList (
  56. IN OUT PSUPPORTED_RANGE DRange,
  57. OUT PSUPPORTED_RANGE SRange
  58. );
  59. VOID
  60. HalpAddRange (
  61. PSUPPORTED_RANGE HRange,
  62. ULONG AddressSpace,
  63. LONGLONG SystemBase,
  64. LONGLONG Base,
  65. LONGLONG Limit
  66. );
  67. VOID
  68. HalpRemoveRanges (
  69. IN OUT PSUPPORTED_RANGES Minuend,
  70. IN PSUPPORTED_RANGES Subtrahend
  71. );
  72. VOID
  73. HalpRemoveRangeList (
  74. IN OUT PSUPPORTED_RANGE Minuend,
  75. IN PSUPPORTED_RANGE Subtrahend
  76. );
  77. VOID
  78. HalpRemoveRange (
  79. PSUPPORTED_RANGE HRange,
  80. LONGLONG Base,
  81. LONGLONG Limit
  82. );
  83. VOID
  84. HalpDisplayAllBusRanges (
  85. VOID
  86. );
  87. #endif // _HALI_