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.

70 lines
1.4 KiB

  1. /**
  2. *** Copyright (C) 1996-97 Intel Corporation. All rights reserved.
  3. ***
  4. *** The information and source code contained herein is the exclusive
  5. *** property of Intel Corporation and may not be disclosed, examined
  6. *** or reproduced in whole or in part without explicit written authorization
  7. *** from the company.
  8. **/
  9. #ifndef _HALP_H_
  10. #define _HALP_H_
  11. #include <nthal.h>
  12. #include <hal.h>
  13. #include <hali.h>
  14. #include "ssc.h"
  15. #include "..\..\inc\hali.h"
  16. /*
  17. * Default clock and profile timer intervals (in 100ns-unit)
  18. */
  19. #define DEFAULT_CLOCK_INTERVAL 100000 // 10 ms
  20. #define MINIMUM_CLOCK_INTERVAL 10000 // 1 ms
  21. #define MAXIMUM_CLOCK_INTERVAL 100000 // 10 ms
  22. /*
  23. * Device IRQLs (must be in sync with the values defined in the header
  24. * files for the disk, keyboard, and mouse drivers.)
  25. */
  26. #define DISK_IRQL 4
  27. #define MOUSE_IRQL 5
  28. #define KEYBOARD_IRQL 6
  29. #define SERIAL_IRQL 7
  30. /*
  31. * PCR address.
  32. * Temporary macros; should already be defined in ntddk.h for IA64
  33. */
  34. #define PCR ((volatile KPCR * const)KIPCR)
  35. #define MiGetPteAddress(va) ((PHARDWARE_PTE)(__thash((ULONG_PTR)(va))))
  36. extern VOID
  37. HalpInitializeInterrupts (
  38. VOID
  39. );
  40. extern VOID
  41. HalpClockInterrupt (
  42. IN PKINTERRUPT_ROUTINE Interrupt,
  43. IN PKTRAP_FRAME TrapFrame
  44. );
  45. extern VOID
  46. HalpProfileInterrupt (
  47. IN PKTRAP_FRAME TrapFrame
  48. );
  49. extern VOID
  50. HalpRegisterInternalBusHandlers (
  51. VOID
  52. );
  53. #endif /* _HALP_H_ */