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.

76 lines
2.5 KiB

  1. /************************************************************************/
  2. /* */
  3. /* QUERY_M.H */
  4. /* */
  5. /* Sept 07 1993 (c) 1993, ATI Technologies Incorporated. */
  6. /************************************************************************/
  7. /********************** PolyTron RCS Utilities
  8. $Revision: 1.4 $
  9. $Date: 30 Jun 1994 18:20:40 $
  10. $Author: RWOLFF $
  11. $Log: S:/source/wnt/ms11/miniport/vcs/query_m.h $
  12. *
  13. * Rev 1.4 30 Jun 1994 18:20:40 RWOLFF
  14. * Removed prototype for IsApertureConflict_m() (routine moved to SETUP_M.C).
  15. *
  16. * Rev 1.3 27 Apr 1994 13:54:02 RWOLFF
  17. * Added prototype for IsMioBug_m()
  18. *
  19. * Rev 1.2 03 Mar 1994 12:41:16 ASHANMUG
  20. * Remove some get memory need stuff
  21. *
  22. * Rev 1.4 14 Jan 1994 15:25:58 RWOLFF
  23. * Added prototype for BlockWriteAvail_m()
  24. *
  25. * Rev 1.3 30 Nov 1993 18:29:04 RWOLFF
  26. * Removed defined values which were no longer used.
  27. *
  28. * Rev 1.2 10 Nov 1993 19:22:46 RWOLFF
  29. * Added definitions used by new way of checking memory size.
  30. *
  31. * Rev 1.1 08 Oct 1993 11:15:20 RWOLFF
  32. * Added prototype for new function.
  33. *
  34. * Rev 1.0 24 Sep 1993 11:52:50 RWOLFF
  35. * Initial revision.
  36. End of PolyTron RCS section *****************/
  37. #ifdef DOC
  38. QUERY_M.H - Header file for QUERY_M.C
  39. #endif
  40. /*
  41. * Prototypes for functions provided by QUERY_M.C
  42. */
  43. extern VP_STATUS QueryMach32 (struct query_structure *, BOOL);
  44. extern VP_STATUS Query8514Ultra (struct query_structure *);
  45. extern VP_STATUS QueryGUltra (struct query_structure *);
  46. extern long GetMemoryNeeded_m(long XPixels,
  47. long YPixels,
  48. long ColourDepth,
  49. struct query_structure *QueryPtr);
  50. extern BOOL BlockWriteAvail_m(struct query_structure *);
  51. extern BOOL IsMioBug_m(struct query_structure *);
  52. #ifdef INCLUDE_QUERY_M
  53. /*
  54. * Private definitions used in QUERY_M.C
  55. */
  56. #define SETUP_ENGINE 0
  57. #define RESTORE_ENGINE 1
  58. /*
  59. * Bit pattern which is extremely unlikely to show up when reading
  60. * from nonexistant memory (which normally shows up as either all
  61. * bits set or all bits clear).
  62. */
  63. #define TEST_COLOUR 0x05AA5
  64. #endif /* defined INCLUDE_QUERY_M */