Matrox MGA-2164W Developer's Specification
Total Page:16
File Type:pdf, Size:1020Kb
Matrox Graphics Inc. Matrox MGA-2164W Developer’s Specification Document Number 10568-XX-0100 August 18, 1997 Trademark Acknowledgements MGA,™ MGA-1064SG,™ MGA-1164SG,™ MGA-2064W,™ MGA-2164W,™ MGA-VC064SFB,™ MGA-VC164SFB,™ MGA Marvel,™ MGA Millennium,™ MGA Mystique,™ MGA Rainbow Run- ner,™ MGA DynaView,™ PixelTOUCH,™ MGA Control Panel,™ and Instant ModeSWITCH,™ are trademarks of Matrox Graphics Inc. Matrox® is a registered trademark of Matrox Electronic Systems Ltd. VGA,® is a registered trademark of International Business Machines Corporation; Micro Channel™ is a trademark of International Business Machines Corporation. Intel® is a registered trademark, and 386,™ 486,™ Pentium,™ and 80387™ are trademarks of Intel Corporation. Windows™ is a trademark of Microsoft Corporation; Microsoft,® and MS-DOS® are registered trade- marks of Microsoft Corporation. AutoCAD® is a registered trademark of Autodesk Inc. Unix™ is a trademark of AT&T Bell Laboratories. X-Windows™ is a trademark of the Massachusetts Institute of Technology. AMD™ is a trademark of Advanced Micro Devices. Atmel® is a registered trademark of Atmel Corpora- tion. Catalyst™ is a trademark of Catalyst Semiconductor Inc. SGS™ is a trademark of SGS-Thompson. Toshiba™ is a trademark of Toshiba Corporation. Texas Instruments™ is a trademark of Texas Instru- ments. National™ is a trademark of National Semiconductor Corporation. Microchip™ is a trademark of Microchip Technology Inc. All other nationally and internationally recognized trademarks and tradenames are hereby acknowledged. This document contains confidential proprietary information that may not be disclosed without written permission from Matrox Graphics Inc. © Copyright Matrox Graphics Inc., 1997. All rights reserved. Disclaimer: Matrox Graphics Inc. reserves the right to make changes to specifications at any time and without notice. The information provided by this document is believed to be accurate and reliable. How- ever, no responsibility is assumed by Matrox Graphics Inc. for its use; nor for any infringements of pat- ents or other rights of third parties resulting from its use. No license is granted under any patents or patent rights of Matrox Graphics Inc. or Matrox Electronic Systems Ltd. Contents Chapter 1: MGA Overview 1.1 Introduction. 1-2 1.2 System Block Diagram . 1-3 1.3 Application Areas . 1-3 1.4 Typical Implementation. 1-3 1.4.1 Target Markets . 1-3 1.5 Features . 1-4 1.5.1 Core GUI Accelerator . 1-4 1.5.2 Digital Video Engine . 1-5 1.5.3 DirectDraw Support. 1-5 1.5.4 Direct 3D Support . 1-5 1.5.5 Memory Interface . 1-5 1.5.6 Miscellaneous . 1-6 1.6 Function Descriptions. 1-6 1.6.1 Host Bus interface. 1-6 1.6.2 VGA Graphics Controller . 1-6 1.6.3 VGA Attributes Controller . 1-6 1.6.4 CRTC . 1-6 1.6.5 Address Processing Unit (APU) . 1-8 1.6.6 Data Processing Unit (DPU) . 1-8 1.6.7 Memory Controller . 1-8 1.7 Typographical Conventions Used. 1-9 1.8 Locating Information. 1-9 Chapter 2: Resource Mapping 2.1 Memory Mapping . 2-2 2.1.1 Configuration Space Mapping. 2-2 2.1.2 MGA General Map . 2-3 2.1.3 MGA Control Aperture . 2-4 2.2 Register Mapping . 2-5 Chapter 3: Register Descriptions 3.1 Power Graphic Mode Register Descriptions. 3-2 3.1.1 Power Graphic Mode Configuration Space Registers . 3-2 3.1.2 Power Graphic Mode Memory Space Registers. 3-22 3.2 VGA Mode Register Descriptions. 3-93 Chapter 4: Programmer’s Specification 4.1 HOST Interface. 2 4.1.1 Introduction . .2 Contents 1 4.1.2 PCI Retry Handling . 3 4.1.3 PCI Burst Support . 3 4.1.4 PCI Target-Abort Generation. 4 4.1.5 Transaction Ordering . 4 4.1.6 Direct Access Read Cache . 4 4.1.7 Big Endian Support . 5 4.1.8 Host Pixel Format . 8 4.2 Memory Interface . 14 4.2.1 Frame Buffer Organization . 14 4.2.2 Pixel Format. 19 4.3 Chip Configuration and Initialization . 20 4.3.1 Reset . 20 4.3.2 Operations After Hard Reset . 21 4.3.3 Power Up Sequence . 21 4.3.4 Operation Mode Selection . 23 4.4 Direct Frame Buffer Access . 25 4.5 Drawing in Power Graphic Mode . 25 4.5.1 Drawing Register Initialization Using General Purpose Pseudo-DMA. 25 4.5.2 Overview . 26 4.5.3 Global Initialization (All Operations). 27 4.5.4 Line Programming . 27 4.5.5 Trapezoid / Rectangle Fill Programming . 34 4.5.6 Bitblt Programming . 42 4.5.7 ILOAD Programming . 49 4.5.8 Scaling Operations . 54 4.5.9 IDUMP Programming. 63 4.6 CRTC Programming . 65 4.6.1 Horizontal Timing. 65 4.6.2 Vertical Timing. 66 4.6.3 Memory Address Counter . 67 4.6.4 Programming in VGA Mode. 68 4.6.5 Programming in Power Graphic Mode. 69 4.7 Interrupt Programming . 74 4.8 Power Saving Features. 75 Chapter 5: Hardware Designer’s Notes 5.1 Introduction . 2 5.2 PCI Interface . 2 5.3 AGP Interface . 2 5.4 Snooping . 3 5.5 External Devices . 4 Contents 2 5.6 Memory Interface . 6 5.6.1 WRAM Connection . .6 5.6.2 WRAM Byte Organization . .6 5.7 Video interface . ..