Leaked source code of windows server 2003
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.

129 lines
3.6 KiB

  1. /**********************************************************
  2. * Copyright Cirrus Logic, 1995. All rights reserved.
  3. ***********************************************************
  4. * File Name: DISPINT.H
  5. *
  6. * Module Abstract:
  7. * ----------------
  8. * Defines the interface for communicating between the display
  9. * driver and the Direct Draw driver.
  10. *
  11. ***********************************************************
  12. * Author: Scott MacDonald
  13. * Date: 03/07/95
  14. *
  15. * Revision History:
  16. * -----------------
  17. * WHO WHEN WHAT/WHY/HOW
  18. * --- ---- ------------
  19. *
  20. * #mgm1 12/06/95 uncomment CHIPAUTOSTART. This should now
  21. * work when MapSL() works in DriverInit().
  22. * #mgm2 01/02/96 Add 7548 chip ID.
  23. *
  24. ***********************************************************/
  25. /*
  26. * Flags for the StopAsync callback
  27. */
  28. #define ASYNC_BLT 0x0001 // Async surface halted due to BLT
  29. /*
  30. * Flags for the DISPDRVINFO structure
  31. */
  32. #define DI_LCD 0x0001 // LCD panel is in use
  33. #define DI_SOFTCURSOR 0x0002 // Software cursor is in use
  34. /*
  35. * Display information passed to the Direct Draw driver from the display
  36. * driver using either SetInfo or GetInfo.
  37. */
  38. typedef struct
  39. {
  40. DWORD dwSize;
  41. DWORD dwResolutionX;
  42. DWORD dwResolutionY;
  43. DWORD dwBitCount;
  44. DWORD dwPitch;
  45. DWORD dwFlags;
  46. DWORD dwMemMapSel;
  47. } DISPDRVINFO, FAR * LPDISPDRVINFO;
  48. /*
  49. * prototypes for communication functions
  50. */
  51. typedef void (WINAPI *LPGetInfo) (LPDISPDRVINFO);
  52. /*
  53. * Structure passed to the Direct Draw driver from the display driver.
  54. * This contains entry points that we can call for various services.
  55. */
  56. typedef struct
  57. {
  58. DWORD dwSize;
  59. #if 0
  60. LPMemMgrAlloc lpfnMemMgrAlloc;
  61. LPMemMgrPreempt lpfnMemMgrPreempt;
  62. LPMemMgrLock lpfnMemMgrLock;
  63. LPMemMgrUnlock lpfnMemMgrUnlock;
  64. LPMemMgrFree lpfnMemMgrFree;
  65. LPMemMgrQuery lpfnMemMgrQueryFreeMem;
  66. #endif
  67. FARPROC lpfnExcludeCursor;
  68. FARPROC lpfnUnexcludeCursor;
  69. LPGetInfo lpfnGetInfo;
  70. FARPROC lpfnEnableAsyncCallback;
  71. } DISPDRVCALL, FAR * LPDISPDRVCALL;
  72. /*
  73. * Structure passed to the display driver from the Direct Draw driver.
  74. * This allows the display driver to notify us changes, etc.
  75. */
  76. typedef struct
  77. {
  78. DWORD dwSize;
  79. FARPROC lpfnSetInfo;
  80. FARPROC lpfnStopAsync;
  81. } DCICALL, FAR * LPDCICALL;
  82. // Note if definition changes, cirrus.inc and 5440over.c needs
  83. // to be changed also.
  84. #define CHIP5420 0x0001
  85. #define CHIP5422 0x0002
  86. #define CHIP5424 0x0004
  87. #define CHIP5425 0x0008
  88. #define CHIP5426 0x0010
  89. #define CHIP5428 0x0020
  90. #define CHIP5429 0x0040
  91. #define CHIP542x (CHIP5420 | CHIP5422 | CHIP5424 | CHIP5425 | CHIP5426 |\
  92. CHIP5428 | CHIP5429)
  93. #define CHIP5430 0x0100
  94. #define CHIP5434 0x0200
  95. #define CHIP5436 0x0400
  96. #define CHIP5446 0x0800
  97. #define CHIP543x (CHIP5430 | CHIP5434 | CHIP5436 | CHIP5446)
  98. #define CHIP5440 0x1000
  99. #define CHIPM40 0x10000
  100. #define CHIP544x (CHIP5440 | CHIP5446 | CHIPM40)
  101. #define CHIP7541 0x2000
  102. #define CHIP7543 0x4000
  103. #define CHIP7548 0x8000 //#mgm2
  104. #define CHIP754x (CHIP7541 | CHIP7543 | CHIP7548) //#mgm2
  105. #define CHIPBLTER (CHIP5426 | CHIP5428 | CHIP5429 | CHIP543x | CHIP544x |\
  106. CHIP754x)
  107. #define CHIPCOLORKEYBLTER (CHIP5426 | CHIP5428 | CHIP5436 | CHIP5446 |\
  108. CHIP754x | CHIPM40)
  109. #define CHIPCURRENTVLINE (CHIP5436 | CHIP5446 | CHIPM40)
  110. #define CHIPAUTOSTART (CHIP5436 | CHIP5446) //#mgm1