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.

51 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1993 Weitek Corporation
  3. Module Name:
  4. clock.h
  5. Abstract:
  6. This module contains clock generator specific functions for the
  7. Weitek P9 miniport device driver.
  8. Environment:
  9. Kernel mode
  10. Revision History may be found at the end of this file.
  11. --*/
  12. //
  13. // Masks used to program the ICD2061a Frequency Synthesizer.
  14. //
  15. #define IC_REG0 0x0l // Mask selects ICD Video Clock Reg 1
  16. #define IC_REG1 0x200000l // Mask selects ICD Video Clock Reg 2
  17. #define IC_REG2 0x400000l // Mask selects ICD Video Clock Reg 3
  18. #define IC_MREG 0x600000l // Mask selects ICD Mem Timing Clock
  19. #define IC_CNTL 0xc18000l // Mask selects ICD Control Register
  20. #define IC_DIV4 0xa40000l
  21. //
  22. // These values are used to program custom frequencies
  23. // and to select a custom frequency.
  24. //
  25. #define ICD2061_EXTSEL9100 (0x03)
  26. #define ICD2061_DATA9100 (0x02)
  27. #define ICD2061_DATASHIFT9100 (0x01)
  28. #define ICD2061_CLOCK9100 (0x01)
  29. //
  30. // Define macros to access the ICD register. These macros take advantage
  31. // of the fact that the synth bits are the same for the Weitek, Viper, and
  32. // Ajax boards. The only difference is that the Ajax board's ICD register
  33. // is mapped to a different base address.
  34. //
  35. #define WR_ICD(value) VGA_WR_REG(MISCOUT, (value))
  36. #define RD_ICD() VGA_RD_REG(MISCIN)