home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v2.zip / DDKX86 / DBCSDD / H / SVGADEFS.H < prev    next >
Text File  |  1995-04-14  |  4KB  |  131 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  4. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  5. /*                                                                           */
  6. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  7. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  8. /*    drivers. You may use this code in accordance with the IBM License      */
  9. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  10. /*    Copyright statement may not be removed.                                */
  11. /*                                                                           */
  12. /*****************************************************************************/
  13. /*****************************************************************************
  14.  *
  15.  * SOURCE FILE NAME = SVGADEFS.H
  16.  *
  17.  * DESCRIPTIVE NAME =
  18.  *
  19.  *
  20.  * VERSION = V2.0
  21.  *
  22.  * DATE
  23.  *
  24.  * DESCRIPTION  Contains SVGA definitions.
  25.  *
  26.  * FUNCTIONS
  27.  *
  28.  * NOTES        When included into VVID sources, #ifdef SVGA
  29.  *              must be used before #include!
  30.  *
  31.  * STRUCTURES
  32.  *
  33.  * EXTERNAL REFERENCES
  34.  *
  35.  * EXTERNAL FUNCTIONS
  36.  *
  37. */
  38.  
  39. #define MAX_LOCKUNLOCKCMD       10
  40. #define MAX_CLEANDATA           20
  41.  
  42. //c-begin
  43.  
  44. typedef struct _CLEANDATA
  45. {
  46.     USHORT  Command;
  47.     USHORT  IndexPort;
  48.     USHORT  DataPort;
  49.     USHORT  Index;
  50.     USHORT  ANDMask;
  51.     USHORT  ORMask;
  52. } CLEANDATA;
  53.  
  54. //c-end
  55.  
  56. #define SVGA_ID                 8
  57. #define SVGA_OEM                9
  58. #define SCREENDD_CATEGORY       0x80
  59. #define SCREENDD_NAME           "SCREEN$"
  60.  
  61. //c-begin
  62. typedef struct {
  63.         USHORT AdapterType;
  64.         USHORT ChipType;
  65.         ULONG  Memory;
  66. } OEMSVGAINFO;
  67.  
  68. typedef struct {
  69.         ULONG  Length;                                  /*            */
  70.         USHORT Manufacturer;
  71.         ULONG  ManufacturerData;                        /*            */
  72. } OEMINFO;
  73.  
  74. typedef struct {
  75.         ULONG  Length;
  76.         USHORT Bank;
  77.         USHORT VideoModeType;
  78.         USHORT ReadWriteMode;
  79. } BANKINFO;                                             /*            */
  80. //c-end
  81.  
  82. #define DEFAULT_ADAPTER       (-1)
  83. #define VIDEO7_ADAPTER          1
  84. #define TRIDENT_ADAPTER         2
  85. #define TSENG_ADAPTER           3
  86. #define WESTERNDIG_ADAPTER      4
  87. #define ATI_ADAPTER             5
  88. #define IBM_ADAPTER             6
  89. #define CIRRUS_ADAPTER          7
  90. #define S3_ADAPTER              8
  91. #define CHIPS_ADAPTER           9                      /*            */
  92. #define WEITEK_ADAPTER         10                      /*            */
  93.  /* remember to update SVGA_LASTADAPTER when adding new adapter support */
  94.  
  95.  
  96. #define SVGA_FIRSTADAPTER       VIDEO7_ADAPTER         /*            */
  97. #define SVGA_LASTADAPTER        WEITEK_ADAPTER         /*            */
  98.  
  99. #define VIDEO7_HT205_CHIP       1
  100. #define VIDEO7_HT208_CHIP       2
  101. #define VIDEO7_HT209_CHIP       3
  102.  
  103. #define TRIDENT_8800_CHIP       1
  104. #define TRIDENT_8900_CHIP       2
  105.  
  106. #define TSENG_ET3000_CHIP       1
  107. #define TSENG_ET4000_CHIP       2
  108.  
  109. #define WESTERNDIG_PVGA1A_CHIP  1
  110. #define WESTERNDIG_WD9000_CHIP  2
  111. #define WESTERNDIG_WD9011_CHIP  3
  112. #define WESTERNDIG_WD9030_CHIP  4
  113.  
  114. #define ATI_18800_CHIP          1
  115. #define ATI_28800_CHIP          2
  116.  
  117. #define IBM_SVGA_CHIP           1
  118.  
  119. #define CIRRUS_5422_CHIP        1
  120. #define CIRRUS_5424_CHIP        2
  121. #define CIRRUS_5426_CHIP        3
  122. #define CIRRUS_5428_CHIP        4           /*            */
  123.  
  124. #define S3_86C805_CHIP          1
  125. #define S3_86C928_CHIP          2
  126. #define S3_86C911_CHIP          3           /*            */
  127.  
  128. #define DIAMOND_MANUFACTURER    1           /*            */
  129. #define NUMBER9_MANUFACTURER    3           /*            */
  130. #define ARTIST_MANUFACTURER     4           /*            */
  131.