home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
prog
/
pcgpe10.arj
/
GENOA.TXT
< prev
next >
Wrap
Text File
|
1994-05-10
|
6KB
|
135 lines
┌─────────────────────────────────┐
│ Programming the Genoa SVGA Chip │
└─────────────────────────────────┘
Written for the PC-GPE by Mark Feldman
e-mail address : u914097@student.canberra.edu.au
myndale@cairo.anu.edu.au
Please read the file SVGINTRO.TXT
(Graphics/SVGA/Intro PC-GPE menu option)
┌───────────────────────────────────────────┐
│ THIS FILE MAY NOT BE DISTRIBUTED │
│ SEPARATE TO THE ENTIRE PC-GPE COLLECTION. │
└───────────────────────────────────────────┘
┌────────────┬───────────────────────────────────────────────────────────────
│ Disclaimer │
└────────────┘
I assume no responsibility whatsoever for any effect that this file, the
information contained therein or the use thereof has on you, your sanity,
computer, spouse, children, pets or anything else related to you or your
existance. No warranty is provided nor implied with this information.
┌──────────────┬─────────────────────────────────────────────────────────────
│ Introduction │
└──────────────┘
Genoa has produced 2 SVGA cards. The earlier Genoa cards were based on the
Tseng ET3000 chip, the more recents cards are based on the Genoa chip. This
file will deal only with the cards based on the Genoa chip (the GVGA).
┌───────────────────────────┬────────────────────────────────────────────────
│ The Extended Register Set │
└───────────────────────────┘
The Genoa uses the same ports as the VGA sequencer register set to access
most of it's extended registers, ie the Index Register port for the Genoa
is 3C4h and Data port is 3C5h.
┌─────────────────────────────────┬──────────────────────────────────────────
│ Identifying the Genoa SVGA Card │
└─────────────────────────────────┘
To identify if a Genoa SVGA is present read the byte at address C000:0000.
Let's call this byte SIG_OFFSET. Next read the four bytes at
C000:SIG_OFFSET. These four bytes should have the following values :
┌─────────────────────────────────────┐
│ Memory Address Value │
├─────────────────────────────────────┤
│ C000:SIG_OFFSET 77h │
│ C000:SIG_OFFSET + 1 xx │
│ C000:SIG_OFFSET + 2 66h │
│ C000:SIG_OFFSET + 3 99h │
└─────────────────────────────────────┘
┌─────────────────────────────────────────┬──────────────────────────────────
│ Identifying which Genoa Card is Present │
└─────────────────────────────────────────┘
The value of the byte at C000:SIG_OFFSET + 1 is the chip identify code. The
values for each of the Genoa cards is as follows
┌────────────────────────────────────────┐
│ xx Card Chip │
├────────────────────────────────────────┤
│ 33h 5100/5200 Tseng ET3000 │
│ 55h 5300/5400 Tseng ET3000 │
│ 22h 6100 Genoa GVGA │
│ 00h 6200/6300 Genoa GVGA │
│ 11h 6400/6600 Genoa GVGA │
└────────────────────────────────────────┘
There is no method for determining the card revision number.
┌──────────────────────────────┬─────────────────────────────────────────────
│ Genoa Graphics Display Modes │
└──────────────────────────────┘
All Genoa cards support the following graphics modes :
┌───────────────────────────────────┐
│ Mode Resolution Colors │
├───────────────────────────────────┤
│ 59h 720x512 16 │
│ 5Bh 640x350 256 │
│ 5Ch 640x480 256 │
│ 5Dh 720x512 256 │
│ 5Eh 800x600 256 │
│ 5Fh 1024x768 16 │
│ 6Ah 800x600 16 │
│ 6Ch 800x600 256 │
│ 73h 640x480 16 │
│ 79h 800x600 16 │
│ 7Ch 512x512 16 │
│ 7Dh 512x512 256 │
│ 7Eh 640x400 256 │
│ 7Fh 1024x768 4 │
└───────────────────────────────────┘
┌──────────────────────┬─────────────────────────────────────────────────────
│ Genoa Display Memory │
└──────────────────────┘
Two banks can be mapped to the segment A000:0000-FFFFh, one for
reading and one for writing. The banks can be selected by writing to
the Memory Segment Register :
Index : 06h at port 3C4h
Read/Write at port 3C5h
┌───┬───┬───┬───┬───┬───┬───┬───┐
│ 7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
└───┴───┴───┴───┴───┴───┴───┴───┘
MEM ──┘ └───┬───┘ └───┬───┘
Write Read
Bank Bank
The following code can be used to set the write bank:
Port[$3C4] := $06;
Port[$3C5] := (Port[$3C5] and $C7) or (write_bank_number shl 3);
The following code can be used to set the read bank:
Port[$3C4] := $06;
Port[$3C5] := (Port[$3C5] and $F8) or read_bank_number;
There are 8 banks (numbered 0 -7). Each bank is 64K long, has a 64K
granularity and is mapped to host memory A000:0000-FFFFh.