Update to xf86-video-chips 1.2.2
This commit is contained in:
parent
b70d13b105
commit
eccc1caedd
@ -136,6 +136,7 @@ F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
@ -182,15 +183,9 @@ XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XSERVER_LIBPCIACCESS_FALSE = @XSERVER_LIBPCIACCESS_FALSE@
|
||||
XSERVER_LIBPCIACCESS_TRUE = @XSERVER_LIBPCIACCESS_TRUE@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DSYMUTIL = @ac_ct_DSYMUTIL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_NMEDIT = @ac_ct_NMEDIT@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
@ -207,24 +202,31 @@ build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
|
89
driver/xf86-video-chips/aclocal.m4
vendored
89
driver/xf86-video-chips/aclocal.m4
vendored
@ -7631,7 +7631,7 @@ AC_SUBST([am__tar])
|
||||
AC_SUBST([am__untar])
|
||||
]) # _AM_PROG_TAR
|
||||
|
||||
dnl xorg-macros.m4. Generated from xorg-macros.m4.in:xorgversion.m4 by configure.
|
||||
dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
|
||||
dnl
|
||||
dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
|
||||
dnl
|
||||
@ -7668,27 +7668,24 @@ dnl of the copyright holder.
|
||||
# your configure.ac with the minimum required version, such as:
|
||||
# XORG_MACROS_VERSION(1.1)
|
||||
#
|
||||
# To force at least a version with this macro defined, also add:
|
||||
# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
|
||||
# To ensure that this macro is defined, also add:
|
||||
# m4_ifndef([XORG_MACROS_VERSION],
|
||||
# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
|
||||
#
|
||||
#
|
||||
# See the "minimum version" comment for each macro you use to see what
|
||||
# version you require.
|
||||
AC_DEFUN([XORG_MACROS_VERSION],[
|
||||
[XORG_MACROS_needed_version=$1
|
||||
XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
|
||||
XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
|
||||
AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
|
||||
[XORG_MACROS_version=1.2.1
|
||||
XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
|
||||
XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
|
||||
if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
|
||||
AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
|
||||
fi
|
||||
if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
|
||||
AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
|
||||
fi
|
||||
AC_MSG_RESULT([yes, $XORG_MACROS_version])
|
||||
m4_defun([XORG_MACROS_VERSION],[
|
||||
m4_define([vers_have], [1.3.0])
|
||||
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
|
||||
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
|
||||
m4_if(m4_cmp(maj_have, maj_needed), 0,,
|
||||
[m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
|
||||
m4_if(m4_version_compare(vers_have, [$1]), -1,
|
||||
[m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
|
||||
m4_undefine([vers_have])
|
||||
m4_undefine([maj_have])
|
||||
m4_undefine([maj_needed])
|
||||
]) # XORG_MACROS_VERSION
|
||||
|
||||
# XORG_PROG_RAWCPP()
|
||||
@ -7955,7 +7952,7 @@ AC_SUBST(MAKE_HTML)
|
||||
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
|
||||
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
|
||||
AC_ARG_ENABLE(malloc0returnsnull,
|
||||
AC_HELP_STRING([--enable-malloc0returnsnull],
|
||||
AS_HELP_STRING([--enable-malloc0returnsnull],
|
||||
[malloc(0) returns NULL (default: auto)]),
|
||||
[MALLOC_ZERO_RETURNS_NULL=$enableval],
|
||||
[MALLOC_ZERO_RETURNS_NULL=auto])
|
||||
@ -8007,7 +8004,7 @@ AC_SUBST([XTMALLOC_ZERO_CFLAGS])
|
||||
AC_DEFUN([XORG_WITH_LINT],[
|
||||
|
||||
# Allow checking code with lint, sparse, etc.
|
||||
AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
|
||||
AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
|
||||
[Use a lint-style source code checker (default: disabled)])],
|
||||
[use_lint=$withval], [use_lint=no])
|
||||
if test "x$use_lint" = "xyes" ; then
|
||||
@ -8048,7 +8045,7 @@ AM_CONDITIONAL(LINT, [test x$LINT != xno])
|
||||
AC_DEFUN([XORG_LINT_LIBRARY],[
|
||||
AC_REQUIRE([XORG_WITH_LINT])
|
||||
# Build lint "library" for more indepth checks of programs calling this library
|
||||
AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
|
||||
AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
|
||||
[Create lint library (default: disabled)])],
|
||||
[make_lint_lib=$enableval], [make_lint_lib=no])
|
||||
if test "x$make_lint_lib" != "xno" ; then
|
||||
@ -8078,9 +8075,9 @@ if test "x$GCC" = xyes ; then
|
||||
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
|
||||
-Wbad-function-cast"
|
||||
case `gcc -dumpversion` in
|
||||
case `$CC -dumpversion` in
|
||||
3.4.* | 4.*)
|
||||
CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
|
||||
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
@ -8090,7 +8087,51 @@ else
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(CWARNFLAGS)
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
]) # XORG_CWARNFLAGS
|
||||
|
||||
# XORG_STRICT_OPTION
|
||||
# -----------------------
|
||||
# Minimum version: 1.3.0
|
||||
#
|
||||
# Add configure option to enable strict compilation
|
||||
AC_DEFUN([XORG_STRICT_OPTION], [
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AC_PROG_CC_C99])
|
||||
AC_REQUIRE([XORG_CWARNFLAGS])
|
||||
|
||||
AC_ARG_ENABLE(strict-compilation,
|
||||
AS_HELP_STRING([--enable-strict-compilation],
|
||||
[Enable all warnings from compiler and make them errors (default: disabled)]),
|
||||
[STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
|
||||
if test "x$STRICT_COMPILE" = "xyes"; then
|
||||
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
|
||||
AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
|
||||
if test "x$GCC" = xyes ; then
|
||||
STRICT_CFLAGS="-pedantic -Werror"
|
||||
elif test "x$SUNCC" = "xyes"; then
|
||||
STRICT_CFLAGS="-errwarn"
|
||||
elif test "x$INTELCC" = "xyes"; then
|
||||
STRICT_CFLAGS="-Werror"
|
||||
fi
|
||||
fi
|
||||
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
|
||||
AC_SUBST([CWARNFLAGS])
|
||||
]) # XORG_STRICT_OPTION
|
||||
|
||||
# XORG_DEFAULT_OPTIONS
|
||||
# --------------------
|
||||
# Minimum version: 1.3.0
|
||||
#
|
||||
# Defines default options for X.Org modules.
|
||||
#
|
||||
AC_DEFUN([XORG_DEFAULT_OPTIONS], [
|
||||
XORG_CWARNFLAGS
|
||||
XORG_STRICT_OPTION
|
||||
XORG_RELEASE_VERSION
|
||||
XORG_CHANGELOG
|
||||
XORG_MANPAGE_SECTIONS
|
||||
]) # XORG_DEFAULT_OPTIONS
|
||||
dnl Copyright 2005 Red Hat, Inc
|
||||
dnl
|
||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
||||
@ -8125,7 +8166,7 @@ dnl
|
||||
|
||||
AC_DEFUN([XORG_RELEASE_VERSION],[
|
||||
AC_ARG_WITH(release-version,
|
||||
AC_HELP_STRING([--with-release-version=STRING],
|
||||
AS_HELP_STRING([--with-release-version=STRING],
|
||||
[Use release version string in package name]),
|
||||
[RELEASE_VERSION="$withval"],
|
||||
[RELEASE_VERSION=""])
|
||||
|
9752
driver/xf86-video-chips/configure
vendored
9752
driver/xf86-video-chips/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,7 @@
|
||||
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT([xf86-video-chips],
|
||||
1.2.1,
|
||||
1.2.2,
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
xf86-video-chips)
|
||||
|
||||
|
@ -2127,17 +2127,6 @@ EOF
|
||||
;;
|
||||
esac
|
||||
for pass in $passes; do
|
||||
# The preopen pass in lib mode reverses $deplibs; put it back here
|
||||
# so that -L comes before libs that need it for instance...
|
||||
if test "$linkmode,$pass" = "lib,link"; then
|
||||
## FIXME: Find the place where the list is rebuilt in the wrong
|
||||
## order, and fix it there properly
|
||||
tmp_deplibs=
|
||||
for deplib in $deplibs; do
|
||||
tmp_deplibs="$deplib $tmp_deplibs"
|
||||
done
|
||||
deplibs="$tmp_deplibs"
|
||||
fi
|
||||
if test "$linkmode,$pass" = "lib,link" ||
|
||||
test "$linkmode,$pass" = "prog,scan"; then
|
||||
libs="$deplibs"
|
||||
|
@ -128,6 +128,7 @@ F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
@ -174,15 +175,9 @@ XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XSERVER_LIBPCIACCESS_FALSE = @XSERVER_LIBPCIACCESS_FALSE@
|
||||
XSERVER_LIBPCIACCESS_TRUE = @XSERVER_LIBPCIACCESS_TRUE@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DSYMUTIL = @ac_ct_DSYMUTIL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_NMEDIT = @ac_ct_NMEDIT@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
@ -199,24 +194,31 @@ build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
|
@ -217,7 +217,7 @@ 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"
|
||||
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), xorgconfig(__appmansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
|
||||
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
|
||||
.PP
|
||||
You are also recommended to read the README.chips file that comes with all
|
||||
__xservername__ distributions, which discusses the
|
||||
|
@ -149,6 +149,7 @@ F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
@ -195,15 +196,9 @@ XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XSERVER_LIBPCIACCESS_FALSE = @XSERVER_LIBPCIACCESS_FALSE@
|
||||
XSERVER_LIBPCIACCESS_TRUE = @XSERVER_LIBPCIACCESS_TRUE@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DSYMUTIL = @ac_ct_DSYMUTIL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_NMEDIT = @ac_ct_NMEDIT@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
@ -220,24 +215,31 @@ build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
|
@ -85,9 +85,14 @@
|
||||
/* Drivers that need to access the PCI config space directly need this */
|
||||
#include "xf86Pci.h"
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
|
||||
/* Standard resources are defined here */
|
||||
#include "xf86Resources.h"
|
||||
|
||||
/* Needed by Resources Access Control (RAC) */
|
||||
#include "xf86RAC.h"
|
||||
#endif
|
||||
|
||||
/* All drivers using the vgahw module need this */
|
||||
#include "vgaHW.h"
|
||||
|
||||
@ -115,9 +120,6 @@
|
||||
#include "xf4bpp.h"
|
||||
#endif
|
||||
|
||||
/* Needed by Resources Access Control (RAC) */
|
||||
#include "xf86RAC.h"
|
||||
|
||||
/* int10 */
|
||||
#include "xf86int10.h"
|
||||
#include "vbe.h"
|
||||
@ -691,97 +693,6 @@ static const OptionInfoRec ChipsHiQVOptions[] = {
|
||||
{ -1, NULL, OPTV_NONE, {0}, FALSE }
|
||||
};
|
||||
|
||||
/*
|
||||
* List of symbols from other modules that this module references. This
|
||||
* list is used to tell the loader that it is OK for symbols here to be
|
||||
* unresolved providing that it hasn't been told that they haven't been
|
||||
* told that they are essential via a call to xf86LoaderReqSymbols() or
|
||||
* xf86LoaderReqSymLists(). The purpose is this is to avoid warnings about
|
||||
* unresolved symbols that are not required.
|
||||
*/
|
||||
|
||||
static const char *vgahwSymbols[] = {
|
||||
"vgaHWAllocDefaultRegs",
|
||||
"vgaHWFreeHWRec",
|
||||
"vgaHWGetHWRec",
|
||||
"vgaHWGetIOBase",
|
||||
"vgaHWGetIndex",
|
||||
"vgaHWHBlankKGA",
|
||||
"vgaHWInit",
|
||||
"vgaHWLock",
|
||||
"vgaHWMapMem",
|
||||
"vgaHWProtect",
|
||||
"vgaHWRestore",
|
||||
"vgaHWSave",
|
||||
"vgaHWUnlock",
|
||||
"vgaHWVBlankKGA",
|
||||
"vgaHWddc1SetSpeedWeak",
|
||||
NULL
|
||||
};
|
||||
|
||||
#ifdef XFree86LOADER
|
||||
static const char *miscfbSymbols[] = {
|
||||
#ifdef HAVE_XF1BPP
|
||||
"xf1bppScreenInit",
|
||||
#endif
|
||||
#ifdef HAVE_XF4BPP
|
||||
"xf4bppScreenInit",
|
||||
#endif
|
||||
"cfb8_16ScreenInit",
|
||||
NULL
|
||||
};
|
||||
#endif
|
||||
|
||||
static const char *fbSymbols[] = {
|
||||
"fbScreenInit",
|
||||
"fbPictureInit",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *xaaSymbols[] = {
|
||||
"XAACreateInfoRec",
|
||||
"XAADestroyInfoRec",
|
||||
"XAAInit",
|
||||
"XAAInitDualFramebufferOverlay",
|
||||
"XAAStippleScanlineFuncMSBFirst",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *ramdacSymbols[] = {
|
||||
"xf86CreateCursorInfoRec",
|
||||
"xf86DestroyCursorInfoRec",
|
||||
"xf86InitCursor",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *ddcSymbols[] = {
|
||||
"xf86DoEDID_DDC1",
|
||||
"xf86DoEDID_DDC2",
|
||||
"xf86PrintEDID",
|
||||
"xf86SetDDCproperties",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *i2cSymbols[] = {
|
||||
"xf86CreateI2CBusRec",
|
||||
"xf86I2CBusInit",
|
||||
"xf86I2CFindBus",
|
||||
"xf86I2CProbeAddress",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *shadowSymbols[] = {
|
||||
"ShadowFBInit",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *vbeSymbols[] = {
|
||||
"VBEInit",
|
||||
"vbeDoEDID",
|
||||
"vbeFree",
|
||||
NULL
|
||||
};
|
||||
|
||||
#ifdef XFree86LOADER
|
||||
|
||||
static MODULESETUPPROTO(chipsSetup);
|
||||
@ -820,14 +731,6 @@ chipsSetup(pointer module, pointer opts, int *errmaj, int *errmin)
|
||||
* by calling LoadSubModule().
|
||||
*/
|
||||
|
||||
/*
|
||||
* Tell the loader about symbols from other modules that this module
|
||||
* might refer to.
|
||||
*/
|
||||
LoaderRefSymLists(vgahwSymbols, miscfbSymbols, fbSymbols, xaaSymbols,
|
||||
ramdacSymbols, ddcSymbols, i2cSymbols,
|
||||
shadowSymbols, vbeSymbols, NULL);
|
||||
|
||||
/*
|
||||
* The return value must be non-NULL on success even though there
|
||||
* is no TearDownProc.
|
||||
@ -921,7 +824,7 @@ CHIPSPciProbe(DriverPtr drv, int entity_num, struct pci_device * dev,
|
||||
pScrn->ValidMode = CHIPSValidMode;
|
||||
|
||||
if (!CHIPSGetRec(pScrn)) {
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
cPtr = CHIPSPTR(pScrn);
|
||||
cPtr->Chipset = match_data;
|
||||
@ -1185,7 +1088,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
/* The vgahw module should be loaded here when needed */
|
||||
if (!xf86LoadSubModule(pScrn, "vgahw"))
|
||||
return FALSE;
|
||||
xf86LoaderReqSymLists(vgahwSymbols, NULL);
|
||||
|
||||
/* Allocate the ChipsRec driverPrivate */
|
||||
if (!CHIPSGetRec(pScrn)) {
|
||||
@ -1204,12 +1106,14 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
/* This is the general case */
|
||||
for (i = 0; i<pScrn->numEntities; i++) {
|
||||
cPtr->pEnt = xf86GetEntityInfo(pScrn->entityList[i]);
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
if (cPtr->pEnt->resources) return FALSE;
|
||||
#endif
|
||||
/* If we are using libpciaccess this is already set in CHIPSPciProbe.
|
||||
* If we are using something else we need to set it here.
|
||||
*/
|
||||
if (!cPtr->Chipset)
|
||||
cPtr->Chipset = cPtr->pEnt->chipset;
|
||||
cPtr->Chipset = cPtr->pEnt->chipset;
|
||||
pScrn->chipset = (char *)xf86TokenToString(CHIPSChipsets,
|
||||
cPtr->pEnt->chipset);
|
||||
if ((cPtr->Chipset == CHIPS_CT64200) ||
|
||||
@ -1232,7 +1136,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
#if 0
|
||||
if (xf86LoadSubModule(pScrn, "int10")) {
|
||||
xf86Int10InfoPtr pInt;
|
||||
xf86LoaderReqSymLists(int10Symbols, NULL);
|
||||
#if 1
|
||||
xf86DrvMsg(pScrn->scrnIndex,X_INFO,"initializing int10\n");
|
||||
pInt = xf86InitInt10(cPtr->pEnt->index);
|
||||
@ -1242,7 +1145,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
#endif
|
||||
|
||||
if (xf86LoadSubModule(pScrn, "vbe")) {
|
||||
xf86LoaderReqSymLists(vbeSymbols, NULL);
|
||||
cPtr->pVbe = VBEInit(NULL,cPtr->pEnt->index);
|
||||
}
|
||||
|
||||
@ -1414,7 +1316,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymbols("xf1bppScreenInit", NULL);
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_XF4BPP
|
||||
@ -1425,7 +1326,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymbols("xf4bppScreenInit", NULL);
|
||||
break;
|
||||
#endif
|
||||
case 16:
|
||||
@ -1436,7 +1336,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymbols("cfb8_16bppScreenInit", NULL);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@ -1446,7 +1345,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymLists(fbSymbols, NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1457,7 +1355,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymLists(xaaSymbols, NULL);
|
||||
}
|
||||
|
||||
if (cPtr->Flags & ChipsShadowFB) {
|
||||
@ -1467,7 +1364,6 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymLists(shadowSymbols, NULL);
|
||||
}
|
||||
|
||||
if (cPtr->Accel.UseHWCursor) {
|
||||
@ -1477,14 +1373,16 @@ CHIPSPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSFreeRec(pScrn);
|
||||
return FALSE;
|
||||
}
|
||||
xf86LoaderReqSymLists(ramdacSymbols, NULL);
|
||||
}
|
||||
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
if (cPtr->Flags & ChipsLinearSupport)
|
||||
xf86SetOperatingState(resVgaMem, cPtr->pEnt->index, ResDisableOpr);
|
||||
|
||||
if (cPtr->MMIOBaseVGA)
|
||||
xf86SetOperatingState(resVgaIo, cPtr->pEnt->index, ResDisableOpr);
|
||||
#endif
|
||||
|
||||
vbeFree(cPtr->pVbe);
|
||||
cPtr->pVbe = NULL;
|
||||
return TRUE;
|
||||
@ -1509,7 +1407,9 @@ chipsPreInitHiQV(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSPanelSizePtr Size = &cPtr->PanelSize;
|
||||
CHIPSMemClockPtr MemClk = &cPtr->MemClock;
|
||||
CHIPSClockPtr SaveClk = &(cPtr->SavedReg.Clock);
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
resRange linearRes[] = { {ResExcMemBlock|ResBios|ResBus,0,0},_END };
|
||||
#endif
|
||||
|
||||
/* Set pScrn->monitor */
|
||||
pScrn->monitor = pScrn->confScreen->monitor;
|
||||
@ -1658,8 +1558,10 @@ chipsPreInitHiQV(ScrnInfoPtr pScrn, int flags)
|
||||
cPtr->FbAddress = PCI_REGION_BASE(cPtr->PciInfo, 0, REGION_MEM) & 0xff800000;
|
||||
|
||||
from = X_PROBED;
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
if (xf86RegisterResources(cPtr->pEnt->index,NULL,ResNone))
|
||||
cPtr->Flags &= ~ChipsLinearSupport;
|
||||
#endif
|
||||
} else {
|
||||
if (cPtr->pEnt->device->MemBase) {
|
||||
cPtr->FbAddress = cPtr->pEnt->device->MemBase;
|
||||
@ -1671,12 +1573,14 @@ chipsPreInitHiQV(ScrnInfoPtr pScrn, int flags)
|
||||
(0x80 & (cPtr->readXR(cPtr, 0x05)))) << 16;
|
||||
from = X_PROBED;
|
||||
}
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
linearRes[0].rBegin = cPtr->FbAddress;
|
||||
linearRes[0].rEnd = cPtr->FbAddress + 0x800000;
|
||||
if (xf86RegisterResources(cPtr->pEnt->index,linearRes,ResNone)) {
|
||||
cPtr->Flags &= ~ChipsLinearSupport;
|
||||
from = X_PROBED;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (cPtr->Flags & ChipsLinearSupport) {
|
||||
@ -2036,8 +1940,6 @@ chipsPreInitHiQV(ScrnInfoPtr pScrn, int flags)
|
||||
Bool ddc_done = FALSE;
|
||||
xf86MonPtr pMon;
|
||||
|
||||
xf86LoaderReqSymLists(ddcSymbols, NULL);
|
||||
|
||||
if (cPtr->pVbe) {
|
||||
if ((pMon
|
||||
= xf86PrintEDID(vbeDoEDID(cPtr->pVbe, pVbeModule))) != NULL) {
|
||||
@ -2048,8 +1950,6 @@ chipsPreInitHiQV(ScrnInfoPtr pScrn, int flags)
|
||||
|
||||
if (!ddc_done)
|
||||
if (xf86LoadSubModule(pScrn, "i2c")) {
|
||||
xf86LoaderReqSymLists(i2cSymbols,NULL);
|
||||
|
||||
if (chips_i2cInit(pScrn)) {
|
||||
if ((pMon = xf86PrintEDID(xf86DoEDID_DDC2(pScrn->scrnIndex,
|
||||
cPtr->I2C))) != NULL)
|
||||
@ -2568,7 +2468,9 @@ chipsPreInitWingine(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSClockPtr SaveClk = &(cPtr->SavedReg.Clock);
|
||||
Bool useLinear = FALSE;
|
||||
char *s;
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
resRange linearRes[] = { {ResExcMemBlock|ResBios|ResBus,0,0},_END };
|
||||
#endif
|
||||
|
||||
/* Set pScrn->monitor */
|
||||
pScrn->monitor = pScrn->confScreen->monitor;
|
||||
@ -2764,12 +2666,14 @@ chipsPreInitWingine(ScrnInfoPtr pScrn, int flags)
|
||||
cPtr->FbAddress |= ((mask & (cPtr->readXR(cPtr, 0x08))) << 16);
|
||||
from = X_PROBED;
|
||||
}
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
linearRes[0].rBegin = cPtr->FbAddress;
|
||||
linearRes[0].rEnd = cPtr->FbAddress + 0x800000;
|
||||
if (xf86RegisterResources(cPtr->pEnt->index,linearRes,ResNone)) {
|
||||
useLinear = FALSE;
|
||||
from = X_PROBED;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (useLinear) {
|
||||
@ -2880,6 +2784,7 @@ chipsPreInitWingine(ScrnInfoPtr pScrn, int flags)
|
||||
ErrorF("DR[%X] = %X\n",i,cPtr->Regs32[i]);
|
||||
#endif
|
||||
}
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
linearRes[0].type = ResExcIoSparse | ResBios | ResBus;
|
||||
linearRes[0].rBase = cPtr->Regs32[0];
|
||||
linearRes[0].rMask = 0x83FC;
|
||||
@ -2897,6 +2802,7 @@ chipsPreInitWingine(ScrnInfoPtr pScrn, int flags)
|
||||
"Disabling HWCursor\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
cPtr->ClockMulFactor = ((pScrn->bitsPerPixel >= 8) ? bytesPerPixel : 1);
|
||||
@ -3010,7 +2916,6 @@ chipsPreInitWingine(ScrnInfoPtr pScrn, int flags)
|
||||
}
|
||||
|
||||
if (xf86LoadSubModule(pScrn, "ddc")) {
|
||||
xf86LoaderReqSymLists(ddcSymbols, NULL);
|
||||
if (cPtr->pVbe)
|
||||
xf86SetDDCproperties(pScrn,xf86PrintEDID(vbeDoEDID(cPtr->pVbe, NULL)));
|
||||
}
|
||||
@ -3029,7 +2934,9 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
CHIPSClockPtr SaveClk = &(cPtr->SavedReg.Clock);
|
||||
Bool useLinear = FALSE;
|
||||
char *s;
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
resRange linearRes[] = { {ResExcMemBlock|ResBios|ResBus,0,0},_END };
|
||||
#endif
|
||||
|
||||
/* Set pScrn->monitor */
|
||||
pScrn->monitor = pScrn->confScreen->monitor;
|
||||
@ -3225,9 +3132,12 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
}
|
||||
if (cPtr->pEnt->location.type == BUS_PCI) {
|
||||
cPtr->FbAddress = PCI_REGION_BASE(cPtr->PciInfo, 0, REGION_MEM) & 0xff800000;
|
||||
if (xf86RegisterResources(cPtr->pEnt->index,NULL,ResNone))
|
||||
useLinear = FALSE;
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
if (xf86RegisterResources(cPtr->pEnt->index,NULL,ResNone)) {
|
||||
useLinear = FALSE;
|
||||
from = X_PROBED;
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
if (cPtr->pEnt->device->MemBase) {
|
||||
cPtr->FbAddress = cPtr->pEnt->device->MemBase;
|
||||
@ -3251,12 +3161,14 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
}
|
||||
from = X_PROBED;
|
||||
}
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
linearRes[0].rBegin = cPtr->FbAddress;
|
||||
linearRes[0].rEnd = cPtr->FbAddress + 0x800000;
|
||||
if (xf86RegisterResources(cPtr->pEnt->index,linearRes,ResNone)) {
|
||||
useLinear = FALSE;
|
||||
from = X_PROBED;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -3556,6 +3468,7 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
ErrorF("DR[%X] = %X\n",i,cPtr->Regs32[i]);
|
||||
#endif
|
||||
}
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
linearRes[0].type = ResExcIoSparse | ResBios | ResBus;
|
||||
linearRes[0].rBase = cPtr->Regs32[0];
|
||||
linearRes[0].rMask = 0x83FC;
|
||||
@ -3573,6 +3486,7 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
"Disabling HWCursor\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* sync reset ignored on this chipset */
|
||||
@ -3783,7 +3697,6 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
"Memory clock option not supported for this chipset\n");
|
||||
|
||||
if (xf86LoadSubModule(pScrn, "ddc")) {
|
||||
xf86LoaderReqSymLists(ddcSymbols, NULL);
|
||||
if (cPtr->pVbe)
|
||||
xf86SetDDCproperties(pScrn,xf86PrintEDID(vbeDoEDID(cPtr->pVbe, NULL)));
|
||||
}
|
||||
@ -4490,12 +4403,14 @@ CHIPSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifndef XSERVER_LIBPCIACCESS
|
||||
racflag = RAC_COLORMAP;
|
||||
if (cAcl->UseHWCursor)
|
||||
racflag |= RAC_CURSOR;
|
||||
racflag |= (RAC_FB | RAC_VIEWPORT);
|
||||
/* XXX Check if I/O and Mem flags need to be the same. */
|
||||
pScrn->racIoFlags = pScrn->racMemFlags = racflag;
|
||||
#endif
|
||||
#ifdef ENABLE_SILKEN_MOUSE
|
||||
xf86SetSilkenMouse(pScreen);
|
||||
#endif
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86_OSproc.h"
|
||||
#include "xf86Resources.h"
|
||||
#include "xf86PciInfo.h"
|
||||
#include "xf86Pci.h"
|
||||
#include "shadowfb.h"
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86_OSproc.h"
|
||||
#include "xf86Resources.h"
|
||||
#include "compiler.h"
|
||||
#include "xf86PciInfo.h"
|
||||
#include "xf86Pci.h"
|
||||
|
@ -123,6 +123,7 @@ F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
@ -169,15 +170,9 @@ XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XSERVER_LIBPCIACCESS_FALSE = @XSERVER_LIBPCIACCESS_FALSE@
|
||||
XSERVER_LIBPCIACCESS_TRUE = @XSERVER_LIBPCIACCESS_TRUE@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DSYMUTIL = @ac_ct_DSYMUTIL@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_NMEDIT = @ac_ct_NMEDIT@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
||||
@ -194,24 +189,31 @@ build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
|
Loading…
Reference in New Issue
Block a user