Commit Graph

72 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
dfac8545b9 drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:42:03 +01:00
Enrico Weigelt, metux IT consult
15daa0f864 drop obsolete HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-17 19:26:25 +01:00
Alan Coopersmith
daab9776fd ASTDoDDC: Handle 25 -Wmaybe-uninitialized warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/15>
2025-12-09 15:04:53 +01:00
Alan Coopersmith
53c78493f6 ASTProbe: stop leaking memory returned by xf86GetEntityInfo()
Fixes: 7ce3a2b ("Initial code release from ASPEED Technology Inc.")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/15>
2025-12-09 15:04:02 +01:00
Alan Coopersmith
a486313172 ASTStopVideo: drop unused variable pAST
ast_driver.c: In function ‘ASTStopVideo’:
ast_driver.c:1800:12: warning: unused variable ‘pAST’ [-Wunused-variable]
 1800 |     ASTPtr pAST = ASTPTR(pScrn);
      |            ^~~~

Fixes: b4466da ("xf86-video-ast-0.92.02")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/15>
2025-12-09 14:48:44 +01:00
Alan Coopersmith
e4728353b5 ASTSaveScreen: Fix build on SPARC
ast_driver.c: In function ‘ASTSaveScreen’:
ast_driver.c:1257:1: error: no return statement in function returning
 non-void [-Werror=return-type]
 1257 | }
      | ^

Fixes: dc971ee ("fix segmentation fault issue if enable XEN")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/15>
2025-12-09 14:48:44 +01: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
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
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
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
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
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
7c7fc069b7 Fix compiler warnings: add DrawablePtr argument to ASTPutImage
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-30 17:25:14 +02:00
Egbert Eich
0ddf408f17 Fix compiler warnings: get rid of deprecated IOADDRESS
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-30 17:25:05 +02:00
Egbert Eich
e855e6806e Fix compiler warnings: get rid if xf86PciInfo.h
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-04-30 17:23:00 +02:00
Y.C. Chen
0bbae30ffc Support DP501 Display Output 2014-03-19 09:48:51 +08:00
Y.C. Chen
b308902b4a Support AST2400 2014-03-19 09:12:26 +08:00
Stefan Dirsch
f4fa79c12c Fixed driver name in error message about KMS active.
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-18 12:00:12 +01:00
Stefan Dirsch
e54f2fdb7a ast: fix falling back after kernel check
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-18 11:58:39 +01:00
Stefan Dirsch
a40c98a483 Revert "Support AST2400"
This reverts commit 7f24775a46.
2014-03-18 11:56:19 +01:00
Stefan Dirsch
99e07e0341 Revert " Support DP501 Output"
This reverts commit 2a2ecb5517.
2014-03-18 11:56:16 +01:00
Y.C. Chen
2a2ecb5517 Support DP501 Output 2014-03-14 22:52:11 +08:00
Y.C. Chen
7f24775a46 Support AST2400 2014-03-14 18:23:04 +08:00
Y.C. Chen
c1580a0f46 Support ShadowFB if no XAA 2013-08-07 14:49:47 +08:00
Y.C. Chen
2e57123b7c Fixed Display Abnormal Issue with GOP Driver 2013-08-07 13:39:29 +08:00
Y.C. Chen
9ab60c6383 Fixed S3 Resume Failed Issue 2013-08-05 23:46:47 +08:00
Alan Coopersmith
996fdaed69 Cleanup leading/trailing whitespace in source files
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-31 23:17:50 -07:00
Y.C. Chen
15b22ad50d Support 1360x768 and 1600x900 Resolutions 2013-08-01 21:47:29 +08:00
Adam Jackson
0833e0086b Remove mibstore.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25 08:54:33 -04:00
Adam Jackson
358ef4a53e Don't bother to include vbe.h
This driver no longer uses VBE, so this can go.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-15 13:22:14 -04:00
Dave Airlie
138d1ea012 ast: deal with XAA removal.
This deals with the removal of XAA from the server, should
fix tinderbox.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-13 14:33:47 +10:00
Dave Airlie
1af03ed39b ast: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06 12:00:14 +01:00
Dave Airlie
f981caeb7e ast: don't bind to device if there is a loaded PCI driver.
This stops this driver being used on top of the kernel modesetting
driver, so fallback works correctly.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-17 10:27:50 +01:00
Y.C. Chen
c954c0874b revert the code changed by Adam Jackson 2012-04-04 04:21:55 +08:00
Y.C. Chen
dc971ee25a fix segmentation fault issue if enable XEN 2012-04-03 18:00:50 +08:00
Dave Airlie
7a455573ff Revert "xf86-video-ast-ast 0.95.00"
This reverts commit 6f0b593c27.
2012-04-03 10:01:53 +01:00
root
6f0b593c27 xf86-video-ast-ast 0.95.00 2012-04-03 19:58:42 +08:00
Adam Jackson
d07efd4f80 Fix for new vgaHW ABI
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19 17:45:12 -05:00
Adam Jackson
d5f706dc5a Make failure to XAA non-fatal
No shadowfb support in this driver yet.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19 16:15:49 -05:00
Adam Jackson
706f4931bf Check ABI major not encoded ABI
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-11-17 15:51:42 -05:00