bugLGPL'd VGABios - Bugs: bug #25087, Support for 32-bit modes in...

 
 

bug #25087: Support for 32-bit modes in VGABios cirrus

Submitted by:  None
Submitted on:  Sat 13 Dec 2008 07:15:41 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 13 Dec 2008 07:15:41 PM UTC, original submission:

According to Cirrus Logic 'tm CL-GD5446 Technical Reference Manual ( http://www.tjd.phlegethon.org/gd5446trm.pdf.gz ) - CL-GD5446 Chip (and later - GD546x, GD5480) supports 32-bit color modes. To set these modes you must have a card with 2Mb of ram (qemu has 4Mb) and make a TWO little different registers setup comparing to 24-bit modes.

1. SEQUENCER REGISTER SR7 - Extended sequencer mode [Outport(0x3C4,0x??07)]

640x480 24-bit mode: 0x15 (sets 24-bit color mode)
640x480 32-bit mode: 0x19 (sets 32-bit color mode)

2. CRTC OFFSET REGISTER CR13 [Outport(0x3D4,0x??13), bit 8 at CR1b[4] i.e. 0x10 ]

how to calculate it:

640x480 24-bit mode: 640 / 8 * 24 / 8 = 240 i.e. 0x00F0
640x480 32-bit mode: 640 / 8 * 32 / 8 = 320 i.e. 0x0140

now set it:

640x480 24-bit mode: 0x0F0 (sets 24-bit color mode)
set CR13 to 0xF0, set bit4 of CR1B to 0
640x480 32-bit mode: 0x140 (sets 32-bit color mode)
set CR13 to 0x40, set bit4 of CR1B to 1

Thats all. I attach a screenshot that demonstrates 32-bit color in qemu0.9.0+winnt4 in non-standard mode using this technique.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17052:  qemu.PNG added by None (28kB - image/png - Support for 32-bit modes in VGABios cirrus)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Sat 13 Dec 2008 07:15:42 PM UTCNoneAttached File-=>Added qemu.PNG, #17052

Back to the top


Powered by Savane 3.1-cleanup