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.

72 lines
2.4 KiB

  1. /************************************************************************/
  2. /* */
  3. /* EEPROM.H */
  4. /* */
  5. /* Aug 25 1993 (c) 1993, ATI Technologies Incorporated. */
  6. /************************************************************************/
  7. /********************** PolyTron RCS Utilities
  8. $Revision: 1.0 $
  9. $Date: 31 Jan 1994 11:41:26 $
  10. $Author: RWOLFF $
  11. $Log: S:/source/wnt/ms11/miniport/vcs/eeprom.h $
  12. *
  13. * Rev 1.0 31 Jan 1994 11:41:26 RWOLFF
  14. * Initial revision.
  15. *
  16. * Rev 1.1 08 Oct 1993 15:18:50 RWOLFF
  17. * Added prototypes for ee_sel_eeprom() and ee_init_io() to allow
  18. * EEVGA.C to be built without including VIDFIND.H.
  19. *
  20. * Rev 1.0 03 Sep 1993 14:28:04 RWOLFF
  21. * Initial revision.
  22. End of PolyTron RCS section *****************/
  23. #ifdef DOC
  24. EEPROM.H - Header file for EEPROM.C
  25. #endif
  26. /*
  27. * Constants used for EEPROM access.
  28. */
  29. #define STYLE_8514 0 /* Data stored 8514-style */
  30. #define STYLE_VGA 1 /* Data stored VGA-style */
  31. #define BUS_8BIT 0 /* 8514/ULTRA in 8-bit slot */
  32. #define BUS_16BIT 1 /* 8514/ULTRA in 16-bit slot */
  33. /*
  34. * Global data structures used for EEPROM access.
  35. */
  36. extern struct st_eeprom_data g_ee; // the location of I/O port bits
  37. /*
  38. * Global variables dealing with the EEPROM.
  39. */
  40. extern ULONG ati_reg; /* Base register for ATI extended VGA registers */
  41. extern char vga_chip; // VGA chip revision as ascii
  42. /*
  43. * Function prototypes.
  44. */
  45. extern WORD ee_read_vga (short iIndex); // VGA method
  46. extern void ee_write_vga(unsigned short uiIndex, unsigned short uiData);
  47. extern void ee_cmd_vga(unsigned short uiInstruct);
  48. extern void ee_erase_vga(unsigned short uiIndex);
  49. extern void ee_enab_vga(void);
  50. extern void ee_disab_vga(void);
  51. extern WORD ee_read_8514 (short index);
  52. extern void ee_cmd_16 (WORD instruct);
  53. extern void ee_cmd_1K (WORD instruct);
  54. extern void Mach32DescribeEEPROM(int Style);
  55. extern void Mach8UltraDescribeEEPROM(int BusWidth);
  56. extern void Mach8ComboDescribeEEPROM(void);
  57. BOOLEAN ee_sel_eeprom (PVOID Context);
  58. BOOLEAN ee_init_io (PVOID Context);