summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-05-28drop compat with ancient xserversHEADmasterEnrico Weigelt, metux IT consult
We're relying on 1.18 now, so drop compat with older ones. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/11>
2024-05-22drop obsolete check for REGION_NULLEnrico Weigelt, metux IT consult
Our minimal version is known to have it, so no check needed anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/11>
2024-05-12Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)Alan Coopersmith
Already effectively required by use of XNFcallocarray() introduced in xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015. Allows dropping remnants of code for XAA and pre-pciaccess X servers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/9>
2024-05-08use XNFcallocarray() instead of xnfcalloc macroEnrico Weigelt, metux IT consult
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/8>
2024-01-05Handle a -Wformat warningAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05Handle 2 -Wdeclaration-after-statement warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05Handle 12 -Wmissing-prototypes warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-18Res1280x800Table: Fix a typo on hexa value.Elyes HAOUAS
Replace "... AST2500PreCatchCRT), 60, 2, 35 }" with "... AST2500PreCatchCRT), 60, 2, 0x35 }"
2022-11-10Do not hang if P2A is disabled, using sensible defaults instead.Daniel O'Connor
Based on Linux DRM https://patchwork.kernel.org/patch/9578793/
2022-10-17ast_vgatool: Fix indentation in ASTGetScratchOptions()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17ast_vgatool: Fix -Wold-style-declaration warningAlan Coopersmith
ast_vgatool.c:3400:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] void static vGetDefaultSettings(ScrnInfoPtr pScrn) ^~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17ast_mode: Eliminate unused DAC_TEXT & DAC_EGA arraysAlan Coopersmith
At top level: ast_mode.c:389:23: warning: ‘DAC_EGA’ defined but not used [-Wunused-variable] static VBIOS_DAC_INFO DAC_EGA[] = { ^~~~~~~ ast_mode.c:370:23: warning: ‘DAC_TEXT’ defined but not used [-Wunused-variable] static VBIOS_DAC_INFO DAC_TEXT[] = { ^~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17WriteAST1180SOC: Add _X_UNUSED attribute to temp variableAlan Coopersmith
Clears 67 out of 84 warnings of the form: In file included from ast_cursor.c:53:0: ast_cursor.c: In function ‘ASTLoadCursorImage’: ast_vgatool.h:149:15: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable] ULONG temp; \ ^ ast_cursor.c:293:9: note: in expansion of macro ‘WriteAST1180SOC’ WriteAST1180SOC(AST1180_GFX_BASE+AST1180_HWC1_PATTERNADDR, ulPatternAddr); ^~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-17Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-08-14Support AST2500Y.C. Chen
2015-08-14Fixed Failed to Init when ASPEED Graphics is SecondaryY.C. Chen
2015-08-13Fixed Transient Noise While System Resume from HibernateY.C. Chen
2015-08-13use same search mode criteria with ast drm driverY.C. Chen
2014-08-18Use proper type.Thomas Klausner
Two other places in this file already use uint32_t when passing it to PCI_READ_LONG. Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-08-08Update DP501FW CodeY.C. Chen
2014-08-08 Fixed 1600x900 cannot display properlyY.C. Chen
2014-04-30Add _AST_H_ define to ast.hEgbert Eich
Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Move firmware for DP501 to a separate fileEgbert Eich
This makes ast_vgatools.c much more readable. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Fix ABI version conflict in xf86UnclaimPciSlot()Egbert Eich
xf86UnclaimPciSlot() received a GDevPtr as 2nd argument with ABI_VIDEODRV_VERSION 13. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Fix typoEgbert Eich
Chontel -> Chrontel Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Include local headers only when neededEgbert Eich
Move inclusion of local headers from ast.h to the individual files. Include only those headers which are needed. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Clean up namespace in ast_tool.cEgbert Eich
- Made sure exported functions have 'AST' in their name. This avoids name space conflicts with the server or other drivers. - Placed 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>
2014-04-30Clean up namespace in ast_accel.cEgbert Eich
- Made sure exported functions have 'AST' in their name. This avoids name space conflicts with the server or other drivers. - Placed 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>
2014-04-30Clean up namespace in ast_mode.cEgbert Eich
- Make local functions static This sometimes helps the compiler to optimize. - Made sure exported functions have 'AST' in their name. This avoids name space conflicts with the server or other drivers. - Placed 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>
2014-04-30Clean up namespace in ast_cursor.cEgbert Eich
- 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>
2014-04-30Clean up namespace in ast_2dtool.cEgbert Eich
- 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>
2014-04-30Clean up namespace in ast_vgatools.cEgbert Eich
- 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>
2014-04-30Remove unused functions from ast_vgatools.cEgbert Eich
SetI2CReg(), GetI2CReg() wait_fw_ready(), read_data() and clear_cmd() are used nowhere currently. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Fix compiler warnings: add DrawablePtr argument to ASTPutImageEgbert Eich
An archaeological survey revealed that this ABI change took place in 2006 already. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Fix compiler warnings: get rid of deprecated IOADDRESSEgbert Eich
For newer ABI versions IOADDRESS can be replaced by int which is big enough to hold an PIO offset. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30Fix compiler warnings: get rid if xf86PciInfo.hEgbert Eich
xf86PciInfo.h is not needed in the ASpeed driver at all. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-03-19Support DP501 Display OutputY.C. Chen
2014-03-19Support AST2400Y.C. Chen
2014-03-18Fixed driver name in error message about KMS active.Stefan Dirsch
Seems some code came from cirrus driver by copy & paste. Fixed this in error message about device already in use by KMS module. Signed-off-by: Stefan Dirsch <sndirsch@suse.de> Reviewed-by: Dave Airlie <airlied@redhat.com>
2014-03-18ast: fix falling back after kernel checkStefan Dirsch
if we find a kernel driver the code leave the pci slot claimed which stops us falling back. unclaim the pci slot. patch inspired by correspondant patch for cirrus driver by Dave Airlie. Signed-off-by: Stefan Dirsch <sndirsch@suse.de> Reviewed-by: Dave Airlie <airlied@redhat.com>
2014-03-18Revert "Support AST2400"Stefan Dirsch
This reverts commit 7f24775a468066601a79beaffb4efa5a36c5ed59.
2014-03-18Revert " Support DP501 Output"Stefan Dirsch
This reverts commit 2a2ecb551781d89e8e2a3123bb7d5b20ee807953.
2014-03-14 Support DP501 OutputY.C. Chen
2014-03-14Support AST2400Y.C. Chen
2013-08-07Support ShadowFB if no XAAY.C. Chen
2013-08-07Fixed Display Abnormal Issue with GOP DriverY.C. Chen
2013-08-05Fixed S3 Resume Failed IssueY.C. Chen
2013-08-02Modify for DRAM Initial SettingsY.C. Chen
2013-07-31Cleanup leading/trailing whitespace in source filesAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>