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.

85 lines
3.0 KiB

  1. /************************************************************************/
  2. /* */
  3. /* DETECT_M.H */
  4. /* */
  5. /* Aug 25 1993 (c) 1993, ATI Technologies Incorporated. */
  6. /************************************************************************/
  7. /********************** PolyTron RCS Utilities
  8. $Revision: 1.4 $
  9. $Date: 11 Jan 1995 13:57:52 $
  10. $Author: RWOLFF $
  11. $Log: S:/source/wnt/ms11/miniport/vcs/detect_m.h $
  12. *
  13. * Rev 1.4 11 Jan 1995 13:57:52 RWOLFF
  14. * Replaced VCS logfile comment accidentally removed when checking in
  15. * the last revision.
  16. *
  17. * Rev 1.3 04 Jan 1995 13:17:30 RWOLFF
  18. * Moved definitions used by Get_BIOS_Seg() to SERVICES.H.
  19. *
  20. * Rev 1.2 23 Dec 1994 10:48:10 ASHANMUG
  21. * ALPHA/Chrontel-DAC
  22. *
  23. * Rev 1.1 19 Aug 1994 17:10:40 RWOLFF
  24. * Added support for Graphics Wonder, removed dead code.
  25. *
  26. * Rev 1.0 31 Jan 1994 11:41:00 RWOLFF
  27. * Initial revision.
  28. *
  29. * Rev 1.3 05 Nov 1993 13:24:36 RWOLFF
  30. * Added new #defined values for new BIOS segment detection code.
  31. *
  32. * Rev 1.2 08 Oct 1993 11:08:42 RWOLFF
  33. * Added "_m" to function names to identify them as being specific to the
  34. * 8514/A-compatible family of ATI accelerators.
  35. *
  36. * Rev 1.1 24 Sep 1993 11:43:26 RWOLFF
  37. * Removed mapping of identification-only registers for all card families,
  38. * added additional 8514/A-compatible information gathering formerly done
  39. * in ATIMP.C.
  40. *
  41. * Rev 1.0 03 Sep 1993 14:27:50 RWOLFF
  42. * Initial revision.
  43. End of PolyTron RCS section *****************/
  44. #ifdef DOC
  45. DETECT_M.H - Header file for DETECT_M.C
  46. #endif
  47. /*
  48. * Prototypes for functions supplied by DETECT_M.C
  49. */
  50. extern int WhichATIAccelerator_m(void);
  51. extern void GetExtraData_m(void);
  52. extern BOOL ATIFindExtFcn_m(struct query_structure *);
  53. extern BOOL ATIFindEEPROM_m(struct query_structure *);
  54. extern void ATIGetSpecialHandling_m(struct query_structure *);
  55. /*
  56. * Definitions used internally by DETECT_M.C.
  57. */
  58. #ifdef INCLUDE_DETECT_M
  59. /*
  60. * On Graphics Wonder cards, the string "GRAPHICS WONDER" will appear
  61. * somewhere in the first 500 bytes of the video BIOS.
  62. */
  63. #define GW_AREA_START 0
  64. #define GW_AREA_END 500
  65. #define VGA_CHIP_OFFSET 0x43 /* Bytes from base where vga_chip found */
  66. #define MACH8_REV_OFFSET 0x4C /* Bytes from base where Mach 8 BIOS revision found */
  67. #define MACH32_EXTRA_OFFSET 0x62 /* Bytes from base where "aperture high bits read
  68. from high byte of SCRATCH_PAD_0" flag found */
  69. #define LOAD_SHADOW_OFFSET 0x64 /* Bytes from base where Load Shadow Set entry found */
  70. #define INTEL_JMP 0xE9 /* Opcode for Intel 80x86 JMP instruction */
  71. #endif /* defined INCLUDE_DETECT_M */