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.

74 lines
1.4 KiB

  1. #ifndef _ARBP_
  2. #define _ARBP_
  3. #ifndef FAR
  4. #define FAR
  5. #endif
  6. #if DBG
  7. #define ARB_DBG 1 // DBG
  8. #endif
  9. #pragma warning(disable:4214) // bit field types other than int
  10. #pragma warning(disable:4201) // nameless struct/union
  11. #pragma warning(disable:4115) // named type definition in parentheses
  12. #pragma warning(disable:4127) // condition expression is constant
  13. #if 0
  14. #pragma warning(disable:4324) // alignment sensitive to declspec
  15. #pragma warning(disable:4232) // dllimport not static
  16. #pragma warning(disable:4206) // translation unit empty
  17. #endif
  18. #if NTOS_KERNEL
  19. //
  20. // If we are in the kernel use the in-kernel headers so we get the efficient
  21. // definitions of things
  22. //
  23. #include "ntos.h"
  24. #include "zwapi.h"
  25. #else
  26. //
  27. // If we are building the library for bus drivers to use make sure we use the
  28. // same definitions of things as them
  29. //
  30. #include "ntddk.h"
  31. #endif
  32. #include "arbiter.h"
  33. #include <stdlib.h> // for __min and __max
  34. #if ARB_DBG
  35. extern const CHAR* ArbpActionStrings[];
  36. extern ULONG ArbStopOnError;
  37. extern ULONG ArbReplayOnError;
  38. VOID
  39. ArbDumpArbiterInstance(
  40. LONG Level,
  41. PARBITER_INSTANCE Arbiter
  42. );
  43. VOID
  44. ArbDumpArbiterRange(
  45. LONG Level,
  46. PRTL_RANGE_LIST List,
  47. PCHAR RangeText
  48. );
  49. VOID
  50. ArbDumpArbitrationList(
  51. LONG Level,
  52. PLIST_ENTRY ArbitrationList
  53. );
  54. #endif // ARB_DBG
  55. #endif _ARBP_