summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorY.C. Chen <yc_chen@aspeedtech.com>2009-01-16 15:00:56 +0800
committerY.C. Chen <yc_chen@aspeedtech.com>2009-01-16 15:00:56 +0800
commitc61961e23d379b76921ce797fdfec377d2c1abea (patch)
tree99ac4bc405e904fe7c7e9f0371772c299352a7ee /src
parent619ec11075571f80de2c4556e324e4c04555ec90 (diff)
Fixed the support mode issue on Solaris 10 x86xf86-video-ast-0.88.8
Diffstat (limited to 'src')
-rw-r--r--src/ast_driver.c2
-rw-r--r--src/ast_vgatool.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ast_driver.c b/src/ast_driver.c
index 7718c29..920987b 100644
--- a/src/ast_driver.c
+++ b/src/ast_driver.c
@@ -602,7 +602,7 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
from = X_CONFIG;
} else {
if (PCI_REGION_BASE(pAST->PciInfo, 1, REGION_MEM)) {
- pAST->MMIOPhysAddr = PCI_REGION_BASE(pAST->PciInfo, 1, REGION_IO) & 0xFFFF0000;
+ pAST->MMIOPhysAddr = PCI_REGION_BASE(pAST->PciInfo, 1, REGION_MEM) & 0xFFFF0000;
from = X_PROBED;
} else {
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
diff --git a/src/ast_vgatool.c b/src/ast_vgatool.c
index 9319d58..9990cda 100644
--- a/src/ast_vgatool.c
+++ b/src/ast_vgatool.c
@@ -194,9 +194,13 @@ GetMaxDCLK(ScrnInfoPtr pScrn)
/* Add for AST2100, ycchen@061807 */
if ((pAST->jChipType == AST2100) || (pAST->jChipType == AST2200))
+ {
if (ulDCLK > 200) ulDCLK = 200;
+ }
else
+ {
if (ulDCLK > 165) ulDCLK = 165;
+ }
return(ulDCLK);