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.

235 lines
6.7 KiB

  1. ;/* Oh no - a polymorphic include file!
  2. COMMENT !
  3. ********************************************************************************
  4. *
  5. * Copyright (c) 1997, Cirrus Logic, Inc.
  6. * All Rights Reserved.
  7. *
  8. * FILE: $Workfile: swat.h $
  9. *
  10. * DESCRIPTION: This file hols the SWAT optimization flags.
  11. *
  12. * $Log: X:/log/laguna/nt35/displays/cl546x/swat.h $
  13. *
  14. * Rev 1.14 Jan 07 1998 10:56:42 frido
  15. * Removed LOWRES switch.
  16. *
  17. * Rev 1.13 Dec 10 1997 13:23:38 frido
  18. * Merged from 1.62 branch.
  19. *
  20. * Rev 1.12.1.1 Nov 18 1997 15:18:48 frido
  21. * Turned MULTI_CLOCK on.
  22. *
  23. * Rev 1.12.1.0 Nov 17 1997 11:00:38 frido
  24. * Added MUTLI_CLOCK (defaults to off).
  25. *
  26. * Rev 1.12 Nov 04 1997 09:15:24 frido
  27. * Added COLOR_TRANSLATE and LOWRES switches.
  28. *
  29. * Rev 1.11 Nov 03 1997 18:33:24 frido
  30. * Turned DATASTREAMING switch on.
  31. *
  32. * Rev 1.10 Oct 24 1997 10:37:46 frido
  33. * Added DATASTREAMING switch (default off).
  34. *
  35. * Rev 1.9 27 Aug 1997 10:39:28 noelv
  36. * Enabled SWAT7 and MEMMGR
  37. *
  38. * Rev 1.8 19 Aug 1997 17:32:34 noelv
  39. * Turned off SWAT7 for WHQL release.
  40. *
  41. * Rev 1.7 18 Aug 1997 13:59:12 noelv
  42. *
  43. * Turned off MEMMGR for 8/20 WHQL release. We'll turn it back on after WHQL
  44. *
  45. * Rev 1.6 14 Aug 1997 15:36:16 noelv
  46. * Turn on the new memory manager
  47. *
  48. * Rev 1.5 08 Aug 1997 15:36:24 FRIDO
  49. * Changed PREFETCH into SWAT7 (as it used to be).
  50. *
  51. * Rev 1.4 08 Aug 1997 14:46:10 FRIDO
  52. * Added MEMMGR and PREFETCH switches.
  53. *
  54. * Rev 1.3 28 May 1997 12:33:16 noelv
  55. * Fixed type in SWAT1.
  56. *
  57. * Rev 1.2 07 May 1997 13:55:10 noelv
  58. * Turned all opts on except 4 for nt140b11f
  59. *
  60. * Rev 1.1 01 May 1997 10:42:24 noelv
  61. * disabled SWAT for now.
  62. *
  63. * Rev 1.0 29 Apr 1997 16:27:56 noelv
  64. * Initial revision.
  65. * SWAT:
  66. * SWAT: Rev 1.1 24 Apr 1997 12:23:30 frido
  67. * SWAT: Removed SWAT5 switch (memory manager).
  68. * SWAT:
  69. * SWAT: Rev 1.0 19 Apr 1997 17:11:20 frido
  70. * SWAT: First release.
  71. *
  72. ********************************************************************************
  73. END COMMENT ! ;*/
  74. ;/*
  75. COMMENT !
  76. SWAT1 - Heap Pre-Allocation
  77. ---------------------------
  78. WinBench 97 is a nice program but it has a flaw. Since it will now create
  79. fonts and allocate device bitmaps during its test it is also measuring the
  80. performance of your system. Every time memory is allocated for fonts,
  81. pens, brushes, or device bitmaps memory is being allocated and most likely
  82. Windows NT will swap memory to the hard disk to achieve this goal. This is
  83. why putting in more memory will help to increase the score since there will
  84. be less hard disk swapping involved. We need to counteract this behaviour
  85. and make WInBench 97 less dependend on the amount of system memory and hard
  86. disk speed.
  87. WinBench 97 uses 300x150 size bitmaps for its pause box. The pause box is
  88. showed when WinBench 97 has disabled timing and is loading more playback
  89. data from the hard disk. So here we have a way to do some stuff when which
  90. will not be timed. What we will do is allocate enough heap memory for 8
  91. full-screen device bitmaps. This will make the PowerPoint test very happy
  92. since it is allocating these 8 full-screen device bitmaps during the slide
  93. show. The only drawback is that NT will swap memory to hard disk in the
  94. background. This will lower the Access score which we don't want. That is
  95. why we have added a counter. The Access test uses 10 300x150 bitmaps so we
  96. count down until Access has passed. Then we will start pre-allocating heap
  97. space during each 300x150 bitmap request.
  98. But this will drop the CorelDRAW test a little which *will* show up in the
  99. overall score. So one extra allocation is requested. We will pre-allocate
  100. the heap memory during every full-screen device bitmap (see SWAT2) when the
  101. count down counter has reached zero.
  102. ;*/
  103. #define SWAT1 0 /* C switch !
  104. SWAT1 = 0 ; Assembly switch */
  105. ;/*
  106. COMMENT !
  107. SWAT2 - Hostifying
  108. ------------------
  109. WinBench 97 is creating and destroying two full-screen device bitmaps
  110. during the setup stage of every GDI playback test. So this is a good time
  111. to hostify all device bitmaps in the off-screen memory heap to make room
  112. for more urgent device bitmaps.
  113. ;*/
  114. #define SWAT2 0 /* C switch !
  115. SWAT2 = 0 ; Assembly switch */
  116. ;/*
  117. COMMENT !
  118. SWAT3 - Font Cache
  119. ------------------
  120. The old font cache was a fast font cache but it had one limitation. It
  121. would allocate the memory for each font everywhere in the off-screen memory
  122. which means it would fragment the memory heap very much.
  123. During initialization a 128kB memory pool will be allocated in off-screen
  124. memory. Each time the font cache needs to allocate a font tile (128x16)
  125. for a new font it will now be allocated from this pool, which will hold up
  126. to 64 font tiles.
  127. ;*/
  128. #define SWAT3 1 /* C switch !
  129. SWAT3 = 1 ; Assembly switch */
  130. ;/*
  131. COMMENT !
  132. SWAT4 - Hardware Optimization
  133. -----------------------------
  134. Set the following hardware options for the CL-GD5465 chip:
  135. 1) Enable 4-way interleaving on 4MB and 8MB boards.
  136. 2) Reduce Address Translate Delay to 3 clocks.
  137. 3) On AC revision and higher enable 256-byte fetch.
  138. 4) On AC revision and higher enable frame buffer bursting.
  139. ;*/
  140. #define SWAT4 0 /* C switch !
  141. SWAT4 = 0 ; Assembly switch */
  142. ;/*
  143. COMMENT !
  144. SWAT6 - Striping
  145. ----------------
  146. Enable striping in the pattern blit functions.
  147. ;*/
  148. #define SWAT6 1 /* C switch !
  149. SWAT6 = 1 ; Assembly switch */
  150. ;/*
  151. COMMENT !
  152. MEMMGR
  153. ------
  154. Enable new memory manager.
  155. ;*/
  156. #define MEMMGR 1 /* C switch !
  157. MEMMGR = 1 ; Assembly switch */
  158. ;/*
  159. COMMENT !
  160. SWAT7 - Monochrome width cut-off
  161. --------------------------------
  162. Cut off monochrome source expansion to 896 pixels to fix the silicon bugs
  163. in 256-byte prefetch.
  164. ;*/
  165. #define SWAT7 1 /* C switch !
  166. SWAT7 = 1 ; Assembly switch */
  167. ;/*
  168. COMMENT !
  169. DATASTREAMING - PCI/AGP Data Streaming
  170. --------------------------------------
  171. Wait for enough FIFO slots before writing anything to the command FIFO of
  172. the chip.
  173. ;*/
  174. #define DATASTREAMING 1 /* C switch !
  175. DATASTREAMING = 1 ; Assembly switch */
  176. ;/*
  177. COMMENT !
  178. COLOR_TRANSLATE - Hardware color translation
  179. --------------------------------------------
  180. Enable or disable hardwrae color translation.
  181. ;*/
  182. #define COLOR_TRANSLATE 0 /* C switch !
  183. COLOR_TRANSLATE = 0 ; Assembly switch */
  184. ;/*
  185. COMMENT !
  186. MULTI_CLOCK - Multi RAMBUS clock
  187. --------------------------------
  188. Enable or disable multi clock support (e.g. 515MB/s and 600MB/s).
  189. ;*/
  190. #define MULTI_CLOCK 1 /* C switch !
  191. MULTI_CLOCK = 1 ; Assembly switch */