xfree86: drivers: chips: add the driver to the build

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-21 17:37:08 +02:00
parent fd8b7b6afc
commit bb7879d031
17 changed files with 97 additions and 49 deletions

View File

@@ -1,8 +1,8 @@
.\" shorthand for double quote that works everywhere.
.ds q \N'34'
.TH CHIPS __drivermansuffix__ 2011-03-29 __vendorversion__
.TH CHIPS @drivermansuffix@ 2011-03-29 @vendorversion@
.SH NAME
chips \- Chips and Technologies video driver for Xorg
chips \- Chips and Technologies video driver for Xlibre
.SH SYNOPSIS
.nf
.B "Section \*qDevice\*q"
@@ -13,7 +13,7 @@ chips \- Chips and Technologies video driver for Xorg
.fi
.SH DESCRIPTION
.B chips
is an Xorg driver for Chips and Technologies video processors.
is an Xlibre driver for Chips and Technologies video processors.
The majority of the Chips and Technologies chipsets are supported by this driver.
In general the limitation on the capabilities of this driver are determined by
the chipset on which it is run.
@@ -78,7 +78,7 @@ overlay mode.
Full acceleration is supplied for all chipsets.
.SH CONFIGURATION DETAILS
Please refer to
.BR xorg.conf (__filemansuffix__)
.BR xorg.conf (@filemansuffix@)
for general configuration details.
This section only covers configuration details specific to this driver.
.PP
@@ -236,10 +236,10 @@ of what the BIOS is saying set this option to off.
Don't set it to off if a panel is connected.
Default: value probed by BIOS.
.SH "SEE ALSO"
.BR Xorg (__appmansuffix__),
.BR xorg.conf (__filemansuffix__),
.BR Xserver (__appmansuffix__),
.BR X (__miscmansuffix__)
.BR Xorg (@appmansuffix@),
.BR xorg.conf (@filemansuffix@),
.BR Xserver (@appmansuffix@),
.BR X (@miscmansuffix@)
.PP
You are also recommended to read the README file that comes with the driver
source, which discusses the

View File

@@ -0,0 +1,48 @@
driver_video_chips_srcs = [
'src/ct_bank.c',
'src/ct_cursor.c',
'src/ct_dga.c',
'src/ct_shadow.c',
'src/ct_accel.c',
'src/ct_ddc.c',
'src/ct_driver.c',
'src/ct_exa.c',
'src/ct_regs.c',
'src/ct_video.c'
]
shared_module(
'chips_drv',
driver_video_chips_srcs,
name_prefix: '',
include_directories: [inc, xorg_inc],
c_args: xorg_c_args,
dependencies: [
common_dep,
],
install: true,
install_dir: join_paths(module_abi_dir, 'drivers'),
)
# Test that we don't have any unresolved symbols from our module to Xorg.
xorg_build_root = join_paths(meson.project_build_root(), 'hw', 'xfree86')
symbol_test_args = []
symbol_test_args += join_paths(xorg_build_root, 'libxorgserver.so')
symbol_test_args += join_paths(xorg_build_root, 'dixmods', 'libshadow.so')
symbol_test_args += join_paths(xorg_build_root, 'dixmods', 'libglx.so')
symbol_test_args += join_paths(xorg_build_root, 'drivers', 'video-chips', 'chips_drv.so')
test('video-chips symbol test',
xorg_symbol_test,
args: symbol_test_args,
)
install_man(configure_file(
input: 'man/chips.man',
output: 'chips.4',
configuration: manpage_config,
))
subdir('util')

View File

@@ -28,6 +28,8 @@
#ifndef COMPAT_API_H
#define COMPAT_API_H
typedef void *pointer;
#ifndef GLYPH_HAS_GLYPH_PICTURE_ACCESSOR
#define GetGlyphPicture(g, s) GlyphPicture((g))[(s)->myNum]
#define SetGlyphPicture(g, s, p) GlyphPicture((g))[(s)->myNum] = p

View File

@@ -20,10 +20,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
/*
* When monochrome tiles/stipples are cached on the HiQV chipsets the

View File

@@ -27,10 +27,7 @@
* negligence, tort, under statute, in equity, at law or otherwise, even if
* advised of the possibility of such damage.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
#define PSZ 8

View File

@@ -24,10 +24,7 @@
* Written by Alan Hourihane <alanh@fairlite.demon.co.uk>
* Modified for Chips and Technologies by David Bateman <dbateman@eng.uts.edu.au>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
/* All drivers should typically include these */
#include "xf86.h"

View File

@@ -1,7 +1,4 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
/* All drivers should typically include these */
#include "xf86.h"

View File

@@ -1,7 +1,4 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
#include "xf86.h"
#include "xf86_OSproc.h"

View File

@@ -67,10 +67,7 @@
* negligence, tort, under statute, in equity, at law or otherwise, even if
* advised of the possibility of such damage.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
/* All drivers should typically include these */
#include "xf86.h"

View File

@@ -26,7 +26,6 @@
#ifndef _CT_DRIVER_H_
#define _CT_DRIVER_H_
#include "config.h"
#include "ct_pcirename.h"
#include "exa.h"
#include "vbe.h"

View File

@@ -22,13 +22,10 @@
*/
/* $NetBSD: ct_exa.c,v 1.3 2017/02/16 15:05:57 macallan Exp $ */
#include <dix-config.h>
#include <sys/types.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* All drivers should typically include these */
#include "xf86.h"
#include "xf86_OSproc.h"

View File

@@ -19,10 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
/*
* The functions in this file are used to read/write the C&T extension register

View File

@@ -1,7 +1,4 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
#include "xf86.h"
#include "xf86_OSproc.h"

View File

@@ -1,7 +1,4 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dix-config.h>
#include "xf86.h"
#include "xf86_OSproc.h"

View File

@@ -0,0 +1,23 @@
dRegs = executable(
'dRegs',
[ 'dRegs.c' ],
install: true,
)
mRegs = executable(
'mRegs',
[ 'mRegs.c' ],
install: true,
)
modClock = executable(
'modClock',
[ 'modClock.c' ],
install: true,
)
memClock = executable(
'memClock',
[ 'modClock.c' ],
install: true,
)

View File

@@ -13,3 +13,7 @@ endif
if get_option('xf86-video-ast')
subdir('ast')
endif
if get_option('xf86-video-chips')
subdir('chips')
endif

View File

@@ -129,6 +129,8 @@ option('xf86-video-ark', type: 'boolean', value: true,
description: 'xf86 video driver for ARK graphics chips')
option('xf86-video-ast', type: 'boolean', value: true,
description: 'xf86 video driver for AST graphics chips')
option('xf86-video-chips', type: 'boolean', value: true,
description: 'xf86 video driver for CHIPS graphics chips')
option('tests', type: 'boolean', value: true,
description: 'Build tests for the X server on platforms that support it')