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.

70 lines
1.6 KiB

  1. /******************************************************************************\
  2. *
  3. * $Workfile: precomp.h $
  4. *
  5. * Common headers used throughout the display driver. This entire include
  6. * file will typically be pre-compiled.
  7. *
  8. * Copyright (c) 1993-1995 Microsoft Corporation
  9. * Copyright (c) 1996 Cirrus Logic, Inc.
  10. *
  11. * $Log: S:/projects/drivers/ntsrc/display/precomp.h_v $
  12. *
  13. * Rev 1.2 18 Dec 1996 13:44:12 PLCHU
  14. *
  15. *
  16. * Rev 1.1 Oct 10 1996 15:38:50 unknown
  17. *
  18. *
  19. * Rev 1.2 12 Aug 1996 16:48:28 frido
  20. * Added NT 3.5x/4.0 auto detection.
  21. *
  22. * Rev 1.1 03 Jul 1996 13:50:42 frido
  23. * Added WINERROR.H include file.
  24. *
  25. * chu01 12-16-96 Enable color correction
  26. *
  27. \******************************************************************************/
  28. #include <stddef.h>
  29. #include <stdarg.h>
  30. #include <limits.h>
  31. #if (_WIN32_WINNT >= 0x0400)
  32. #include <windef.h>
  33. #include <winerror.h>
  34. #include <wingdi.h>
  35. #else
  36. #include <windows.h>
  37. #include <memory.h>
  38. #include <stdio.h>
  39. #include <stdlib.h>
  40. #endif
  41. #include <winddi.h>
  42. #include <devioctl.h>
  43. #include <ntddvdeo.h>
  44. #include <ioaccess.h>
  45. #include <math.h>
  46. #define ENABLE_BIOS_ARGUMENTS
  47. //
  48. // DBG_STRESS_FAILURE turns on debugging code related to the stress failure
  49. //
  50. #define DBG_STRESS_FAILURE 0
  51. //
  52. // chu01 : GAMMACORRECT
  53. //
  54. #include "clioctl.h"
  55. #include "lines.h"
  56. #include "hw.h"
  57. #include "driver.h"
  58. #include "debug.h"
  59. //
  60. // chu01 : GAMMACORRECT
  61. //
  62. //#define GAMMACORRECT 1 // 1 : Enable; 0 : Disable