diff options
Diffstat (limited to 'src/ast_tool.c')
-rw-r--r-- | src/ast_tool.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ast_tool.c b/src/ast_tool.c index c2bfac6..7f1362e 100644 --- a/src/ast_tool.c +++ b/src/ast_tool.c @@ -19,7 +19,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ - + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -75,12 +75,12 @@ ASTMapMem(ScrnInfoPtr pScrn) PCI_DEV_MAP_FLAG_WRITABLE | PCI_DEV_MAP_FLAG_WRITE_COMBINE, result); - - if (err) + + if (err) return FALSE; } #endif - + if (!pAST->FBVirtualAddr) return FALSE; @@ -92,15 +92,15 @@ ASTUnmapMem(ScrnInfoPtr pScrn) { ASTRecPtr pAST = ASTPTR(pScrn); -#ifndef XSERVER_LIBPCIACCESS +#ifndef XSERVER_LIBPCIACCESS xf86UnMapVidMem(pScrn->scrnIndex, (pointer) pAST->FBVirtualAddr, pAST->FbMapSize); #else pci_device_unmap_range(pAST->PciInfo, pAST->FBVirtualAddr, pAST->FbMapSize); #endif - + pAST->FBVirtualAddr = 0; - + return TRUE; } @@ -130,8 +130,8 @@ ASTMapMMIO(ScrnInfoPtr pScrn) pAST->MMIOMapSize, PCI_DEV_MAP_FLAG_WRITABLE, result); - - if (err) + + if (err) return FALSE; } @@ -154,7 +154,7 @@ ASTUnmapMMIO(ScrnInfoPtr pScrn) pci_device_unmap_range(pAST->PciInfo, pAST->MMIOVirtualAddr, pAST->MMIOMapSize); #endif pAST->MMIOVirtualAddr = 0; - + } |