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


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

Submitter:  None
Submitted:  Sat 13 Dec 2008 07:15:41 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


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.



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

Attach Files:

Attached Files
file #17052:  qemu.PNG added by None (28KiB - 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


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.





Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2008-12-13 None Attached File- Added qemu.PNG, #17052

Back to the top

Powered by Savane 3.9