diff options
Diffstat (limited to 'src/ast_vgatool.c')
-rw-r--r-- | src/ast_vgatool.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ast_vgatool.c b/src/ast_vgatool.c index e79cd9c..063775b 100644 --- a/src/ast_vgatool.c +++ b/src/ast_vgatool.c @@ -673,21 +673,21 @@ ASTGetScratchOptions(ScrnInfoPtr pScrn) if ((pAST->jChipType == AST2300) || (pAST->jChipType == AST2400) || (pAST->jChipType == AST2500)) { GetIndexRegMask(CRTC_PORT, 0xD1, 0x0E, jReg); - switch (jReg) - { - case 0x04: - pAST->jTxChipType = Tx_Sil164; - break; + switch (jReg) + { + case 0x04: + pAST->jTxChipType = Tx_Sil164; + break; case 0x08: - pAST->pDP501FWBufferVirtualAddress = (UCHAR*) calloc(1, 32*1024); - if (pAST->pDP501FWBufferVirtualAddress) - { - if (BackupM68KFW(pScrn, pAST->pDP501FWBufferVirtualAddress, 32*1024) == FALSE) - { - free(pAST->pDP501FWBufferVirtualAddress); - pAST->pDP501FWBufferVirtualAddress = NULL; - } - } /* Backup DP501 FW */ + pAST->pDP501FWBufferVirtualAddress = (UCHAR*) calloc(1, 32*1024); + if (pAST->pDP501FWBufferVirtualAddress) + { + if (BackupM68KFW(pScrn, pAST->pDP501FWBufferVirtualAddress, 32*1024) == FALSE) + { + free(pAST->pDP501FWBufferVirtualAddress); + pAST->pDP501FWBufferVirtualAddress = NULL; + } + } /* Backup DP501 FW */ case 0x0c: pAST->jTxChipType = Tx_DP501; break; |