summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2012-05-27 10:31:48 +0000
committerTormod Volden <debian.tormod@gmail.com>2012-05-27 16:10:33 +0200
commit17277699fcf4794a90dfd6b56de27107fef94854 (patch)
tree3ee25a3fffd6a5c09fd87055173f2fdabde1db82
parent9eed26fd3b8f2d570dd2fa1df7ea60fad2035f83 (diff)
Fix output detection on ProSavage
The registers were found by running "s3switch regdump" after switching outputs on/off and changing TV format using s3switch. It seems like the TV output status can not be read on ProSavage. I have not checked whether it can be changed either. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--s3switch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/s3switch.c b/s3switch.c
index 246f1d7..99beca9 100644
--- a/s3switch.c
+++ b/s3switch.c
@@ -181,6 +181,13 @@ fetch_bios_data()
outb( 0x6b, 0x3d4 );
jDevices = inb( 0x3d5 );
}
+ else if( ChipClass == S3_PROSAVAGE )
+ {
+ outb( 0x5f, 0x3c4 );
+ jTvFormat = inb( 0x3c5 );
+ outb( 0x6b, 0x3d4 );
+ jDevices = inb( 0x3d5 );
+ }
else
{
outb( 0x6b, 0x3d4 );