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.

91 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1993 Weitek Corporation
  3. Module Name:
  4. wtkp9xvl.h
  5. Abstract:
  6. This module contains definitions for the Weitek P9000 VL evaluation
  7. board.
  8. Environment:
  9. Kernel mode
  10. Revision History may be found at the end of this file.
  11. --*/
  12. //
  13. // Default memory addresses for the P9100 registers/frame buffer.
  14. //
  15. #define P91_MemBase 0xC0000000 // default physical address
  16. //
  17. // Default memory addresses for the P9000 registers/frame buffer.
  18. //
  19. #define MemBase 0x80000000
  20. //
  21. // Bit to write to the sequencer control register to enable/disable P9
  22. // video output.
  23. //
  24. #define P9_VIDEO_ENB 0x10
  25. #define P9_VIDEO_DIS ~P9_VIDEO_ENB
  26. //
  27. // Define the bit in the sequencer control register which determines
  28. // the sync polarities. For Weitek board, 1 = positive.
  29. //
  30. #define HSYNC_POL_MASK 0x20
  31. #define POL_MASK HSYNC_POL_MASK
  32. extern ULONG P91_Bt485_DAC_Regs[];
  33. VOID
  34. P91_WriteTiming(
  35. PHW_DEVICE_EXTENSION HwDeviceExtension
  36. );
  37. VOID
  38. CalcP9100MemConfig (
  39. PHW_DEVICE_EXTENSION HwDeviceExtension
  40. );
  41. VOID
  42. P91_SysConf(
  43. PHW_DEVICE_EXTENSION HwDeviceExtension
  44. );
  45. VOID
  46. ProgramClockSynth(
  47. PHW_DEVICE_EXTENSION HwDeviceExtension,
  48. USHORT usFrequency,
  49. BOOLEAN bSetMemclk,
  50. BOOLEAN bUseClockDoubler
  51. );
  52. VOID
  53. SetupVideoBackend(
  54. PHW_DEVICE_EXTENSION HwDeviceExtension
  55. );
  56. VOID
  57. WriteP9ConfigRegister(
  58. PHW_DEVICE_EXTENSION HwDeviceExtension,
  59. UCHAR regnum,
  60. UCHAR jValue
  61. );
  62. UCHAR
  63. ReadP9ConfigRegister(
  64. PHW_DEVICE_EXTENSION HwDeviceExtension,
  65. UCHAR regnum
  66. );