Commit Graph

191 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
8473f1418a bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 16:29:01 +01:00
Alan Coopersmith
aebbb3fbf5 Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/14>
2025-12-08 16:15:06 +01:00
b-aaz
aa2ae84941 configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-chips-1.5.0.2
2025-07-29 18:55:36 +02:00
Enrico Weigelt, metux IT consult
b2388fb8bd .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-24 20:34:52 +02:00
callmetango
5e4c115100 .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 17:07:04 +02:00
Alan Coopersmith
20faed64b6 Improve man page formatting
More closely follow common style as described on
https://man7.org/linux/man-pages/man7/man-pages.7.html
and fix warnings raised by `mandoc -T lint` and `groff -rCHECKSTYLE=10`

Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/13>
xlibre-xf86-video-chips-1.5.0.1
2025-06-01 17:27:49 -07:00
Enrico Weigelt, metux IT consult
4503aece04 drop ancient 1bpp and 4bpp support
This had been removed from Xserver almost two decades ago (2008).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/12>
2024-06-05 11:33:57 +02:00
Enrico Weigelt, metux IT consult
35450f9871 Fix commend on endif
The symbol HAVE_ISA is gone, the one thats closed by this endif is USE_MIBANK.

Fixes: 30fe3074c5
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/11>
2024-05-23 11:14:25 +02:00
Alan Coopersmith
30fe3074c5 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, ISA, and pre-pciaccess X servers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/9>
2024-05-12 16:31:37 -07:00
Enrico Weigelt, metux IT consult
f189faf98b 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-chips/-/merge_requests/8>
2024-05-11 19:52:26 +00:00
Enrico Weigelt, metux IT consult
34483e1ba9 use XNFalloc() instead of xnfalloc
xnfalloc is just an alias for XNFalloc() 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-chips/-/merge_requests/8>
2024-05-11 19:52:26 +00:00
nia
1f2f3ada40 EXA acceleration support for ct65550 from NetBSD
Work by Michael Lorenz

XXX netbsd may be the last real consumer of this driver.

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/7>
2024-05-04 10:47:44 +02:00
Enrico Weigelt, metux IT consult
0e53fffa4b ct_driver: define XMODE_'s if not defined yet
Traditionally they've been defined in Xorg server headers, but since this
driver seems to be the only consumer, it makes sense moving them here.
(and later drop them from xorg headers)

Explicitly guarding it, so it also works with xorg headers version still
carrying those symbols.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/merge_requests/6>
2024-03-25 13:48:40 +01:00
Alan Coopersmith
0bb1c9ec61 xf86-video-chips 1.5.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-chips-1.5.0
2024-03-24 11:48:07 -07:00
Alan Coopersmith
b8b3a9e5b3 Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions
The Xorg headers provide their own versions of strlcat, strlcpy, and
timingsafe_memcmp for platforms that don't have them in libc yet, but
rely on configure to set HAVE_* defines to determine if they should be
defined in the headers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17 15:52:41 -08:00
Alan Coopersmith
005a3d281f Remove ifdef checks for non-Solaris SVR4 systems
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17 15:49:19 -08:00
Alan Coopersmith
e9eb029d6e unifdef __USLC__
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17 15:46:41 -08:00
Alan Coopersmith
2155e139c7 unifdef __SCO__
../common/scoasm.h didn't even exist, so this would have broken the
build if it was ever set

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17 15:45:47 -08:00
Alan Coopersmith
1252237542 unifdef Lynx
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17 15:44:33 -08:00
Alan Coopersmith
e0d87dd8e6 unifdef NCR
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17 15:41:58 -08:00
Alan Coopersmith
0fd51582d9 AsmMacros.h: convert function definitions from K&R to C89
Fixes many -Wold-style-definition & -Wstrict-prototypes warnings

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-06 09:27:20 -08:00
Alan Coopersmith
009e8cd656 Handle 4 -Wmissing-prototypes warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-06 09:19:19 -08:00
Alan Coopersmith
17d22a0c0f Fix -Wmisleading-indentation warning in chipsPreInitHiQV()
ct_driver.c: In function ‘chipsPreInitHiQV’:
ct_driver.c:1928:21: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 1928 |                     if ((pMon = xf86PrintEDID(xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn),
      |                     ^~
ct_driver.c:1931:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 1931 |                        xf86SetDDCproperties(pScrn,pMon);
      |                        ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-06 09:15:20 -08:00
Alan Coopersmith
3010ffc8ec Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-06 09:13:22 -08:00
Alan Coopersmith
a4a96b580d configure: quote call to AC_LANG_SOURCE in AC_LINK_IFELSE
Clears autoconf warning:

configure.ac:107: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from...
./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from...
configure.ac:107: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-06 09:07:14 -08:00
Alan Coopersmith
d7a23964c8 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-06 09:03:33 -08:00
Alan Coopersmith
5da1b77bfa gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01 12:45:07 -07:00
Alan Coopersmith
9bce7e28c0 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09 12:06:55 -08:00
Alan Coopersmith
94464a708c gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 09:46:15 -08:00
Alan Coopersmith
7f216da92e 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-22 09:42:47 -08:00
Alan Coopersmith
dd4337729a Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 09:38:38 -08:00
Kevin Brace
7d9a0594a0 Version bumped to 1.4.0
Bug fix release to address non-HiQVideo Chips & Technologies device
initialization code crashing the X Server.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
xf86-video-chips-1.4.0
2019-02-15 15:39:38 -08:00
Kevin Brace
c5e70111d6 Fix for a faulty new vgaHW ABI conversion on non-HiQ Video devices
Unfortunately, commit 989cf4f1fb
missed inserting a call to vgaHWSetStdFuncs prior to calling
vgaHWGetIOBase for non-HiQ Video devices, so this will cause a crash
with the X Server.  The code has three different chipsPreInit* to
handle some aspects of a PreInit callback, but only chipsPreInitHiQV
function has the correct code.  Added the call to vgaHWSetStdFuncs
for chipsPreInit655xx and chipsPreInitWingine functions.  This bug
was observed on Chips & Technologies 65548.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-02-12 15:47:07 -08:00
Kevin Brace
18c04e66a1 Version bumped to 1.3.0
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
xf86-video-chips-1.3.0
2018-12-25 08:24:18 -06:00
Kevin Brace
a6b3a9c41c Suppress logical operation and parenthesis related compilation warning
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25 08:11:14 -06:00
Kevin Brace
b20817b3a5 Use const char for xf86GetOptValString return type
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25 08:10:08 -06:00
Alan Coopersmith
6ee25959a6 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 13:07:21 -08:00
Mihail Konev
c2711eedaa autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
8413ac7c58 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
abd452ae55 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:23:46 +10:00
Alan Coopersmith
ebb8922c43 autogen.sh: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26 11:16:37 +10:00
Alan Coopersmith
32be6e8e6c configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26 11:16:37 +10:00
Matt Turner
fbda230cbc xf86-video-chips 1.2.7
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-video-chips-1.2.7
2017-01-17 14:38:03 -08:00
Adam Jackson
aa82ecb140 Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-07-19 10:17:13 -04:00
Matt Turner
c54ddcf722 xf86-video-chips 1.2.6
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-video-chips-1.2.6
2015-09-26 09:30:48 -07:00
Adam Jackson
9187d76bd4 Update for xserver 1.17
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-10-17 09:49:26 -04:00
Adam Jackson
bb03c06322 ddc: Use own thunk function instead of vgaHWddc1SetSpeedWeak
I plan to remove the Weak functions from future servers.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21 09:38:35 -04:00
Alan Coopersmith
2dd89243cc Require ANSI C89 pre-processor, drop pre-C89 token pasting support
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-24 22:37:38 -07:00
Adam Jackson
151a1ec855 Remove mibstore.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25 08:54:34 -04:00
Alan Coopersmith
bde65934fe Add iopl.h to source lists in util/Makefile.am so it gets packaged
Was missed when it was created in commit c421f2477c, since
"make distcheck" passes due to configure determining it can't
build the utils without the header and moving on.

Reported-by: Andreas Radke <a.radke@arcor.de>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-21 09:27:10 -07:00