Commit Graph

150 Commits

Author SHA1 Message Date
Semenov Herman
426c80e9be Fixed disabled RAMDAC for A1 reg
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/12>
2024-10-06 19:09:16 +03:00
Enrico Weigelt, metux IT consult
db56de34bd drop compat with ancient xservers
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-28 10:30:46 +02:00
Enrico Weigelt, metux IT consult
309e8bf6ca drop obsolete check for REGION_NULL
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-22 21:00:06 +02:00
Alan Coopersmith
9f932c7d5e Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
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-12 15:55:24 -07:00
Enrico Weigelt, metux IT consult
4b72faa322 use XNFcallocarray() instead of xnfcalloc macro
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-05-08 14:32:06 +02:00
Alan Coopersmith
55a72385a4 Handle a -Wformat warning
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 18:56:25 -08:00
Alan Coopersmith
2352780cd7 Handle 2 -Wdeclaration-after-statement warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 18:53:48 -08:00
Alan Coopersmith
70582d8282 Handle 12 -Wmissing-prototypes warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 18:47:48 -08:00
Alan Coopersmith
338ec0a217 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 18:45:12 -08:00
Alan Coopersmith
3262c6e82f configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.

Clears autoconf warnings:
configure.ac:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:44: You should run autoupdate.
aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
configure.ac:44: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 18:42:31 -08:00
Alan Coopersmith
6558ea686d gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01 12:35:27 -07:00
Alan Coopersmith
7b8c415f42 xf86-video-ast 1.1.6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-ast-1.1.6
2022-12-08 16:13:56 -08:00
Elyes HAOUAS
4bcb826087 Res1280x800Table: Fix a typo on hexa value.
Replace "... AST2500PreCatchCRT), 60, 2, 35 }"
with "... AST2500PreCatchCRT), 60, 2, 0x35 }"
2022-11-18 15:21:09 -08:00
Daniel O'Connor
0e0fd56d9f Do not hang if P2A is disabled, using sensible defaults instead.
Based on Linux DRM https://patchwork.kernel.org/patch/9578793/
2022-11-10 16:43:54 -08:00
Alan Coopersmith
773f703d92 ast_vgatool: Fix indentation in ASTGetScratchOptions()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 10:53:55 -07:00
Alan Coopersmith
19cf45e2a4 ast_vgatool: Fix -Wold-style-declaration warning
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-17 10:53:55 -07:00
Alan Coopersmith
065ed43c44 ast_mode: Eliminate unused DAC_TEXT & DAC_EGA arrays
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-17 10:53:55 -07:00
Alan Coopersmith
f9dcbd53e7 WriteAST1180SOC: Add _X_UNUSED attribute to temp variable
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-10-17 10:53:55 -07:00
Alan Coopersmith
8026dbf57d gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 10:53:55 -07:00
Alan Coopersmith
7916e2a65c gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-17 15:25:47 -08:00
Alan Coopersmith
b90cfb94d6 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-17 15:25:05 -08:00
Alan Coopersmith
0b9cdc9594 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-17 15:19:50 -08:00
Alan Coopersmith
72e3f2e3e8 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 13:06:17 -08:00
Alan Coopersmith
a87ba3607d Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 12:14:44 -08:00
Mihail Konev
1dba6ba5a7 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
df8a9c009c autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:26:28 +10:00
Peter Hutterer
1eaafc834a autogen.sh: use exec instead of waiting for configure to finish
Syncs the invocation of configure with the one from the server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-26 11:25:39 +10:00
Colin Walters
d6253bc124 autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26 11:25:39 +10:00
Peter Hutterer
9dc95d058b configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:21:15 +10:00
Y.C. Chen
39e80895ac Bump Version to 1.1.5 xf86-video-ast-1.1.5 2015-08-19 09:21:37 +08:00
Y.C. Chen
74281c4ce2 Support AST2500 2015-08-14 15:30:00 +08:00
Y.C. Chen
9918d6f69a Fixed Failed to Init when ASPEED Graphics is Secondary 2015-08-14 10:11:23 +08:00
Y.C. Chen
e545ab905e Fixed Transient Noise While System Resume from Hibernate 2015-08-13 15:54:15 +08:00
Y.C. Chen
77e7ac37c6 use same search mode criteria with ast drm driver 2015-08-13 15:21:57 +08:00
Thomas Klausner
4f404aa29e Use proper type.
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-18 15:09:17 +08:00
Y.C. Chen
d531cac475 Bump Version to 1.0.1 xf86-video-ast-1.0.1 2014-08-08 16:51:07 +08:00
Y.C. Chen
85be2b8ecd Update DP501FW Code 2014-08-08 16:36:04 +08:00
Y.C. Chen
d0d76062f7 Fixed 1600x900 cannot display properly 2014-08-08 16:04:22 +08:00
Egbert Eich
9464094601 Add _AST_H_ define to ast.h
Signed-off-by: Egbert Eich <eich@suse.de>
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30 17:27:38 +02:00
Egbert Eich
364364910d Move firmware for DP501 to a separate file
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-30 17:27:34 +02:00
Egbert Eich
5bdd2cac0b Fix ABI version conflict in xf86UnclaimPciSlot()
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-30 17:27:29 +02:00
Egbert Eich
06245e2283 Fix typo
Chontel -> Chrontel

Signed-off-by: Egbert Eich <eich@suse.de>
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
2014-04-30 17:27:25 +02:00
Egbert Eich
72a9703ae4 Include local headers only when needed
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-30 17:27:19 +02:00
Egbert Eich
8fb9e10084 Clean up namespace in ast_tool.c
- 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-30 17:27:14 +02:00
Egbert Eich
00fa895306 Clean up namespace in ast_accel.c
- 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-30 17:27:09 +02:00
Egbert Eich
a70eac7e6e Clean up namespace in ast_mode.c
- 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-30 17:27:03 +02:00
Egbert Eich
28f815fe8b Clean up namespace in ast_cursor.c
- 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-30 17:25:35 +02:00
Egbert Eich
f6a2ba02b2 Clean up namespace in ast_2dtool.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>
2014-04-30 17:25:29 +02:00
Egbert Eich
a833ba0b6c 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>
2014-04-30 17:25:24 +02:00
Egbert Eich
e87938b319 Remove unused functions from ast_vgatools.c
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-30 17:25:19 +02:00