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.

84 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1993 Weitek Corporation
  3. Module Name:
  4. viper.h
  5. Abstract:
  6. This module contains definitions for the Diamond Viper VL board.
  7. Environment:
  8. Kernel mode
  9. Revision History may be found at the end of this file.
  10. --*/
  11. //
  12. // Viper uses the same DAC addresses as the Weitek VL cards.
  13. //
  14. extern VIDEO_ACCESS_RANGE VLDefDACRegRange[];
  15. //
  16. // Default memory base address for the Viper.
  17. //
  18. #define MemBase 0x80000000
  19. //
  20. // Bit to write to the sequencer control register to enable/disable P9
  21. // video output.
  22. //
  23. #define P9_VIDEO_ENB 0x10
  24. #define P9_VIDEO_DIS ~P9_VIDEO_ENB
  25. //
  26. // Define the bits in the sequencer control register which determine
  27. // H and V sync polarties. For Viper, 1 = negative.
  28. //
  29. #define HSYNC_POL_MASK 0x20
  30. #define VSYNC_POL_MASK 0x40
  31. #define POL_MASK (HSYNC_POL_MASK | VSYNC_POL_MASK)
  32. //
  33. // Bit to in the sequencer control register to enable VGA output
  34. // for the Viper board.
  35. //
  36. #define VGA_VIDEO_ENB 0x80
  37. #define VGA_VIDEO_DIS ~VGA_VIDEO_ENB
  38. //
  39. // These defines represents the values to be written to the
  40. // VGA sequencer control register for the possible memory mappings for
  41. // the Diamond Viper board. Whew!
  42. //
  43. #define MEM_DISABLED 0x00
  44. #define MEM_AXXX 0x01
  45. #define MEM_2XXX 0x02
  46. #define MEM_8XXX 0x03
  47. //
  48. // Value to mask off the memory address select bits in the sequencer
  49. // control register.
  50. //
  51. #define ADDR_SLCT_MASK ~0x03
  52. //
  53. // Defines used to scan the VGA ROM in order to auto-detect a Viper card.
  54. //
  55. #define VIPER_VL_ID_STR "VIPER"
  56. #define VIPER_ID_STR "VIPER"
  57. #define VGA_BIOS_ADDR 0xC0000L
  58. #define VGA_BIOS_LEN 0x8000L