diff options
author | Egbert Eich <eich@suse.de> | 2014-04-24 17:25:03 +0200 |
---|---|---|
committer | Egbert Eich <eich@freedesktop.org> | 2014-04-30 17:25:24 +0200 |
commit | a833ba0b6cd6b6a449ddfed0b4753bc6f8dcb305 (patch) | |
tree | 5fae2682cd787c66ca33ea37c10f6efbd54b3781 /src/ast.h | |
parent | e87938b319fd864f3f65527240d45a8ae234193f (diff) |
Clean up namespace in ast_vgatools.c
- Make local functions static
This sometimes helps the compiler to optimize.
- Make sure exported functions have 'AST' in their name.
This avoids name space conflicts with the server or other drivers.
- Place declaration of exported functions in a header file.
This ensures that changes to the function type or arguments are followed
thru everywhere.
Signed-off-by: Egbert Eich <eich@suse.de>
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
Diffstat (limited to 'src/ast.h')
-rw-r--r-- | src/ast.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -305,6 +305,30 @@ typedef struct _ASTRec { #define ASTPTR(p) ((ASTRecPtr)((p)->driverPrivate)) +/* ast_vgatool.c */ +extern Bool bASTIsVGAEnabled(ScrnInfoPtr pScrn); +extern Bool ASTGetVGA2EDID(ScrnInfoPtr pScrn, unsigned char *pEDIDBuffer); +extern void ASTDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags); +extern void vASTLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, LOCO *colors, VisualPtr pVisual); +extern void ASTBlankScreen(ScrnInfoPtr pScreen, Bool unblack); +extern void vAST1000DisplayOn(ScrnInfoPtr pScrn); +extern void vAST1000DisplayOff(ScrnInfoPtr pScrn); +extern void vASTSetStartAddressCRT1(ASTRecPtr pAST, ULONG base); +extern void ASTGetScratchOptions(ScrnInfoPtr pScrn); +void ASTGetChipType(ScrnInfoPtr pScrn); +ULONG ASTGetMaxDCLK(ScrnInfoPtr pScrn); +ULONG ASTGetVRAMInfo(ScrnInfoPtr pScrn); +void ASTGetDRAMInfo(ScrnInfoPtr pScrn); +Bool bASTRegInit(ScrnInfoPtr pScrn); +void vASTOpenKey(ScrnInfoPtr pScrn); +Bool ASTReadEDID_M68K(ScrnInfoPtr pScrn, BYTE *pEDIDData); +UCHAR ASTGetLinkMaxCLK(ScrnInfoPtr pScrn); +Bool ASTGetVGAEDID(ScrnInfoPtr pScrn, unsigned char *pEDIDBuffer); +Bool bASTInitAST1180(ScrnInfoPtr pScrn); +void ASTGetAST1180DRAMInfo(ScrnInfoPtr pScrn); +void vASTEnableVGAMMIO(ScrnInfoPtr pScrn); +Bool ASTInitVGA(ScrnInfoPtr pScrn, ULONG Flags); + /* Include Files */ #include "ast_mode.h" #include "ast_vgatool.h" |