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.

38 lines
1002 B

  1. ;++
  2. ;
  3. ; Copyright (c) 1996-97 Microsoft Corporation
  4. ;
  5. ; Module Name:
  6. ;
  7. ; mp8254.inc
  8. ;
  9. ; Abstract:
  10. ;
  11. ; This module contains common definitions for the 8254 used
  12. ; by the timer tick routine and the query peformance counter
  13. ; routine.
  14. ;
  15. ; Author:
  16. ;
  17. ; Shivnandan Kaushik
  18. ;
  19. ;--
  20. ;
  21. ; Constants used to initialize timer 0
  22. ;
  23. TIMER1_DATA_PORT0 EQU 40H ; Timer1, channel 0 data port
  24. TIMER1_CONTROL_PORT0 EQU 43H ; Timer1, channel 0 control port
  25. COMMAND_8254_COUNTER0 EQU 00H ; Select count 0
  26. COMMAND_8254_RW_16BIT EQU 30H ; Read/Write LSB first then MSB
  27. COMMAND_8254_MODE2 EQU 4 ; Use mode 2
  28. COMMAND_8254_BCD EQU 0 ; Binary count down
  29. COMMAND_8254_LATCH_READ EQU 0 ; Latch read command
  30. PERFORMANCE_FREQUENCY EQU 1193182 ; frequency of 8254
  31. PERFORMANCE_INTERVAL EQU 0ffffH ; Maximum counter value
  32. PERF_USE_8254 EQU 01h
  33. PERF_8254_INITIALIZED EQU 40h