Importing xf86-video-siliconmotion 1.4.2
This commit is contained in:
parent
b778e48d95
commit
0de5eed37f
22
driver/xf86-video-siliconmotion/CALLMAP
Normal file
22
driver/xf86-video-siliconmotion/CALLMAP
Normal file
@ -0,0 +1,22 @@
|
||||
-- Only Once, calling order --
|
||||
ChipIdentify (SMIIdentify)
|
||||
ChipProbe (SMIProbe)
|
||||
Passive only, no ram determination, no writing
|
||||
|
||||
-- For each ScrnInfoRec, still calling order --
|
||||
ChipPreInit (SMIPreInit)
|
||||
Allows probing and mapping, hardware must remain unchanged
|
||||
ChipGetRec
|
||||
|
||||
ChipScreenInit
|
||||
ChipMapMem
|
||||
ChipSave
|
||||
vgaHWSaveMMIO
|
||||
ChipModeInit
|
||||
vtSema=TRUE
|
||||
ChipWriteMode
|
||||
vgaHWRestoreMMIO
|
||||
|
||||
Header: \\Mercury\Projects\archives\XFree86 4.0\CALLMAP.-arc 1.1 13 Jul 2000 18:16:58 Frido $
|
||||
|
||||
$XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/CALLMAP,v 1.1 2000/11/28 20:59:18 dawes Exp $
|
12
driver/xf86-video-siliconmotion/COPYING
Normal file
12
driver/xf86-video-siliconmotion/COPYING
Normal file
@ -0,0 +1,12 @@
|
||||
This is a stub file. This package has not yet had its complete licensing
|
||||
information compiled. Please see the individual source files for details on
|
||||
your rights to use and modify this software.
|
||||
|
||||
Please submit updated COPYING files to the Xorg bugzilla:
|
||||
|
||||
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||
|
||||
All licensing questions regarding this software should be directed at the
|
||||
Xorg mailing list:
|
||||
|
||||
http://lists.freedesktop.org/mailman/listinfo/xorg
|
68
driver/xf86-video-siliconmotion/ChangeLog
Normal file
68
driver/xf86-video-siliconmotion/ChangeLog
Normal file
@ -0,0 +1,68 @@
|
||||
2006-04-07 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* configure.ac:
|
||||
* src/smi_driver.c:
|
||||
Bump to 1.4.1 for Xv changes.
|
||||
|
||||
2006-04-07 Aaron Plattner <aplattner@nvidia.com>
|
||||
|
||||
* src/smi_video.c: (SMI_PutVideo), (SMI_PutImage):
|
||||
Add a DrawablePtr argument to the XV functions to pave the way for
|
||||
redirected video.
|
||||
|
||||
2006-04-07 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* configure.ac:
|
||||
* src/smi.h:
|
||||
* src/smi_dga.c:
|
||||
* src/smi_driver.c:
|
||||
* src/smi_i2c.c:
|
||||
* src/smi_shadow.c:
|
||||
Unlibcwrap. Bump server version requirement. Bump to 1.4.0.
|
||||
|
||||
2006-02-08 Luc Verhaegen <libv@skynet.be>
|
||||
|
||||
* src/smi.h:
|
||||
* src/smi_driver.c: (SMI_PreInit), (SMI_ModeInit):
|
||||
|
||||
Clean up insane pScrn->clock usage.
|
||||
|
||||
2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update package version for X11R7 release.
|
||||
|
||||
2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for final X11R7 release candidate.
|
||||
|
||||
2005-12-06 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* man/Makefile.am:
|
||||
Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
|
||||
|
||||
2005-12-03 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for X11R7 RC3 release.
|
||||
|
||||
2005-12-01 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Remove extraneous AC_MSG_RESULT.
|
||||
|
||||
2005-11-29 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* configure.ac:
|
||||
Only build dlloader modules by default.
|
||||
|
||||
2005-11-09 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for X11R7 RC2 release.
|
||||
|
||||
2005-11-01 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
|
||||
* configure.ac:
|
||||
Update pkgcheck dependencies to work with separate build roots.
|
24
driver/xf86-video-siliconmotion/Makefile.am
Normal file
24
driver/xf86-video-siliconmotion/Makefile.am
Normal file
@ -0,0 +1,24 @@
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
SUBDIRS = src man
|
||||
|
||||
EXTRA_DIST = CALLMAP Release.txt
|
651
driver/xf86-video-siliconmotion/Makefile.in
Normal file
651
driver/xf86-video-siliconmotion/Makefile.in
Normal file
@ -0,0 +1,651 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(top_srcdir)/configure COPYING ChangeLog config.guess \
|
||||
config.sub depcomp install-sh ltmain.sh missing
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno configure.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DRIVER_NAME = @DRIVER_NAME@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
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@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
SUBDIRS = src man
|
||||
EXTRA_DIST = CALLMAP Release.txt
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
|
||||
config.h: stamp-h1
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h1; \
|
||||
$(MAKE) stamp-h1; \
|
||||
else :; fi
|
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h stamp-h1
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& cd $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||
distuninstallcheck:
|
||||
@cd $(distuninstallcheck_dir) \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile config.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
|
||||
check-am clean clean-generic clean-libtool clean-recursive \
|
||||
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
|
||||
dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||
distclean-generic distclean-hdr distclean-libtool \
|
||||
distclean-recursive distclean-tags distcleancheck distdir \
|
||||
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
76
driver/xf86-video-siliconmotion/README
Normal file
76
driver/xf86-video-siliconmotion/README
Normal file
@ -0,0 +1,76 @@
|
||||
What works:
|
||||
- Supports 8bpp, 16bpp and 24bpp. Heavy testing on SM720.
|
||||
|
||||
XCONFIG options:
|
||||
|
||||
The driver supports quite a few different XConfig options, which can
|
||||
be used to tune the driver and improve performance. Without any options,
|
||||
the driver will use conservative settings which should work on most
|
||||
hardware. Large improvements in performance are possible by selecting
|
||||
the proper options, which will probably work on most systems.
|
||||
|
||||
Cursor:
|
||||
|
||||
- "hwcursor" "off" behaves exactly like "swcursor". Default: "on"
|
||||
- "swcursor" will disable the HW Cursor. HW Cursor is used by default and
|
||||
no option is needed to enable it.
|
||||
|
||||
Display:
|
||||
|
||||
- "ShadowFB" Use shadow framebuffer. Default: off.
|
||||
- "Rotate" "cw" | "ccw" Rotate the screen CW - clockwise or CCW - counter
|
||||
clockwise. Uses ShadowFB. Default: no rotation.
|
||||
- "UseBIOS" Use BIOS to set modes. Default: on.
|
||||
- "ZoomOnLCD" Allow changing resolution on panel. Default: off.
|
||||
|
||||
Overlays:
|
||||
|
||||
- "VideoKey" Set chroma key for video. Default: Off blue.
|
||||
- "ByteSwap" Turn on YUV byte swapping. Defaul: off.
|
||||
|
||||
Video memory:
|
||||
|
||||
- "set_mclk" sets the memory clock, format is:
|
||||
Option "set_mclk" "50000"
|
||||
in the XF86Config file. Valid values are any
|
||||
integer <= 100000, where 100000 == 100 MHz.
|
||||
|
||||
Acceleration and graphic engine:
|
||||
|
||||
- "NoAccel" turns off all acceleration
|
||||
- "fifo_aggressive", "fifo_moderate" and "fifo_conservative" alter the settings
|
||||
for the threshold at which the pixel FIFO takes over the internal
|
||||
memory bus to refill itself. The smaller this threshold, the better
|
||||
the acceleration performance of the card. You may try the fastest
|
||||
setting ("aggressive") and move down if you encounter pixel corruption.
|
||||
The optimal setting will probably depend on dot-clock and on color
|
||||
depth. Note that specifying any of these options will also alter other
|
||||
memory settings which should increase performance, so you should at
|
||||
least use "fifo_conservative" (this uses the chip defaults).
|
||||
- Common XAA acceleration options to disable primitives for test purposes:
|
||||
"XaaNoScreenToScreenCopy"
|
||||
"XaaNoSolidFillRect"
|
||||
"XaaNoColor8x8PatternFillRect"
|
||||
"XaaNoImageWriteRect"
|
||||
"XaaNoPixmapCache"
|
||||
|
||||
PCI bus:
|
||||
|
||||
- "pci_burst" will enable PCI burst mode. This should work on all but a
|
||||
few "broken" PCI chipsets, and will increase performance. Option may
|
||||
take a parameter "on", "off", "yes", etc...
|
||||
- "pci_retry" will allow the driver to rely on PCI Retry to program the
|
||||
ViRGE registers. "pci_burst" must be enabled for this to work.
|
||||
This will increase performance, especially for small fills/blits,
|
||||
because the driver does not have to poll the ViRGE before sending it
|
||||
commands to make sure it is ready. It should work on most
|
||||
recent PCI chipsets.
|
||||
|
||||
Debug:
|
||||
|
||||
- "ShowCache" Enable or disable viewing offscreen cache memory. A
|
||||
development debug option. Default: off.
|
||||
|
||||
Header: //Mercury/Projects/archives/XFree86/4.0/README.-arc 1.2 14 Sep 2000 12:28:36 Frido $
|
||||
|
||||
$XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/README,v 1.3 2001/02/15 18:20:33 dawes Exp $
|
231
driver/xf86-video-siliconmotion/Release.txt
Normal file
231
driver/xf86-video-siliconmotion/Release.txt
Normal file
@ -0,0 +1,231 @@
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.1.0
|
||||
Alpha Release 1.3.1cz, 11/12/2001
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Extensions:
|
||||
|
||||
- gamma correction for 24 bit true color mode.
|
||||
|
||||
Known problems:
|
||||
|
||||
- gamma correction does not work for 16 bit true color mode:
|
||||
LoadPalette gets a gamma correction color table for 5:6:5 RGB,
|
||||
whereas the SMI RAMDAC wants a 8:8:8 RGB color table.
|
||||
|
||||
- gamma correction only implemented for the Lynx3DM
|
||||
|
||||
- StopVideo don't work. The graphics controller continues to write
|
||||
into the capture buffer
|
||||
|
||||
Fixed bugs (or new bugs :) ):
|
||||
|
||||
- in SMI_ScreenInit frame buffer size calculation for video changed.
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.1.0
|
||||
Alpha Release 1.3.0cz, 10/26/2001
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
- XAA: clipping rectangle was clipped to visible screen, so offscreen
|
||||
pixmaps could not been drawn at with accelerated drawing functions.
|
||||
|
||||
Extensions:
|
||||
|
||||
- smi_video: partly rewritten.
|
||||
- Support for 7111
|
||||
- interlaced video via
|
||||
- XF86Config Option "Interlaced" or
|
||||
- attribute XV_INTERLACED
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.2
|
||||
Alpha Release 1.2.2, 02/14/2001
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
- #920 - Color change/flash at 8bpp when switch back to desktop in rotation
|
||||
mode.
|
||||
- #932 - System hangs when enabling rotation in 24-bpp.
|
||||
- #941 - Overlay disappear in the virtual desktop when move the window.
|
||||
- #944 - Mouse pointer doesn't work properly in panning modes under rotation.
|
||||
- #950 - Garbage appears on desktop when click the Basic/Metal for the Theme
|
||||
Selector.
|
||||
- #983 - Added ZoomOnLCD option.
|
||||
- #1058 - Desktop changes color when panning in 24-bpp mode.
|
||||
- #1069 - CRT is off after exit X on DSTN 800x600.
|
||||
- #1074 - Screen broken occurs in X when enable Rotation on DSTN 800x600.
|
||||
|
||||
Known problems:
|
||||
|
||||
- When video is playing in panning mode, it is not correctly clipped when you
|
||||
move the panning window.
|
||||
- Sound breaks apart in Netscape when moving the window around.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.2
|
||||
Alpha Release 1.2.1, 01/03/2001
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
- Severe corruption in 24-bpp across all chips.
|
||||
- Disable hardware cursor on older BIOSes.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.2
|
||||
Alpha Release 1.2.0, 12/13/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
- When restoring from VESAFB graphics mode, the screen did not update with the
|
||||
UseBIOS switch on.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.9, 11/30/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#581 - Need Linux driver to support zooming via ctrl+alt++ & ctrl+alt+-.
|
||||
#670 - Screen broken occurs when switch back to the Xwindow during in Rotation
|
||||
mode.
|
||||
#671 - Very slow to pop up the Exit menu from X windows during in Rotation mode.
|
||||
#672 - It doesn't redraw properly in X windows during in Rotation mode.
|
||||
#689 - Screen broken when toggle between terminal and desktop during playing in
|
||||
MPEG.
|
||||
#705 - Linux CRT only 800x600 or 1024x768 there is no display.
|
||||
#864 - Lockup when video is playing and switching to full-screen command shell.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.8, 11/27/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#640 - X windows shift to the right when start X or apply Rotation.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.7, 11/17/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#676 - Green color only shown in window when run Xlive in Linux.
|
||||
#835 - Screen black after DPMS on.
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.6, 11/03/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#687 - Blue rectangle appears when video is clipped on thr right edge of screen.
|
||||
#735 - When resume from sleep, X does not wake up.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.5, 10/06/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#578 - Don't check for CRT-only when validating modes.
|
||||
#579 - Corrected DPI issue when DDC monitor is not attached.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.4, 09/20/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#521 - Screen corruption after return from X Server when vesafb is used.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.3, 09/18/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
New features:
|
||||
|
||||
- Added live video capture.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.2, 09/14/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#486 - Video scaling wrong on SM720.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.1, 08/23/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
New features:
|
||||
|
||||
- Added support for overlays.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0.1
|
||||
Alpha Release 1.1.0, 08/11/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
New features:
|
||||
|
||||
- Added support for XFree86 4.0.1 server. This implies that support for the 4.0
|
||||
server has gone. Hence the change in the alpha version number from 1.0.x to
|
||||
1.1.x.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0
|
||||
Alpha Release 1.0.2, 08/02/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#161, Corruption when moving windows with a wallpaper background.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0
|
||||
Alpha Release 1.0.1, 07/27/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fixed bugs:
|
||||
|
||||
#160, Mouse pointer sometimes in bad location.
|
||||
#258, Temporary corruption starting X.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Silicon Motion Driver for XFree86 4.0
|
||||
Alpha Release 1.0.0, 06/05/2000
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
This is alpha version 1.0.0 of the Silicon Motion drivers for the XFree86 4.0
|
||||
server. See the README file for general information.
|
||||
|
||||
This ALPHA version has the following known problems:
|
||||
|
||||
- During mode initialization, the screen shows temporary garbage.
|
||||
- Image Transfers are disabled in the hardware for now.
|
||||
|
||||
This driver has been tested on the LynxEM+ 712 chip under 16-bit mode. Any other
|
||||
mode might still show lock-ups and/or garbage. Please report any problems to
|
||||
frido@siliconmotion.com.
|
||||
|
||||
Header: //Mercury/Projects/archives/XFree86/4.0/Release.txt-arc 1.33 13 Dec 2000 09:52:48 Frido $
|
||||
|
||||
$XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/Release.txt,v 1.7 2001/12/20 21:35:37 eich Exp $
|
7898
driver/xf86-video-siliconmotion/aclocal.m4
vendored
Normal file
7898
driver/xf86-video-siliconmotion/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1411
driver/xf86-video-siliconmotion/config.guess
vendored
Normal file
1411
driver/xf86-video-siliconmotion/config.guess
vendored
Normal file
File diff suppressed because it is too large
Load Diff
57
driver/xf86-video-siliconmotion/config.h.in
Normal file
57
driver/xf86-video-siliconmotion/config.h.in
Normal file
@ -0,0 +1,57 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
#include "xorg-server.h"
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
1500
driver/xf86-video-siliconmotion/config.sub
vendored
Normal file
1500
driver/xf86-video-siliconmotion/config.sub
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21716
driver/xf86-video-siliconmotion/configure
vendored
Normal file
21716
driver/xf86-video-siliconmotion/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
78
driver/xf86-video-siliconmotion/configure.ac
Normal file
78
driver/xf86-video-siliconmotion/configure.ac
Normal file
@ -0,0 +1,78 @@
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Process this file with autoconf to produce a configure script
|
||||
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT([xf86-video-siliconmotion],
|
||||
1.4.2,
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
xf86-video-siliconmotion)
|
||||
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
AC_CONFIG_AUX_DIR(.)
|
||||
|
||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
# Checks for programs.
|
||||
AC_DISABLE_STATIC
|
||||
AC_PROG_LIBTOOL
|
||||
AC_PROG_CC
|
||||
|
||||
AH_TOP([#include "xorg-server.h"])
|
||||
|
||||
AC_ARG_WITH(xorg-module-dir,
|
||||
AC_HELP_STRING([--with-xorg-module-dir=DIR],
|
||||
[Default xorg module directory [[default=$libdir/xorg/modules]]]),
|
||||
[moduledir="$withval"],
|
||||
[moduledir="$libdir/xorg/modules"])
|
||||
|
||||
# Checks for extensions
|
||||
XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
|
||||
XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
|
||||
XORG_DRIVER_CHECK_EXT(XV, videoproto)
|
||||
XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
|
||||
|
||||
# Checks for pkg-config packages
|
||||
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
|
||||
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
|
||||
|
||||
# Checks for libraries.
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
||||
AC_SUBST([XORG_CFLAGS])
|
||||
AC_SUBST([moduledir])
|
||||
|
||||
DRIVER_NAME=siliconmotion
|
||||
AC_SUBST([DRIVER_NAME])
|
||||
|
||||
XORG_MANPAGE_SECTIONS
|
||||
XORG_RELEASE_VERSION
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
src/Makefile
|
||||
man/Makefile
|
||||
])
|
530
driver/xf86-video-siliconmotion/depcomp
Normal file
530
driver/xf86-video-siliconmotion/depcomp
Normal file
@ -0,0 +1,530 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2005-07-09.11
|
||||
|
||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by `PROGRAMS ARGS'.
|
||||
object Object file output by `PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputing dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say).
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
## The second -e expression handles DOS-style file names with drive letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the `deleted header file' problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" |
|
||||
## Some versions of gcc put a space before the `:'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||
tr '
|
||||
' ' ' >> $depfile
|
||||
echo >> $depfile
|
||||
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> $depfile
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||
tmpdepfile="$stripped.u"
|
||||
if test "$libtool" = yes; then
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
|
||||
if test -f "$tmpdepfile"; then :
|
||||
else
|
||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||
tmpdepfile="$stripped.u"
|
||||
fi
|
||||
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
if test -f "$tmpdepfile"; then
|
||||
outname="$stripped.o"
|
||||
# Each line is of the form `foo.o: dependent.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
icc)
|
||||
# Intel's C compiler understands `-MD -MF file'. However on
|
||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||
# ICC 7.0 will fill foo.d with something like
|
||||
# foo.o: sub/foo.c
|
||||
# foo.o: sub/foo.h
|
||||
# which is wrong. We want:
|
||||
# sub/foo.o: sub/foo.c
|
||||
# sub/foo.o: sub/foo.h
|
||||
# sub/foo.c:
|
||||
# sub/foo.h:
|
||||
# ICC 7.1 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using \ :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||
sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in `foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# With Tru64 cc, shared objects can also be used to make a
|
||||
# static library. This mecanism is used in libtool 1.4 series to
|
||||
# handle both shared and static libraries in a single compilation.
|
||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||
#
|
||||
# With libtool 1.5 this exception was removed, and libtool now
|
||||
# generates 2 separate objects for the 2 libraries. These two
|
||||
# compilations output dependencies in in $dir.libs/$base.o.d and
|
||||
# in $dir$base.o.d. We have to check for both files, because
|
||||
# one of the two compilations can be disabled. We should prefer
|
||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||
# the former would cause a distcleancheck panic.
|
||||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.o.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
tmpdepfile4=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
# That's a tab and a space in the [].
|
||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for `:'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no
|
||||
for arg in "$@"; do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||
' | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E |
|
||||
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||
sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o,
|
||||
# because we must use -o when running libtool.
|
||||
"$@" || exit $?
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||
echo " " >> "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
323
driver/xf86-video-siliconmotion/install-sh
Normal file
323
driver/xf86-video-siliconmotion/install-sh
Normal file
@ -0,0 +1,323 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2005-05-14.22
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch. It can only install one file at a time, a restriction
|
||||
# shared with many OS's install programs.
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=
|
||||
chgrpcmd=
|
||||
stripcmd=
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dstarg=
|
||||
no_target_directory=
|
||||
|
||||
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
-c (ignored)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-s $stripprog installed files.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||
"
|
||||
|
||||
while test -n "$1"; do
|
||||
case $1 in
|
||||
-c) shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd=$stripprog
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t) dstarg=$2
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-T) no_target_directory=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
*) # When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
test -n "$dir_arg$dstarg" && break
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dstarg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dstarg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dstarg=$arg
|
||||
done
|
||||
break;;
|
||||
esac
|
||||
done
|
||||
|
||||
if test -z "$1"; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call `install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names starting with `-'.
|
||||
case $src in
|
||||
-*) src=./$src ;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
src=
|
||||
|
||||
if test -d "$dst"; then
|
||||
mkdircmd=:
|
||||
chmodcmd=
|
||||
else
|
||||
mkdircmd=$mkdirprog
|
||||
fi
|
||||
else
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dstarg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dst=$dstarg
|
||||
# Protect names starting with `-'.
|
||||
case $dst in
|
||||
-*) dst=./$dst ;;
|
||||
esac
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
if test -d "$dst"; then
|
||||
if test -n "$no_target_directory"; then
|
||||
echo "$0: $dstarg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dst=$dst/`basename "$src"`
|
||||
fi
|
||||
fi
|
||||
|
||||
# This sed command emulates the dirname command.
|
||||
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if test ! -d "$dstdir"; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-$defaultIFS}"
|
||||
|
||||
oIFS=$IFS
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
shift
|
||||
IFS=$oIFS
|
||||
|
||||
pathcomp=
|
||||
|
||||
while test $# -ne 0 ; do
|
||||
pathcomp=$pathcomp$1
|
||||
shift
|
||||
if test ! -d "$pathcomp"; then
|
||||
$mkdirprog "$pathcomp"
|
||||
# mkdir can fail with a `File exist' error in case several
|
||||
# install-sh are creating the directory concurrently. This
|
||||
# is OK.
|
||||
test -d "$pathcomp" || exit
|
||||
fi
|
||||
pathcomp=$pathcomp/
|
||||
done
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
$doit $mkdircmd "$dst" \
|
||||
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||
|
||||
else
|
||||
dstfile=`basename "$dst"`
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
$doit $cpprog "$src" "$dsttmp" &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||
|| {
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
if test -f "$dstdir/$dstfile"; then
|
||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||
|| {
|
||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
else
|
||||
:
|
||||
fi
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||
}
|
||||
}
|
||||
fi || { (exit 1); exit 1; }
|
||||
done
|
||||
|
||||
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||
{
|
||||
(exit 0); exit 0
|
||||
}
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
6911
driver/xf86-video-siliconmotion/ltmain.sh
Normal file
6911
driver/xf86-video-siliconmotion/ltmain.sh
Normal file
File diff suppressed because it is too large
Load Diff
59
driver/xf86-video-siliconmotion/man/Makefile.am
Normal file
59
driver/xf86-video-siliconmotion/man/Makefile.am
Normal file
@ -0,0 +1,59 @@
|
||||
# $Id: Makefile.am,v 1.1.1.1 2006/11/26 20:12:22 matthieu Exp $
|
||||
#
|
||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
#
|
||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||
# documentation for any purpose is hereby granted without fee, provided that
|
||||
# the above copyright notice appear in all copies and that both that
|
||||
# copyright notice and this permission notice appear in supporting
|
||||
# documentation.
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
# OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the copyright holders shall
|
||||
# not be used in advertising or otherwise to promote the sale, use or
|
||||
# other dealings in this Software without prior written authorization
|
||||
# from the copyright holders.
|
||||
#
|
||||
|
||||
drivermandir = $(DRIVER_MAN_DIR)
|
||||
|
||||
driverman_PRE = @DRIVER_NAME@.man
|
||||
|
||||
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
|
||||
|
||||
EXTRA_DIST = @DRIVER_NAME@.man
|
||||
|
||||
CLEANFILES = $(driverman_DATA)
|
||||
|
||||
SED = sed
|
||||
|
||||
# Strings to replace in man pages
|
||||
XORGRELSTRING = @PACKAGE_STRING@
|
||||
XORGMANNAME = X Version 11
|
||||
|
||||
MAN_SUBSTS = \
|
||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xservername__|Xorg|g' \
|
||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
||||
-e 's|__projectroot__|$(prefix)|g' \
|
||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
||||
-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
|
||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
||||
|
||||
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
||||
|
||||
.man.$(DRIVER_MAN_SUFFIX):
|
||||
sed $(MAN_SUBSTS) < $< > $@
|
415
driver/xf86-video-siliconmotion/man/Makefile.in
Normal file
415
driver/xf86-video-siliconmotion/man/Makefile.in
Normal file
@ -0,0 +1,415 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $Id: Makefile.in,v 1.1.1.1 2006/11/26 20:12:22 matthieu Exp $
|
||||
#
|
||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
#
|
||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||
# documentation for any purpose is hereby granted without fee, provided that
|
||||
# the above copyright notice appear in all copies and that both that
|
||||
# copyright notice and this permission notice appear in supporting
|
||||
# documentation.
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
# OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the copyright holders shall
|
||||
# not be used in advertising or otherwise to promote the sale, use or
|
||||
# other dealings in this Software without prior written authorization
|
||||
# from the copyright holders.
|
||||
#
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = man
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(drivermandir)"
|
||||
drivermanDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(driverman_DATA)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DRIVER_NAME = @DRIVER_NAME@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = sed
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
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@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
drivermandir = $(DRIVER_MAN_DIR)
|
||||
driverman_PRE = @DRIVER_NAME@.man
|
||||
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
|
||||
EXTRA_DIST = @DRIVER_NAME@.man
|
||||
CLEANFILES = $(driverman_DATA)
|
||||
|
||||
# Strings to replace in man pages
|
||||
XORGRELSTRING = @PACKAGE_STRING@
|
||||
XORGMANNAME = X Version 11
|
||||
MAN_SUBSTS = \
|
||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xservername__|Xorg|g' \
|
||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
||||
-e 's|__projectroot__|$(prefix)|g' \
|
||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
||||
-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
|
||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
||||
|
||||
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .$(DRIVER_MAN_SUFFIX) .man
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu man/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
install-drivermanDATA: $(driverman_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(drivermandir)" || $(mkdir_p) "$(DESTDIR)$(drivermandir)"
|
||||
@list='$(driverman_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(drivermanDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(drivermandir)/$$f'"; \
|
||||
$(drivermanDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(drivermandir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-drivermanDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(driverman_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(drivermandir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(drivermandir)/$$f"; \
|
||||
done
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
ctags: CTAGS
|
||||
CTAGS:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(drivermandir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-libtool
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-drivermanDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-drivermanDATA uninstall-info-am
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
distclean distclean-generic distclean-libtool distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-drivermanDATA \
|
||||
install-exec install-exec-am install-info install-info-am \
|
||||
install-man install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am uninstall uninstall-am uninstall-drivermanDATA \
|
||||
uninstall-info-am
|
||||
|
||||
|
||||
.man.$(DRIVER_MAN_SUFFIX):
|
||||
sed $(MAN_SUBSTS) < $< > $@
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
210
driver/xf86-video-siliconmotion/man/siliconmotion.man
Normal file
210
driver/xf86-video-siliconmotion/man/siliconmotion.man
Normal file
@ -0,0 +1,210 @@
|
||||
.\" Header: //Mercury/Projects/archives/XFree86/4.0/siliconmotion.cpp-arc 1.4 29 Nov 2000 14:12:56 Frido $
|
||||
.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/siliconmotion.man,v 1.4 2001/12/20 21:35:38 eich Exp $
|
||||
.\" shorthand for double quote that works everywhere.
|
||||
.ds q \N'34'
|
||||
.TH siliconmotion __drivermansuffix__ __vendorversion__
|
||||
.SH NAME
|
||||
siliconmotion \- Silicon Motion video driver
|
||||
.SH SYNOPSIS
|
||||
.B "Section \*qDevice\*q"
|
||||
.br
|
||||
.BI " Identifier \*q" devname \*q
|
||||
.br
|
||||
.B " Driver \*qsiliconmotion\*q"
|
||||
.br
|
||||
\ \ ...
|
||||
.br
|
||||
\ \ [
|
||||
.B "Option"
|
||||
"optionname" ["optionvalue"]]
|
||||
.br
|
||||
.B EndSection
|
||||
.SH DESCRIPTION
|
||||
.B siliconmotion
|
||||
is an XFree86 driver for Silicon Motion based video cards. The driver is fully
|
||||
accelerated, and provides support for the following framebuffer depths:
|
||||
8, 16, and 24. All
|
||||
visual types are supported for depth 8, and TrueColor
|
||||
visuals are supported for the other depths.
|
||||
.SH SUPPORTED HARDWARE
|
||||
The
|
||||
.B siliconmotion
|
||||
driver supports PCI and AGP video cards based on the following Silicon Motion chips:
|
||||
.TP 12
|
||||
.B Lynx
|
||||
SM910
|
||||
.TP 12
|
||||
.B LynxE
|
||||
SM810
|
||||
.TP 12
|
||||
.B Lynx3D
|
||||
SM820
|
||||
.TP 12
|
||||
.B LynxEM
|
||||
SM710
|
||||
.TP 12
|
||||
.B LynxEM+
|
||||
SM712
|
||||
.TP 12
|
||||
.B Lynx3DM
|
||||
SM720
|
||||
.SH CONFIGURATION DETAILS
|
||||
Please refer to XF86Config(__filemansuffix__) for general configuration
|
||||
details. This section only covers configuration details specific to this
|
||||
driver. All options names are case and white space insensitive when
|
||||
parsed by the server, for example, "lynxe" and "LynxE" are equivalent.
|
||||
.PP
|
||||
The driver auto-detects the chipset type, but the following
|
||||
.B ChipSet
|
||||
names may optionally be specified in the config file
|
||||
.B \*qDevice\*q
|
||||
section, and will override the auto-detection:
|
||||
.PP
|
||||
.RS 4
|
||||
"lynx", "lynxe", "lynx3d", "lynxem", "lynxem+", "lynx3dm".
|
||||
.RE
|
||||
|
||||
.PP
|
||||
The following Cursor
|
||||
.B Options
|
||||
are supported:
|
||||
.TP
|
||||
.BI "Option \*qHWCursor\*q \*q" boolean \*q
|
||||
Enable or disable the HW cursor. Default: on.
|
||||
.TP
|
||||
.BI "Option \*qSWCursor\*q \*q" boolean \*q
|
||||
Inverse of "HWCursor". Default: off.
|
||||
|
||||
.PP
|
||||
The following display
|
||||
.B Options
|
||||
are supported:
|
||||
.TP
|
||||
.BI "Option \*qShadowFB\*q \*q" boolean \*q
|
||||
Use shadow framebuffer. Default: off.
|
||||
.TP
|
||||
.BI "Option \*qRotate\*q \*qCW\*q"
|
||||
.TP
|
||||
.BI "Option \*qRotate\*q \*qCCW\*q"
|
||||
Rotate the screen CW - clockwise or CCW - counter clockwise.
|
||||
Uses ShadowFB. Default: no rotation.
|
||||
.TP
|
||||
.BI "Option \*qVideoKey\*q \*q" integer \*q
|
||||
Set the video color key. Default: a little off full blue.
|
||||
.TP
|
||||
.BI "Option \*qByteSwap\*q \*q" boolean \*q
|
||||
Turn on byte swapping for capturing using SMI demo board. Default: off.
|
||||
.TP
|
||||
.BI "Option \*qInterlaced\*q \*q" boolean \*q
|
||||
Turn on interlaced video capturing. Default: off.
|
||||
.TP
|
||||
.BI "Option \*qUseBIOS\*q \*q" boolean \*q
|
||||
Use the BIOS to set the modes. This is used for custom panel timings.
|
||||
Default: on.
|
||||
.TP
|
||||
.BI "Option \*qZoomOnLCD\*q \*q" boolean \*q
|
||||
Allow changing resolution on LCD (Ctrl-Alt-Plus and Ctrl-Alt-Minus).
|
||||
Default: off.
|
||||
.TP
|
||||
.BI "Option \*qDualhead\*q \*q" boolean \*q
|
||||
Enable dualhead mode. Due to hardware limitations, dualhead is limited
|
||||
to depth 16 and to the panel size and timings on both the flat panel and
|
||||
the CRT and the CRT must be to the right of the flat panel. Only lynx
|
||||
chips are supported at the moment.
|
||||
Default: off.
|
||||
|
||||
.PP
|
||||
The following video memory
|
||||
.B Options
|
||||
are supported:
|
||||
.TP
|
||||
.BI "Option \*qset_mclk\*q \*q" integer \*q
|
||||
sets the memory clock, where
|
||||
.I integer
|
||||
is in kHz, and
|
||||
.I integer
|
||||
<= 100000. Default: probe the memory clock value,
|
||||
and use it at server start.
|
||||
|
||||
|
||||
.PP
|
||||
The following acceleration and graphics engine
|
||||
.B Options
|
||||
are supported:
|
||||
.TP
|
||||
.B "Option \*qNoAccel\*q"
|
||||
Disable acceleration. Very useful for determining if the
|
||||
driver has problems with drawing and acceleration routines. This is the first
|
||||
option to try if your server runs but you see graphic corruption on the screen.
|
||||
Using it decreases performance, as it uses software emulation for drawing
|
||||
operations the video driver can accelerate with hardware.
|
||||
Default: acceleration is enabled.
|
||||
.TP
|
||||
.B "Option \*qfifo_aggressive\*q"
|
||||
.TP
|
||||
.B "Option \*qfifo_moderate\*q"
|
||||
.TP
|
||||
.B "Option \*qfifo_conservative\*q"
|
||||
alter the settings
|
||||
for the threshold at which the pixel FIFO takes over the internal
|
||||
memory bus to refill itself. The smaller this threshold, the better
|
||||
the acceleration performance of the card. You may try the fastest
|
||||
setting
|
||||
.RB ( "fifo_aggressive" )
|
||||
and move down if you encounter pixel corruption.
|
||||
The optimal setting will probably depend on dot-clock and on color
|
||||
depth. Note that specifying any of these options will also alter other
|
||||
memory settings which may increase performance, so trying
|
||||
.B "fifo_conservative"
|
||||
will in most cases be a slight benefit (this uses the chip defaults).
|
||||
If pixel corruption or transient streaking is observed during drawing
|
||||
operations then removing any fifo options is recommended. Default: none.
|
||||
|
||||
.PP
|
||||
The following PCI bus
|
||||
.B Options
|
||||
are supported:
|
||||
.TP
|
||||
.BI "Option \*qpci_burst\*q \*q" boolean \*q
|
||||
will enable PCI burst mode. This should work on all but a
|
||||
few broken PCI chipsets, and will increase performance. Default: off.
|
||||
.TP
|
||||
.BI "Option \*qpci_retry\*q \*q" boolean \*q
|
||||
will allow the driver to rely on PCI Retry to program the
|
||||
ViRGE registers.
|
||||
.B "pci_burst"
|
||||
must be enabled for this to work.
|
||||
This will increase performance, especially for small fills/blits,
|
||||
because the driver does not have to poll the ViRGE before sending it
|
||||
commands to make sure it is ready. It should work on most
|
||||
recent PCI chipsets. Default: off.
|
||||
|
||||
.PP
|
||||
The following additional
|
||||
.B Options
|
||||
are supported:
|
||||
.TP
|
||||
.BI "Option \*qShowCache\*q \*q" boolean \*q
|
||||
Enable or disable viewing offscreen cache memory. A
|
||||
development debug option. Default: off.
|
||||
|
||||
.SH SEE ALSO
|
||||
XFree86(1), XF86Config(__filemansuffix__), xf86config(1), Xserver(1), X(__miscmansuffix__)
|
||||
|
||||
.SH SUPPORT
|
||||
For assistance with this driver, or XFree86 in general, check the XFree86 web
|
||||
site at http://www.xfree86.org. A FAQ is available on the web site at
|
||||
http://www.xfree86.org/FAQ/. If you find a problem with XFree86 or have a
|
||||
question not answered in the FAQ please use our bug report form available on
|
||||
the web site or send mail to XFree86@XFree86.org. When reporting problems
|
||||
with the driver send as much detail as possible, including chipset type, a
|
||||
server output log, and operating system specifics.
|
||||
|
||||
.SH AUTHORS
|
||||
Kevin Brosius,
|
||||
Matt Grossman,
|
||||
Harald Koenig,
|
||||
Sebastien Marineau,
|
||||
Mark Vojkovich,
|
||||
Frido Garritsen,
|
||||
Corvin Zahn.
|
360
driver/xf86-video-siliconmotion/missing
Normal file
360
driver/xf86-video-siliconmotion/missing
Normal file
@ -0,0 +1,360 @@
|
||||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
|
||||
scriptversion=2005-06-08.21
|
||||
|
||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
run=:
|
||||
|
||||
# In the cases where this matters, `missing' is being run in the
|
||||
# srcdir already.
|
||||
if test -f configure.ac; then
|
||||
configure_ac=configure.ac
|
||||
else
|
||||
configure_ac=configure.in
|
||||
fi
|
||||
|
||||
msg="missing on your system"
|
||||
|
||||
case "$1" in
|
||||
--run)
|
||||
# Try to run requested program, and just exit if it succeeds.
|
||||
run=
|
||||
shift
|
||||
"$@" && exit 0
|
||||
# Exit code 63 means version mismatch. This often happens
|
||||
# when the user try to use an ancient version of a tool on
|
||||
# a file that requires a minimum version. In this case we
|
||||
# we should proceed has if the program had been absent, or
|
||||
# if --run hadn't been passed.
|
||||
if test $? = 63; then
|
||||
run=:
|
||||
msg="probably too old"
|
||||
fi
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
--run try to run the given command, and emulate it if it fails
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
help2man touch the output file
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
|
||||
Send bug reports to <bug-automake@gnu.org>."
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing $scriptversion (GNU Automake)"
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Now exit if we have it, but it failed. Also exit now if we
|
||||
# don't have it and --version was passed (most likely to detect
|
||||
# the program).
|
||||
case "$1" in
|
||||
lex|yacc)
|
||||
# Not GNU programs, they don't have --version.
|
||||
;;
|
||||
|
||||
tar)
|
||||
if test -n "$run"; then
|
||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
# We have it, but it failed.
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
# Could not run --version or --help. This is probably someone
|
||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||
# $TOOL exists and not knowing $TOOL uses missing.
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# If it does not exist, or fails to run (possibly an outdated version),
|
||||
# try to emulate it.
|
||||
case "$1" in
|
||||
aclocal*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`${configure_ac}'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||
test -z "$files" && files="config.h"
|
||||
touch_files=
|
||||
for f in $files; do
|
||||
case "$f" in
|
||||
*:*) touch_files="$touch_files "`echo "$f" |
|
||||
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||
*) touch_files="$touch_files $f.in";;
|
||||
esac
|
||||
done
|
||||
touch $touch_files
|
||||
;;
|
||||
|
||||
automake*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print |
|
||||
sed 's/\.am$/.in/' |
|
||||
while read f; do touch "$f"; done
|
||||
;;
|
||||
|
||||
autom4te)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, but is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them.
|
||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||
archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||
if test -f "$file"; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo "#! /bin/sh"
|
||||
echo "# Created by GNU Automake missing as a replacement of"
|
||||
echo "# $ $@"
|
||||
echo "exit 0"
|
||||
chmod +x $file
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' $msg. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f y.tab.h ]; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if [ ! -f y.tab.c ]; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex|flex)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f lex.yy.c ]; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
help2man)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a dependency of a manual page. You may need the
|
||||
\`Help2man' package in order for those modifications to take
|
||||
effect. You can get \`Help2man' from any GNU archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||
fi
|
||||
if [ -f "$file" ]; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo ".ab help2man is required to generate this page"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
# The file to touch is that specified with -o ...
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
# ... or it is the one specified with @setfilename ...
|
||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||
fi
|
||||
# If the file does not exist, the user really needs makeinfo;
|
||||
# let's fail without touching anything.
|
||||
test -f $file || exit 1
|
||||
touch $file
|
||||
;;
|
||||
|
||||
tar)
|
||||
shift
|
||||
|
||||
# We have already tried tar in the generic part.
|
||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||
# messages.
|
||||
if (gnutar --version > /dev/null 2>&1); then
|
||||
gnutar "$@" && exit 0
|
||||
fi
|
||||
if (gtar --version > /dev/null 2>&1); then
|
||||
gtar "$@" && exit 0
|
||||
fi
|
||||
firstarg="$1"
|
||||
if shift; then
|
||||
case "$firstarg" in
|
||||
*o*)
|
||||
firstarg=`echo "$firstarg" | sed s/o//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
case "$firstarg" in
|
||||
*h*)
|
||||
firstarg=`echo "$firstarg" | sed s/h//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo 1>&2 "\
|
||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||
You may want to install GNU tar or Free paxutils, or check the
|
||||
command line arguments."
|
||||
exit 1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequisites for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
42
driver/xf86-video-siliconmotion/src/Makefile.am
Normal file
42
driver/xf86-video-siliconmotion/src/Makefile.am
Normal file
@ -0,0 +1,42 @@
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# this is obnoxious:
|
||||
# -module lets us name the module exactly how we want
|
||||
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
||||
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
||||
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
||||
AM_CFLAGS = @XORG_CFLAGS@
|
||||
siliconmotion_drv_la_LTLIBRARIES = siliconmotion_drv.la
|
||||
siliconmotion_drv_la_LDFLAGS = -module -avoid-version
|
||||
siliconmotion_drv_ladir = @moduledir@/drivers
|
||||
|
||||
siliconmotion_drv_la_SOURCES = \
|
||||
regsmi.h \
|
||||
smi_accel.c \
|
||||
smi_dac.c \
|
||||
smi_dga.c \
|
||||
smi_driver.c \
|
||||
smi.h \
|
||||
smi_hwcurs.c \
|
||||
smi_i2c.c \
|
||||
smi_shadow.c \
|
||||
smi_video.c \
|
||||
smi_video.h
|
522
driver/xf86-video-siliconmotion/src/Makefile.in
Normal file
522
driver/xf86-video-siliconmotion/src/Makefile.in
Normal file
@ -0,0 +1,522 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = src
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(siliconmotion_drv_ladir)"
|
||||
siliconmotion_drv_laLTLIBRARIES_INSTALL = $(INSTALL)
|
||||
LTLIBRARIES = $(siliconmotion_drv_la_LTLIBRARIES)
|
||||
siliconmotion_drv_la_LIBADD =
|
||||
am_siliconmotion_drv_la_OBJECTS = smi_accel.lo smi_dac.lo smi_dga.lo \
|
||||
smi_driver.lo smi_hwcurs.lo smi_i2c.lo smi_shadow.lo \
|
||||
smi_video.lo
|
||||
siliconmotion_drv_la_OBJECTS = $(am_siliconmotion_drv_la_OBJECTS)
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(siliconmotion_drv_la_SOURCES)
|
||||
DIST_SOURCES = $(siliconmotion_drv_la_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DRIVER_NAME = @DRIVER_NAME@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
FFLAGS = @FFLAGS@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_F77 = @ac_ct_F77@
|
||||
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@
|
||||
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
|
||||
# this is obnoxious:
|
||||
# -module lets us name the module exactly how we want
|
||||
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
||||
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
||||
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
||||
AM_CFLAGS = @XORG_CFLAGS@
|
||||
siliconmotion_drv_la_LTLIBRARIES = siliconmotion_drv.la
|
||||
siliconmotion_drv_la_LDFLAGS = -module -avoid-version
|
||||
siliconmotion_drv_ladir = @moduledir@/drivers
|
||||
siliconmotion_drv_la_SOURCES = \
|
||||
regsmi.h \
|
||||
smi_accel.c \
|
||||
smi_dac.c \
|
||||
smi_dga.c \
|
||||
smi_driver.c \
|
||||
smi.h \
|
||||
smi_hwcurs.c \
|
||||
smi_i2c.c \
|
||||
smi_shadow.c \
|
||||
smi_video.c \
|
||||
smi_video.h
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
install-siliconmotion_drv_laLTLIBRARIES: $(siliconmotion_drv_la_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(siliconmotion_drv_ladir)" || $(mkdir_p) "$(DESTDIR)$(siliconmotion_drv_ladir)"
|
||||
@list='$(siliconmotion_drv_la_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=install $(siliconmotion_drv_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(siliconmotion_drv_ladir)/$$f'"; \
|
||||
$(LIBTOOL) --mode=install $(siliconmotion_drv_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(siliconmotion_drv_ladir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-siliconmotion_drv_laLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@set -x; list='$(siliconmotion_drv_la_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(siliconmotion_drv_ladir)/$$p'"; \
|
||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(siliconmotion_drv_ladir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-siliconmotion_drv_laLTLIBRARIES:
|
||||
-test -z "$(siliconmotion_drv_la_LTLIBRARIES)" || rm -f $(siliconmotion_drv_la_LTLIBRARIES)
|
||||
@list='$(siliconmotion_drv_la_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
siliconmotion_drv.la: $(siliconmotion_drv_la_OBJECTS) $(siliconmotion_drv_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(siliconmotion_drv_ladir) $(siliconmotion_drv_la_LDFLAGS) $(siliconmotion_drv_la_OBJECTS) $(siliconmotion_drv_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_accel.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_dac.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_dga.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_driver.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_hwcurs.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_i2c.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_shadow.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smi_video.Plo@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(siliconmotion_drv_ladir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool \
|
||||
clean-siliconmotion_drv_laLTLIBRARIES mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-siliconmotion_drv_laLTLIBRARIES
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am \
|
||||
uninstall-siliconmotion_drv_laLTLIBRARIES
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool clean-siliconmotion_drv_laLTLIBRARIES ctags \
|
||||
distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-man \
|
||||
install-siliconmotion_drv_laLTLIBRARIES install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags uninstall uninstall-am uninstall-info-am \
|
||||
uninstall-siliconmotion_drv_laLTLIBRARIES
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
272
driver/xf86-video-siliconmotion/src/regsmi.h
Normal file
272
driver/xf86-video-siliconmotion/src/regsmi.h
Normal file
@ -0,0 +1,272 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/regsmi.h-arc 1.11 14 Sep 2000 11:17:30 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-1999 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and SIlicon Motion.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/regsmi.h,v 1.2 2002/01/25 21:56:09 tsi Exp $ */
|
||||
|
||||
#ifndef _REGSMI_H
|
||||
#define _REGSMI_H
|
||||
|
||||
#define SMI_LYNX_SERIES(chip) ((chip & 0xF0F0) == 0x0010)
|
||||
#define SMI_LYNX3D_SERIES(chip) ((chip & 0xF0F0) == 0x0020)
|
||||
#define SMI_COUGAR_SERIES(chip) ((chip & 0xF0F0) == 0x0030)
|
||||
#define SMI_LYNXEM_SERIES(chip) ((chip & 0xFFF0) == 0x0710)
|
||||
#define SMI_LYNXM_SERIES(chip) ((chip & 0xFF00) == 0x0700)
|
||||
|
||||
/* Chip tags */
|
||||
#define PCI_SMI_VENDOR_ID PCI_VENDOR_SMI
|
||||
#define SMI_UNKNOWN 0
|
||||
#define SMI_LYNX PCI_CHIP_SMI910
|
||||
#define SMI_LYNXE PCI_CHIP_SMI810
|
||||
#define SMI_LYNX3D PCI_CHIP_SMI820
|
||||
#define SMI_LYNXEM PCI_CHIP_SMI710
|
||||
#define SMI_LYNXEMplus PCI_CHIP_SMI712
|
||||
#define SMI_LYNX3DM PCI_CHIP_SMI720
|
||||
#define SMI_COUGAR3DR PCI_CHIP_SMI731
|
||||
|
||||
/* I/O Functions */
|
||||
static __inline__ CARD8
|
||||
VGAIN8_INDEX(SMIPtr pSmi, int indexPort, int dataPort, CARD8 index)
|
||||
{
|
||||
if (pSmi->IOBase)
|
||||
{
|
||||
MMIO_OUT8(pSmi->IOBase, indexPort, index);
|
||||
return(MMIO_IN8(pSmi->IOBase, dataPort));
|
||||
}
|
||||
else
|
||||
{
|
||||
outb(pSmi->PIOBase + indexPort, index);
|
||||
return(inb(pSmi->PIOBase + dataPort));
|
||||
}
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
VGAOUT8_INDEX(SMIPtr pSmi, int indexPort, int dataPort, CARD8 index, CARD8 data)
|
||||
{
|
||||
if (pSmi->IOBase)
|
||||
{
|
||||
MMIO_OUT8(pSmi->IOBase, indexPort, index);
|
||||
MMIO_OUT8(pSmi->IOBase, dataPort, data);
|
||||
}
|
||||
else
|
||||
{
|
||||
outb(pSmi->PIOBase + indexPort, index);
|
||||
outb(pSmi->PIOBase + dataPort, data);
|
||||
}
|
||||
}
|
||||
|
||||
static __inline__ CARD8
|
||||
VGAIN8(SMIPtr pSmi, int port)
|
||||
{
|
||||
if (pSmi->IOBase)
|
||||
{
|
||||
return(MMIO_IN8(pSmi->IOBase, port));
|
||||
}
|
||||
else
|
||||
{
|
||||
return(inb(pSmi->PIOBase + port));
|
||||
}
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
VGAOUT8(SMIPtr pSmi, int port, CARD8 data)
|
||||
{
|
||||
if (pSmi->IOBase)
|
||||
{
|
||||
MMIO_OUT8(pSmi->IOBase, port, data);
|
||||
}
|
||||
else
|
||||
{
|
||||
outb(pSmi->PIOBase + port, data);
|
||||
}
|
||||
}
|
||||
|
||||
#define OUT_SEQ(pSmi, index, data) \
|
||||
VGAOUT8_INDEX((pSmi), VGA_SEQ_INDEX, VGA_SEQ_DATA, (index), (data))
|
||||
#define IN_SEQ(pSmi, index) \
|
||||
VGAIN8_INDEX((pSmi), VGA_SEQ_INDEX, VGA_SEQ_DATA, (index))
|
||||
|
||||
#define WRITE_DPR(pSmi, dpr, data) MMIO_OUT32(pSmi->DPRBase, dpr, data); DEBUG((VERBLEV, "DPR%02X = %08X\n", dpr, data))
|
||||
#define READ_DPR(pSmi, dpr) MMIO_IN32(pSmi->DPRBase, dpr)
|
||||
#define WRITE_VPR(pSmi, vpr, data) MMIO_OUT32(pSmi->VPRBase, vpr, data); DEBUG((VERBLEV, "VPR%02X = %08X\n", vpr, data))
|
||||
#define READ_VPR(pSmi, vpr) MMIO_IN32(pSmi->VPRBase, vpr)
|
||||
#define WRITE_CPR(pSmi, cpr, data) MMIO_OUT32(pSmi->CPRBase, cpr, data); DEBUG((VERBLEV, "CPR%02X = %08X\n", cpr, data))
|
||||
#define READ_CPR(pSmi, cpr) MMIO_IN32(pSmi->CPRBase, cpr)
|
||||
#define WRITE_FPR(pSmi, fpr, data) MMIO_OUT32(pSmi->FPRBase, fpr, data); DEBUG((VERBLEV, "FPR%02X = %08X\n", fpr, data))
|
||||
#define READ_FPR(pSmi, fpr) MMIO_IN32(pSmi->FPRBase, fpr)
|
||||
|
||||
/* 2D Engine commands */
|
||||
#define SMI_TRANSPARENT_SRC 0x00000100
|
||||
#define SMI_TRANSPARENT_DEST 0x00000300
|
||||
|
||||
#define SMI_OPAQUE_PXL 0x00000000
|
||||
#define SMI_TRANSPARENT_PXL 0x00000400
|
||||
|
||||
#define SMI_MONO_PACK_8 0x00001000
|
||||
#define SMI_MONO_PACK_16 0x00002000
|
||||
#define SMI_MONO_PACK_32 0x00003000
|
||||
|
||||
#define SMI_ROP2_SRC 0x00008000
|
||||
#define SMI_ROP2_PAT 0x0000C000
|
||||
#define SMI_ROP3 0x00000000
|
||||
|
||||
#define SMI_BITBLT 0x00000000
|
||||
#define SMI_RECT_FILL 0x00010000
|
||||
#define SMI_TRAPEZOID_FILL 0x00030000
|
||||
#define SMI_SHORT_STROKE 0x00060000
|
||||
#define SMI_BRESENHAM_LINE 0x00070000
|
||||
#define SMI_HOSTBLT_WRITE 0x00080000
|
||||
#define SMI_HOSTBLT_READ 0x00090000
|
||||
#define SMI_ROTATE_BLT 0x000B0000
|
||||
|
||||
#define SMI_SRC_COLOR 0x00000000
|
||||
#define SMI_SRC_MONOCHROME 0x00400000
|
||||
|
||||
#define SMI_GRAPHICS_STRETCH 0x00800000
|
||||
|
||||
#define SMI_ROTATE_CW 0x01000000
|
||||
#define SMI_ROTATE_CCW 0x02000000
|
||||
|
||||
#define SMI_MAJOR_X 0x00000000
|
||||
#define SMI_MAJOR_Y 0x04000000
|
||||
|
||||
#define SMI_LEFT_TO_RIGHT 0x00000000
|
||||
#define SMI_RIGHT_TO_LEFT 0x08000000
|
||||
|
||||
#define SMI_COLOR_PATTERN 0x40000000
|
||||
#define SMI_MONO_PATTERN 0x00000000
|
||||
|
||||
#define SMI_QUICK_START 0x10000000
|
||||
#define SMI_START_ENGINE 0x80000000
|
||||
|
||||
#define MAXLOOP 0x100000 /* timeout value for engine waits */
|
||||
|
||||
#define ENGINE_IDLE() \
|
||||
((VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x16) & 0x08) == 0)
|
||||
#define FIFO_EMPTY() \
|
||||
((VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x16) & 0x10) != 0)
|
||||
|
||||
/* Wait until "v" queue entries are free */
|
||||
#define WaitQueue(v) \
|
||||
do \
|
||||
{ \
|
||||
if (pSmi->NoPCIRetry) \
|
||||
{ \
|
||||
int loop = MAXLOOP; mem_barrier(); \
|
||||
while (!FIFO_EMPTY()) \
|
||||
if (loop-- == 0) break; \
|
||||
if (loop <= 0) SMI_GEReset(pScrn, 1, __LINE__, __FILE__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/* Wait until GP is idle */
|
||||
#define WaitIdle() \
|
||||
do \
|
||||
{ \
|
||||
int loop = MAXLOOP; mem_barrier(); \
|
||||
while (!ENGINE_IDLE()) \
|
||||
if (loop-- == 0) break; \
|
||||
if (loop <= 0) SMI_GEReset(pScrn, 1, __LINE__, __FILE__); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
/* Wait until GP is idle and queue is empty */
|
||||
#define WaitIdleEmpty() \
|
||||
do \
|
||||
{ \
|
||||
WaitQueue(MAXFIFO); \
|
||||
WaitIdle(); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
#define RGB8_PSEUDO (-1)
|
||||
#define RGB16_565 0
|
||||
#define RGB16_555 1
|
||||
#define RGB32_888 2
|
||||
|
||||
/* register defines so we're not hardcoding numbers */
|
||||
|
||||
#define FPR00 0x0000
|
||||
|
||||
/* video window formats - I=indexed, P=packed */
|
||||
#define FPR00_FMT_8I 0x0
|
||||
#define FPR00_FMT_15P 0x1
|
||||
#define FPR00_FMT_16P 0x2
|
||||
#define FPR00_FMT_32P 0x3
|
||||
#define FPR00_FMT_24P 0x4
|
||||
#define FPR00_FMT_8P 0x5
|
||||
#define FPR00_FMT_YUV422 0x6
|
||||
#define FPR00_FMT_YUV420 0x7
|
||||
|
||||
/* possible bit definitions for FPR00 - VWI = Video Window 1 */
|
||||
#define FPR00_VWIENABLE 0x00000008
|
||||
#define FPR00_VWITILE 0x00000010
|
||||
#define FPR00_VWIFILTER2 0x00000020
|
||||
#define FPR00_VWIFILTER4 0x00000040
|
||||
#define FPR00_VWIKEYENABLE 0x00000080
|
||||
#define FPR00_VWIGDF_SHIFT 16
|
||||
#define FPR00_VWIGDENABLE 0x00080000
|
||||
#define FPR00_VWIGDTILE 0x00100000
|
||||
|
||||
#define FPR00_MASKBITS 0x0000FFFF
|
||||
|
||||
#define FPR04 0x0004
|
||||
#define FPR08 0x0008
|
||||
#define FPR0C 0x000C
|
||||
#define FPR10 0x0010
|
||||
#define FPR14 0x0014
|
||||
#define FPR18 0x0018
|
||||
#define FPR1C 0x001C
|
||||
#define FPR20 0x0020
|
||||
#define FPR24 0x0024
|
||||
#define FPR58 0x0058
|
||||
#define FPR5C 0x005C
|
||||
#define FPR68 0x0068
|
||||
#define FPRB0 0x00B0
|
||||
#define FPRB4 0x00B4
|
||||
#define FPRC4 0x00C4
|
||||
#define FPRCC 0x00CC
|
||||
|
||||
#define FPR158 0x0158
|
||||
#define FPR158_MASK_MAXBITS 0x07FF
|
||||
#define FPR158_MASK_BOUNDARY 0x0800
|
||||
#define FPR15C 0x015C
|
||||
#define FPR15C_MASK_HWCCOLORS 0x0000FFFF
|
||||
#define FPR15C_MASK_HWCADDREN 0xFFFF0000
|
||||
#define FPR15C_MASK_HWCENABLE 0x80000000
|
||||
|
||||
/* panel sizes returned by the bios */
|
||||
|
||||
#define PANEL_640x480 0x00
|
||||
#define PANEL_800x600 0x01
|
||||
#define PANEL_1024x768 0x02
|
||||
#define PANEL_1280x1024 0x03
|
||||
#define PANEL_1600x1200 0x04
|
||||
#define PANEL_1400x1050 0x0A
|
||||
|
||||
|
||||
#endif /* _REGSMI_H */
|
358
driver/xf86-video-siliconmotion/src/smi.h
Normal file
358
driver/xf86-video-siliconmotion/src/smi.h
Normal file
@ -0,0 +1,358 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi.h-arc 1.51 29 Nov 2000 17:45:16 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-1999 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and Silicon Motion.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi.h,v 1.12tsi Exp $ */
|
||||
|
||||
#ifndef _SMI_H
|
||||
#define _SMI_H
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86_OSproc.h"
|
||||
#include "xf86PciInfo.h"
|
||||
#include "xf86Pci.h"
|
||||
#include "xf86Cursor.h"
|
||||
#include "vgaHW.h"
|
||||
|
||||
#include "compiler.h"
|
||||
|
||||
#include "mipointer.h"
|
||||
#include "micmap.h"
|
||||
|
||||
#include "fb.h"
|
||||
|
||||
#include "xaa.h"
|
||||
#include "xf86cmap.h"
|
||||
#include "xf86i2c.h"
|
||||
|
||||
#include "xf86int10.h"
|
||||
#include "vbe.h"
|
||||
|
||||
#include "xf86xv.h"
|
||||
#include <X11/extensions/Xv.h>
|
||||
|
||||
/******************************************************************************/
|
||||
/* D E F I N I T I O N S */
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef SMI_DEBUG
|
||||
# define SMI_DEBUG 0
|
||||
#endif
|
||||
|
||||
#define SMI_USE_IMAGE_WRITES 0
|
||||
#define SMI_USE_VIDEO 1
|
||||
#define SMI_USE_CAPTURE 1
|
||||
|
||||
/******************************************************************************/
|
||||
/* S T R U C T U R E S */
|
||||
/******************************************************************************/
|
||||
|
||||
/* Driver data structure; this should contain all needed info for a mode */
|
||||
typedef struct
|
||||
{
|
||||
Bool modeInit;
|
||||
CARD16 mode;
|
||||
CARD8 SR17, SR18, SR21, SR31, SR32, SR6A, SR6B, SR81, SRA0;
|
||||
CARD8 CR33, CR33_2, CR3A;
|
||||
CARD8 CR40[14], CR40_2[14];
|
||||
CARD8 CR90[16], CR9F_2;
|
||||
CARD8 CRA0[14];
|
||||
CARD8 smiDACMask, smiDacRegs[256][3];
|
||||
/* CZ 2.11.2001: for gamma correction */
|
||||
CARD8 CCR66;
|
||||
/* end CZ */
|
||||
CARD8 smiFont[8192];
|
||||
CARD32 DPR10, DPR1C, DPR20, DPR24, DPR28, DPR2C, DPR30, DPR3C, DPR40,
|
||||
DPR44;
|
||||
CARD32 VPR00, VPR0C, VPR10;
|
||||
CARD32 CPR00;
|
||||
CARD32 FPR00_, FPR0C_, FPR10_;
|
||||
/* LCD FIFO regs, etc. - dualhead */
|
||||
CARD8 SR22, SR40, SR41, SR42, SR43, SR44, SR45, SR48, SR49,
|
||||
SR4A, SR4B, SR4C;
|
||||
/* PLL controls */
|
||||
CARD8 SR68, SR69, SR6C, SR6D, SR6E, SR6F;
|
||||
|
||||
} SMIRegRec, *SMIRegPtr;
|
||||
|
||||
/* Global PDEV structure. */
|
||||
typedef struct
|
||||
{
|
||||
/* accel additions */
|
||||
CARD32 AccelCmd; /* Value for DPR0C */
|
||||
CARD32 Stride; /* Stride of frame buffer */
|
||||
CARD32 ScissorsLeft; /* Left/top of current
|
||||
scissors */
|
||||
CARD32 ScissorsRight; /* Right/bottom of current
|
||||
scissors */
|
||||
Bool ClipTurnedOn; /* Clipping was turned on by
|
||||
the previous command */
|
||||
CARD8 SR18Value; /* PDR#521: original SR18
|
||||
value */
|
||||
CARD8 SR21Value; /* PDR#521: original SR21
|
||||
value */
|
||||
SMIRegRec SavedReg; /* console saved mode
|
||||
registers */
|
||||
SMIRegRec ModeReg; /* XServer video state mode
|
||||
registers */
|
||||
xf86CursorInfoPtr CursorInfoRec; /* HW Cursor info */
|
||||
|
||||
Bool ModeStructInit; /* Flag indicating ModeReg has
|
||||
been duped from console
|
||||
state */
|
||||
int vgaCRIndex, vgaCRReg;
|
||||
int width, height; /* Width and height of the
|
||||
screen */
|
||||
int Bpp; /* Bytes per pixel */
|
||||
|
||||
/* XAA */
|
||||
int videoRAMBytes; /* In units as noted, set in
|
||||
PreInit */
|
||||
int videoRAMKBytes; /* In units as noted, set in
|
||||
PreInit */
|
||||
unsigned char * MapBase; /* Base of mapped memory */
|
||||
int MapSize; /* Size of mapped memory */
|
||||
CARD8 * DPRBase; /* Base of DPR registers */
|
||||
CARD8 * VPRBase; /* Base of VPR registers */
|
||||
CARD8 * CPRBase; /* Base of CPR registers */
|
||||
CARD8 * FPRBase; /* Base of FPR registers - for 0730 chipset */
|
||||
CARD8 * DataPortBase; /* Base of data port */
|
||||
int DataPortSize; /* Size of data port */
|
||||
CARD8 * IOBase; /* Base of MMIO VGA ports */
|
||||
IOADDRESS PIOBase; /* Base of I/O ports */
|
||||
unsigned char * FBBase; /* Base of FB */
|
||||
CARD32 FBOffset; /* Current visual FB starting
|
||||
location */
|
||||
CARD32 FBCursorOffset; /* Cursor storage location */
|
||||
CARD32 FBReserved; /* Reserved memory in frame
|
||||
buffer */
|
||||
|
||||
Bool PrimaryVidMapped; /* Flag indicating if
|
||||
vgaHWMapMem was used
|
||||
successfully for
|
||||
this screen */
|
||||
int MCLK; /* Memory Clock */
|
||||
int GEResetCnt; /* Limit the number of errors
|
||||
printed using a counter */
|
||||
|
||||
Bool pci_burst; /* Enable PCI burst mode for
|
||||
reads? */
|
||||
Bool NoPCIRetry; /* Disable PCI retries */
|
||||
Bool fifo_conservative; /* Adjust fifo for
|
||||
acceleration? */
|
||||
Bool fifo_moderate; /* Adjust fifo for
|
||||
acceleration? */
|
||||
Bool fifo_aggressive; /* Adjust fifo for
|
||||
acceleration? */
|
||||
Bool NoAccel; /* Disable Acceleration */
|
||||
Bool hwcursor; /* hardware cursor enabled */
|
||||
Bool ShowCache; /* Debugging option */
|
||||
Bool useBIOS; /* Use BIOS for mode sets */
|
||||
Bool zoomOnLCD; /* Zoom on LCD */
|
||||
|
||||
CloseScreenProcPtr CloseScreen; /* Pointer used to save wrapped
|
||||
CloseScreen function */
|
||||
XAAInfoRecPtr AccelInfoRec; /* XAA info Rec */
|
||||
pciVideoPtr PciInfo; /* PCI info vars */
|
||||
PCITAG PciTag;
|
||||
int Chipset; /* Chip info, set using PCI
|
||||
above */
|
||||
int ChipRev;
|
||||
|
||||
/* DGA */
|
||||
DGAModePtr DGAModes; /* Pointer to DGA modes */
|
||||
int numDGAModes; /* Number of DGA modes */
|
||||
Bool DGAactive; /* Flag if DGA is active */
|
||||
int DGAViewportStatus;
|
||||
|
||||
/* DPMS */
|
||||
int CurrentDPMS; /* Current DPMS state */
|
||||
unsigned char DPMS_SR20; /* Saved DPMS SR20 register */
|
||||
unsigned char DPMS_SR21; /* Saved DPMS SR21 register */
|
||||
unsigned char DPMS_SR31; /* Saved DPMS SR31 register */
|
||||
unsigned char DPMS_SR34; /* Saved DPMS SR34 register */
|
||||
|
||||
/* Panel information */
|
||||
Bool lcd; /* LCD active, 1=DSTN, 2=TFT */
|
||||
int lcdWidth; /* LCD width */
|
||||
int lcdHeight; /* LCD height */
|
||||
|
||||
I2CBusPtr I2C; /* Pointer into I2C module */
|
||||
xf86Int10InfoPtr pInt10; /* Pointer to INT10 module */
|
||||
|
||||
/* Shadow frame buffer (rotation) */
|
||||
Bool shadowFB; /* Flag if shadow buffer is
|
||||
used */
|
||||
int rotate; /* Rotation flags */
|
||||
int ShadowPitch; /* Pitch of shadow buffer */
|
||||
int ShadowWidthBytes; /* Width of shadow
|
||||
buffer in bytes */
|
||||
int ShadowWidth; /* Width of shadow buffer in
|
||||
pixels */
|
||||
int ShadowHeight; /* Height of shadow buffer in
|
||||
pixels */
|
||||
CARD32 saveBufferSize; /* #670 - FB save buffer size */
|
||||
void * pSaveBuffer; /* #670 - FB save buffer */
|
||||
CARD32 fbMapOffset; /* offset for fb mapping */
|
||||
CARD32 savedFBOffset; /* #670 - Saved FBOffset value */
|
||||
CARD32 savedFBReserved; /* #670 - Saved
|
||||
FBReserved value */
|
||||
CARD8 * paletteBuffer; /* #920 - Palette save buffer */
|
||||
|
||||
/* Polylines - #671 */
|
||||
ValidateGCProcPtr ValidatePolylines; /* Org.
|
||||
ValidatePolylines
|
||||
function */
|
||||
Bool polyLines; /* Our polylines patch is
|
||||
active */
|
||||
|
||||
void (*PointerMoved)(int index, int x, int y);
|
||||
|
||||
int videoKey; /* Video chroma key */
|
||||
Bool ByteSwap; /* Byte swap for ZV port */
|
||||
Bool interlaced; /* True: Interlaced Video */
|
||||
/* XvExtension */
|
||||
XF86VideoAdaptorPtr ptrAdaptor; /* Pointer to VideoAdapter
|
||||
structure */
|
||||
void (*BlockHandler)(int i, pointer blockData, pointer pTimeout,
|
||||
pointer pReadMask);
|
||||
GCPtr videoGC;
|
||||
OptionInfoPtr Options;
|
||||
CARD8 DACmask;
|
||||
|
||||
Bool Dualhead;
|
||||
|
||||
} SMIRec, *SMIPtr;
|
||||
|
||||
#define SMIPTR(p) ((SMIPtr)((p)->driverPrivate))
|
||||
|
||||
/******************************************************************************/
|
||||
/* M A C R O S */
|
||||
/******************************************************************************/
|
||||
|
||||
#if SMI_DEBUG
|
||||
# define VERBLEV 1
|
||||
# define ENTER_PROC(PROCNAME) xf86ErrorFVerb(VERBLEV, "ENTER\t" PROCNAME \
|
||||
"(%d)\n", __LINE__); xf86Break1()
|
||||
# define DEBUG_PROC(PROCNAME) xf86ErrorFVerb(VERBLEV, "DEBUG\t" PROCNAME \
|
||||
"(%d)\n", __LINE__); xf86Break2()
|
||||
# define LEAVE_PROC(PROCNAME) xf86ErrorFVerb(VERBLEV, "LEAVE\t" PROCNAME \
|
||||
"(%d)\n", __LINE__); xf86Break1()
|
||||
# define DEBUG(arg) xf86ErrorFVerb arg
|
||||
#else
|
||||
# define VERBLEV 4
|
||||
# define ENTER_PROC(PROCNAME)
|
||||
# define DEBUG_PROC(PROCNAME)
|
||||
# define LEAVE_PROC(PROCNAME)
|
||||
# define DEBUG(arg)
|
||||
#endif
|
||||
|
||||
/* Some Silicon Motion structs & registers */
|
||||
#include "regsmi.h"
|
||||
|
||||
#if !defined (MetroLink) && !defined (VertDebug)
|
||||
#define VerticalRetraceWait() \
|
||||
do \
|
||||
{ \
|
||||
if (VGAIN8_INDEX(pSmi, vgaCRIndex, vgaCRData, 0x17) & 0x80) \
|
||||
{ \
|
||||
while ((VGAIN8(pSmi, vgaIOBase + 0x0A) & 0x08) == 0x00); \
|
||||
while ((VGAIN8(pSmi, vgaIOBase + 0x0A) & 0x08) == 0x08); \
|
||||
while ((VGAIN8(pSmi, vgaIOBase + 0x0A) & 0x08) == 0x00); \
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define SPIN_LIMIT 1000000
|
||||
#define VerticalRetraceWait() \
|
||||
do \
|
||||
{ \
|
||||
if (VGAIN8_INDEX(pSmi, vgaCRIndex, vgaCRData, 0x17) & 0x80) \
|
||||
{ \
|
||||
volatile unsigned long _spin_me; \
|
||||
for (_spin_me = SPIN_LIMIT; \
|
||||
((VGAIN8(pSmi, vgaIOBase + 0x0A) & 0x08) == 0x00) && \
|
||||
_spin_me; \
|
||||
_spin_me--); \
|
||||
if (!_spin_me) \
|
||||
ErrorF("smi: warning: VerticalRetraceWait timed out.\n"); \
|
||||
for (_spin_me = SPIN_LIMIT; \
|
||||
((VGAIN8(pSmi, vgaIOBase + 0x0A) & 0x08) == 0x08) && \
|
||||
_spin_me; \
|
||||
_spin_me--); \
|
||||
if (!_spin_me) \
|
||||
ErrorF("smi: warning: VerticalRetraceWait timed out.\n"); \
|
||||
for (_spin_me = SPIN_LIMIT; \
|
||||
((VGAIN8(pSmi, vgaIOBase + 0x0A) & 0x08) == 0x00) && \
|
||||
_spin_me; \
|
||||
_spin_me--); \
|
||||
if (!_spin_me) \
|
||||
ErrorF("smi: warning: VerticalRetraceWait timed out.\n"); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
/* F U N C T I O N P R O T O T Y P E S */
|
||||
/******************************************************************************/
|
||||
|
||||
/* smi_dac.c */
|
||||
void SMI_CommonCalcClock(int scrnIndex, long freq, int min_m, int min_n1,
|
||||
int max_n1, int min_n2, int max_n2, long freq_min,
|
||||
long freq_max, unsigned char * mdiv,
|
||||
unsigned char * ndiv);
|
||||
|
||||
/* smi_i2c */
|
||||
Bool SMI_I2CInit(ScrnInfoPtr pScrn);
|
||||
|
||||
/* smi_accel.c */
|
||||
Bool SMI_AccelInit(ScreenPtr pScrn);
|
||||
void SMI_AccelSync(ScrnInfoPtr pScrn);
|
||||
void SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file);
|
||||
void SMI_EngineReset(ScrnInfoPtr);
|
||||
|
||||
/* smi_hwcurs.c */
|
||||
Bool SMI_HWCursorInit(ScreenPtr pScrn);
|
||||
|
||||
/* smi_driver.c */
|
||||
void SMI_AdjustFrame(int scrnIndex, int x, int y, int flags);
|
||||
Bool SMI_SwitchMode(int scrnIndex, DisplayModePtr mode, int flags);
|
||||
|
||||
/* smi_dga.c */
|
||||
Bool SMI_DGAInit(ScreenPtr pScrn);
|
||||
|
||||
/* smi_shadow.c */
|
||||
void SMI_PointerMoved(int index, int x, int y);
|
||||
void SMI_RefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
|
||||
void SMI_RefreshArea730(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
|
||||
|
||||
/* smi_video.c */
|
||||
void SMI_InitVideo(ScreenPtr pScreen);
|
||||
|
||||
#endif /*_SMI_H*/
|
1119
driver/xf86-video-siliconmotion/src/smi_accel.c
Normal file
1119
driver/xf86-video-siliconmotion/src/smi_accel.c
Normal file
File diff suppressed because it is too large
Load Diff
103
driver/xf86-video-siliconmotion/src/smi_dac.c
Normal file
103
driver/xf86-video-siliconmotion/src/smi_dac.c
Normal file
@ -0,0 +1,103 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi_dac.c-arc 1.8 27 Nov 2000 15:47:08 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-1998 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and Silicon Motion.
|
||||
*/
|
||||
/* $XFree86$ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "smi.h"
|
||||
|
||||
#define BASE_FREQ 14.31818 /* MHz */
|
||||
|
||||
void
|
||||
SMI_CommonCalcClock(int scrnIndex, long freq, int min_m, int min_n1,
|
||||
int max_n1, int min_n2, int max_n2, long freq_min,
|
||||
long freq_max, unsigned char *mdiv, unsigned char *ndiv)
|
||||
{
|
||||
double div, diff, best_diff;
|
||||
unsigned int m;
|
||||
unsigned char n1, n2;
|
||||
unsigned char best_n1 = 63, best_n2 = 3, best_m = 255;
|
||||
|
||||
double ffreq = freq / 1000.0 / BASE_FREQ;
|
||||
double ffreq_min = freq_min / 1000.0 / BASE_FREQ;
|
||||
double ffreq_max = freq_max / 1000.0 / BASE_FREQ;
|
||||
|
||||
if (ffreq < ffreq_min / (1 << max_n2))
|
||||
{
|
||||
xf86DrvMsg(scrnIndex,X_WARNING,"invalid frequency %1.3f MHz [freq >= %1.3f MHz]\n",
|
||||
ffreq * BASE_FREQ, ffreq_min * BASE_FREQ / (1 << max_n2));
|
||||
ffreq = ffreq_min / (1 << max_n2);
|
||||
}
|
||||
if (ffreq > ffreq_max / (1 << min_n2))
|
||||
{
|
||||
xf86DrvMsg(scrnIndex,X_WARNING,"invalid frequency %1.3f MHz [freq <= %1.3f MHz]\n",
|
||||
ffreq * BASE_FREQ, ffreq_max * BASE_FREQ / (1 << min_n2));
|
||||
ffreq = ffreq_max / (1 << min_n2);
|
||||
}
|
||||
|
||||
/* work out suitable timings */
|
||||
best_diff = ffreq;
|
||||
|
||||
for (n2 = min_n2; n2 <= max_n2; n2++)
|
||||
{
|
||||
for (n1 = min_n1; n1 <= max_n1; n1++)
|
||||
{
|
||||
m = (int)(ffreq * n1 * (1 << n2) + 0.5);
|
||||
if ( (m < min_m) || (m > 255) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
div = (double)(m) / (double)(n1);
|
||||
if ( (div >= ffreq_min) && (div <= ffreq_max) )
|
||||
{
|
||||
diff = ffreq - div / (1 << n2);
|
||||
if (diff < 0.0)
|
||||
{
|
||||
diff = -diff;
|
||||
}
|
||||
if (diff < best_diff)
|
||||
{
|
||||
best_diff = diff;
|
||||
best_m = m;
|
||||
best_n1 = n1;
|
||||
best_n2 = n2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG((VERBLEV, "Clock parameters for %1.6f MHz: m=%d, n1=%d, n2=%d\n",
|
||||
((double)(best_m) / (double)(best_n1) / (1 << best_n2)) * BASE_FREQ,
|
||||
best_m, best_n1, best_n2));
|
||||
|
||||
*ndiv = best_n1 | (best_n2 << 6);
|
||||
*mdiv = best_m;
|
||||
}
|
304
driver/xf86-video-siliconmotion/src/smi_dga.c
Normal file
304
driver/xf86-video-siliconmotion/src/smi_dga.c
Normal file
@ -0,0 +1,304 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi_dga.c-arc 1.5 27 Nov 2000 15:47:18 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and Silicon Motion.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_dga.c,v 1.1 2000/11/28 20:59:19 dawes Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86_OSproc.h"
|
||||
#include "xf86Pci.h"
|
||||
#include "xf86PciInfo.h"
|
||||
#include "xaa.h"
|
||||
#include "xaalocal.h"
|
||||
|
||||
#include "smi.h"
|
||||
#include "dgaproc.h"
|
||||
|
||||
static Bool SMI_OpenFramebuffer(ScrnInfoPtr, char **, unsigned char **, int *,
|
||||
int *, int *);
|
||||
static Bool SMI_SetMode(ScrnInfoPtr, DGAModePtr);
|
||||
static int SMI_GetViewport(ScrnInfoPtr);
|
||||
static void SMI_SetViewport(ScrnInfoPtr, int, int, int);
|
||||
static void SMI_FillRect(ScrnInfoPtr, int, int, int, int, unsigned long);
|
||||
static void SMI_BlitRect(ScrnInfoPtr, int, int, int, int, int, int);
|
||||
static void SMI_BlitTransRect(ScrnInfoPtr, int, int, int, int, int, int,
|
||||
unsigned long);
|
||||
|
||||
static
|
||||
DGAFunctionRec SMI_DGAFuncs =
|
||||
{
|
||||
SMI_OpenFramebuffer,
|
||||
NULL,
|
||||
SMI_SetMode,
|
||||
SMI_SetViewport,
|
||||
SMI_GetViewport,
|
||||
SMI_AccelSync,
|
||||
SMI_FillRect,
|
||||
SMI_BlitRect,
|
||||
SMI_BlitTransRect
|
||||
};
|
||||
|
||||
Bool
|
||||
SMI_DGAInit(ScreenPtr pScreen)
|
||||
{
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
DGAModePtr modes = NULL, newmodes = NULL, currentMode;
|
||||
DisplayModePtr pMode, firstMode;
|
||||
int Bpp = pScrn->bitsPerPixel >> 3;
|
||||
int num = 0;
|
||||
Bool ret;
|
||||
|
||||
ENTER_PROC("SMI_DGAInit");
|
||||
|
||||
pMode = firstMode = pScrn->modes;
|
||||
|
||||
while (pMode)
|
||||
{
|
||||
newmodes = xrealloc(modes, (num + 1) * sizeof(DGAModeRec));
|
||||
if (newmodes == NULL)
|
||||
{
|
||||
xfree(modes);
|
||||
LEAVE_PROC("SMI_DGAInit");
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
modes = newmodes;
|
||||
|
||||
currentMode = modes + num;
|
||||
num++;
|
||||
|
||||
currentMode->mode = pMode;
|
||||
currentMode->flags = DGA_PIXMAP_AVAILABLE;
|
||||
if (!pSmi->NoAccel)
|
||||
{
|
||||
currentMode->flags |= DGA_FILL_RECT
|
||||
| DGA_BLIT_RECT
|
||||
| DGA_BLIT_RECT_TRANS;
|
||||
}
|
||||
if (pMode->Flags & V_DBLSCAN)
|
||||
{
|
||||
currentMode->flags |= DGA_DOUBLESCAN;
|
||||
}
|
||||
if (pMode->Flags & V_INTERLACE)
|
||||
{
|
||||
currentMode->flags |= DGA_INTERLACED;
|
||||
}
|
||||
|
||||
currentMode->byteOrder = pScrn->imageByteOrder;
|
||||
currentMode->depth = pScrn->depth;
|
||||
currentMode->bitsPerPixel = pScrn->bitsPerPixel;
|
||||
currentMode->red_mask = pScrn->mask.red;
|
||||
currentMode->green_mask = pScrn->mask.green;
|
||||
currentMode->blue_mask = pScrn->mask.blue;
|
||||
currentMode->visualClass = (Bpp == 1) ? PseudoColor : TrueColor;
|
||||
currentMode->viewportWidth = pMode->HDisplay;
|
||||
currentMode->viewportHeight = pMode->VDisplay;
|
||||
currentMode->xViewportStep = (Bpp == 3) ? 8 : (8 / Bpp);
|
||||
currentMode->yViewportStep = 1;
|
||||
currentMode->viewportFlags = DGA_FLIP_RETRACE;
|
||||
currentMode->offset = 0;
|
||||
currentMode->address = pSmi->FBBase;
|
||||
|
||||
xf86ErrorFVerb(VERBLEV, "\tSMI_DGAInit %dx%d @ %d bpp\n",
|
||||
currentMode->viewportWidth, currentMode->viewportHeight,
|
||||
currentMode->bitsPerPixel);
|
||||
|
||||
currentMode->bytesPerScanline = ((pScrn->displayWidth * Bpp) + 15)
|
||||
& ~15L;
|
||||
currentMode->imageWidth = pScrn->displayWidth;
|
||||
currentMode->imageHeight = pSmi->FBReserved
|
||||
/ currentMode->bytesPerScanline;
|
||||
currentMode->pixmapWidth = currentMode->imageWidth;
|
||||
currentMode->pixmapHeight = currentMode->imageHeight;
|
||||
currentMode->maxViewportX = currentMode->imageWidth
|
||||
- currentMode->viewportWidth;
|
||||
currentMode->maxViewportY = currentMode->imageHeight
|
||||
- currentMode->viewportHeight;
|
||||
|
||||
pMode = pMode->next;
|
||||
if (pMode == firstMode)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pSmi->numDGAModes = num;
|
||||
pSmi->DGAModes = modes;
|
||||
|
||||
ret = DGAInit(pScreen, &SMI_DGAFuncs, modes, num);
|
||||
LEAVE_PROC("SMI_DGAInit");
|
||||
return(ret);
|
||||
}
|
||||
|
||||
static Bool
|
||||
SMI_SetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
|
||||
{
|
||||
static int OldDisplayWidth[MAXSCREENS];
|
||||
int index = pScrn->pScreen->myNum;
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_SetMode");
|
||||
|
||||
if (pMode == NULL)
|
||||
{ /* restore the original mode */
|
||||
|
||||
/* put the ScreenParameters back */
|
||||
pScrn->displayWidth = OldDisplayWidth[index];
|
||||
|
||||
SMI_SwitchMode(index, pScrn->currentMode, 0);
|
||||
pSmi->DGAactive = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!pSmi->DGAactive)
|
||||
{ /* save the old parameters */
|
||||
OldDisplayWidth[index] = pScrn->displayWidth;
|
||||
|
||||
pSmi->DGAactive = TRUE;
|
||||
}
|
||||
|
||||
pScrn->displayWidth = pMode->bytesPerScanline
|
||||
/ (pMode->bitsPerPixel >> 3);
|
||||
|
||||
SMI_SwitchMode(index, pMode->mode, 0);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_SetMode");
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
SMI_GetViewport(ScrnInfoPtr pScrn)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_GetViewport");
|
||||
|
||||
LEAVE_PROC("SMI_GetViewport");
|
||||
|
||||
return(pSmi->DGAViewportStatus);
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_SetViewport(ScrnInfoPtr pScrn, int x, int y, int flags)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_SetViewport");
|
||||
|
||||
SMI_AdjustFrame(pScrn->pScreen->myNum, x, y, flags);
|
||||
pSmi->DGAViewportStatus = 0;
|
||||
|
||||
LEAVE_PROC("SMI_SetViewport");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_FillRect(ScrnInfoPtr pScrn, int x, int y, int w, int h, unsigned long color)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_FillRect");
|
||||
|
||||
if (pSmi->AccelInfoRec)
|
||||
{
|
||||
(*pSmi->AccelInfoRec->SetupForSolidFill)(pScrn, color, GXcopy, ~0);
|
||||
(*pSmi->AccelInfoRec->SubsequentSolidFillRect)(pScrn, x, y, w, h);
|
||||
SET_SYNC_FLAG(pSmi->AccelInfoRec);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_FillRect");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_BlitRect(ScrnInfoPtr pScrn, int srcx, int srcy, int w, int h, int dstx,
|
||||
int dsty)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_BlitRect");
|
||||
|
||||
if (pSmi->AccelInfoRec)
|
||||
{
|
||||
int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1;
|
||||
int ydir = (srcy < dsty) ? -1 : 1;
|
||||
|
||||
(*pSmi->AccelInfoRec->SetupForScreenToScreenCopy)(pScrn, xdir, ydir,
|
||||
GXcopy, ~0, -1);
|
||||
(*pSmi->AccelInfoRec->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy,
|
||||
dstx, dsty, w, h);
|
||||
SET_SYNC_FLAG(pSmi->AccelInfoRec);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_BlitRect");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_BlitTransRect(ScrnInfoPtr pScrn, int srcx, int srcy, int w, int h, int dstx,
|
||||
int dsty, unsigned long color)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_BlitTraneRect");
|
||||
|
||||
if (pSmi->AccelInfoRec)
|
||||
{
|
||||
int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1;
|
||||
int ydir = (srcy < dsty) ? -1 : 1;
|
||||
|
||||
(*pSmi->AccelInfoRec->SetupForScreenToScreenCopy)(pScrn, xdir, ydir,
|
||||
GXcopy, ~0, color);
|
||||
(*pSmi->AccelInfoRec->SubsequentScreenToScreenCopy)(pScrn, srcx, srcy,
|
||||
dstx, dsty, w, h);
|
||||
SET_SYNC_FLAG(pSmi->AccelInfoRec);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_BlitTraneRect");
|
||||
}
|
||||
|
||||
static Bool
|
||||
SMI_OpenFramebuffer(ScrnInfoPtr pScrn, char **name, unsigned char **mem,
|
||||
int *size, int *offset, int *flags)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_OpenFrameBuffer");
|
||||
|
||||
*name = NULL; /* no special device */
|
||||
*mem = (unsigned char*)pSmi->FBBase;
|
||||
*size = pSmi->videoRAMBytes;
|
||||
*offset = 0;
|
||||
*flags = DGA_NEED_ROOT;
|
||||
|
||||
LEAVE_PROC("SMI_OpenFrameBuffer");
|
||||
return(TRUE);
|
||||
}
|
3599
driver/xf86-video-siliconmotion/src/smi_driver.c
Normal file
3599
driver/xf86-video-siliconmotion/src/smi_driver.c
Normal file
File diff suppressed because it is too large
Load Diff
451
driver/xf86-video-siliconmotion/src/smi_hwcurs.c
Normal file
451
driver/xf86-video-siliconmotion/src/smi_hwcurs.c
Normal file
@ -0,0 +1,451 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi_hwcurs.c-arc 1.12 27 Nov 2000 15:47:48 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-1999 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and Silicon Motion.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_hwcurs.c,v 1.1 2000/11/28 20:59:20 dawes Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cursorstr.h"
|
||||
#include "smi.h"
|
||||
|
||||
#define MAX_CURSOR 32
|
||||
|
||||
static unsigned char *
|
||||
SMI_RealizeCursor(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(infoPtr->pScrn);
|
||||
CursorBitsPtr bits = pCurs->bits;
|
||||
unsigned char * ram;
|
||||
unsigned char * psource = bits->source;
|
||||
unsigned char * pmask = bits->mask;
|
||||
int x, y, srcwidth, i;
|
||||
|
||||
ENTER_PROC("SMI_RealizeCursor");
|
||||
|
||||
/* Allocate memory */
|
||||
ram = (unsigned char *) xcalloc(1, 1024);
|
||||
if (ram == NULL)
|
||||
{
|
||||
LEAVE_PROC("SMI_RealizeCursor");
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
/* Calculate cursor information */
|
||||
srcwidth = ((bits->width + 31) / 8) & ~3;
|
||||
i = 0;
|
||||
|
||||
switch (pSmi->rotate)
|
||||
{
|
||||
default:
|
||||
/* Copy cursor image */
|
||||
for (y = 0; y < min(MAX_CURSOR, bits->height); y++)
|
||||
{
|
||||
for (x = 0; x < min(MAX_CURSOR / 8, srcwidth); x++)
|
||||
{
|
||||
unsigned char mask = byte_reversed[*pmask++];
|
||||
unsigned char source = byte_reversed[*psource++] & mask;
|
||||
|
||||
ram[i++] = ~mask;
|
||||
ram[i++] = source;
|
||||
if (i & 4) i += 4;
|
||||
}
|
||||
|
||||
pmask += srcwidth - x;
|
||||
psource += srcwidth - x;
|
||||
|
||||
/* Fill remaining part of line with no shape */
|
||||
for (; x < MAX_CURSOR / 8; x++)
|
||||
{
|
||||
ram[i++] = 0xFF;
|
||||
ram[i++] = 0x00;
|
||||
if (i & 4) i += 4;
|
||||
}
|
||||
}
|
||||
|
||||
/* Fill remaining part of memory with no shape */
|
||||
for (; y < MAX_CURSOR; y++)
|
||||
{
|
||||
for (x = 0; x < MAX_CURSOR / 8; x++)
|
||||
{
|
||||
ram[i++] = 0xFF;
|
||||
ram[i++] = 0x00;
|
||||
if (i & 4) i += 4;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CW:
|
||||
/* Initialize cursor memory */
|
||||
for (i = 0; i < 1024;)
|
||||
{
|
||||
ram[i++] = 0xFF;
|
||||
ram[i++] = 0x00;
|
||||
if (i & 4) i += 4;
|
||||
}
|
||||
|
||||
/* Rotate cursor image */
|
||||
for (y = 0; y < min(MAX_CURSOR, bits->height); y++)
|
||||
{
|
||||
unsigned char bitmask = 0x01 << (y & 7);
|
||||
int index = ((MAX_CURSOR - y - 1) / 8) * 2;
|
||||
if (index & 4) index += 4;
|
||||
|
||||
for (x = 0; x < min(MAX_CURSOR / 8, srcwidth); x++)
|
||||
{
|
||||
unsigned char mask = *pmask++;
|
||||
unsigned char source = *psource++ & mask;
|
||||
|
||||
i = index + (x * 8) * 16;
|
||||
if (mask || (source & mask))
|
||||
{
|
||||
unsigned char bit;
|
||||
for (bit = 0x01; bit; bit <<= 1)
|
||||
{
|
||||
if (mask & bit)
|
||||
{
|
||||
ram[i + 0] &= ~bitmask;
|
||||
}
|
||||
|
||||
if (source & bit)
|
||||
{
|
||||
ram[i + 1] |= bitmask;
|
||||
}
|
||||
|
||||
i += 16;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pmask += srcwidth - x;
|
||||
psource += srcwidth - x;
|
||||
}
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CCW:
|
||||
/* Initialize cursor memory */
|
||||
for (i = 0; i < 1024;)
|
||||
{
|
||||
ram[i++] = 0xFF;
|
||||
ram[i++] = 0x00;
|
||||
if (i & 4) i += 4;
|
||||
}
|
||||
|
||||
/* Rotate cursor image */
|
||||
for (y = 0; y < min(MAX_CURSOR, bits->height); y++)
|
||||
{
|
||||
unsigned char bitmask = 0x80 >> (y & 7);
|
||||
int index = (y >> 3) * 2;
|
||||
if (index & 4) index += 4;
|
||||
|
||||
for (x = 0; x < min(MAX_CURSOR / 8, srcwidth); x++)
|
||||
{
|
||||
unsigned char mask = *pmask++;
|
||||
unsigned char source = *psource++ & mask;
|
||||
|
||||
i = index + (MAX_CURSOR - x * 8 - 1) * 16;
|
||||
if (mask || (source & mask))
|
||||
{
|
||||
unsigned char bit;
|
||||
for (bit = 0x01; bit; bit <<= 1)
|
||||
{
|
||||
if (mask & bit)
|
||||
{
|
||||
ram[i + 0] &= ~bitmask;
|
||||
}
|
||||
|
||||
if (source & bit)
|
||||
{
|
||||
ram[i + 1] |= bitmask;
|
||||
}
|
||||
|
||||
i -= 16;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pmask += srcwidth - x;
|
||||
psource += srcwidth - x;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_RealizeCursor");
|
||||
return(ram);
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_LoadCursorImage(ScrnInfoPtr pScrn, unsigned char *src)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
CARD8 tmp;
|
||||
|
||||
ENTER_PROC("SMI_LoadCursorImage");
|
||||
|
||||
/* Load storage location. */
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x80,
|
||||
pSmi->FBCursorOffset / 2048);
|
||||
tmp = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x81) & 0x80;
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x81,
|
||||
tmp | ((pSmi->FBCursorOffset / 2048) >> 8));
|
||||
|
||||
/* Program FPR copy when on the 730 */
|
||||
if (pSmi->Chipset == SMI_COUGAR3DR)
|
||||
{
|
||||
CARD32 fpr15c;
|
||||
|
||||
/* put address in upper word, and disable the cursor */
|
||||
fpr15c = READ_FPR(pSmi, FPR15C) & FPR15C_MASK_HWCCOLORS;
|
||||
fpr15c |= (pSmi->FBCursorOffset / 2048) << 16;
|
||||
WRITE_FPR(pSmi, FPR15C, fpr15c);
|
||||
}
|
||||
|
||||
/* Copy cursor image to framebuffer storage */
|
||||
memcpy(pSmi->FBBase + pSmi->FBCursorOffset, src, 1024);
|
||||
|
||||
LEAVE_PROC("SMI_LoadCursorImage");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_ShowCursor(ScrnInfoPtr pScrn)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
char tmp;
|
||||
|
||||
ENTER_PROC("SMI_ShowCursor");
|
||||
|
||||
/* Show cursor */
|
||||
tmp = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x81);
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x81, tmp | 0x80);
|
||||
|
||||
/* Program FPR copy when on the 730 */
|
||||
if (pSmi->Chipset == SMI_COUGAR3DR)
|
||||
{
|
||||
CARD32 fpr15c;
|
||||
|
||||
/* turn on the top bit */
|
||||
fpr15c = READ_FPR(pSmi, FPR15C);
|
||||
fpr15c |= FPR15C_MASK_HWCENABLE;
|
||||
WRITE_FPR(pSmi, FPR15C, fpr15c);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_ShowCursor");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_HideCursor(ScrnInfoPtr pScrn)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
char tmp;
|
||||
|
||||
ENTER_PROC("SMI_HideCursor");
|
||||
|
||||
/* Hide cursor */
|
||||
tmp = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x81);
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x81, tmp & ~0x80);
|
||||
|
||||
/* Program FPR copy when on the 730 */
|
||||
if (pSmi->Chipset == SMI_COUGAR3DR)
|
||||
{
|
||||
CARD32 fpr15c;
|
||||
|
||||
/* turn off the top bit */
|
||||
fpr15c = READ_FPR(pSmi, FPR15C);
|
||||
fpr15c &= ~FPR15C_MASK_HWCENABLE;
|
||||
WRITE_FPR(pSmi, FPR15C, fpr15c);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_HideCursor");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_SetCursorPosition(ScrnInfoPtr pScrn, int x, int y)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
int xoff, yoff;
|
||||
|
||||
ENTER_PROC("SMI_SetCursorPosition");
|
||||
|
||||
/* Calculate coordinates for rotation */
|
||||
switch (pSmi->rotate)
|
||||
{
|
||||
default:
|
||||
xoff = x;
|
||||
yoff = y;
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CW:
|
||||
xoff = pSmi->ShadowHeight - y - MAX_CURSOR;
|
||||
yoff = x;
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CCW:
|
||||
xoff = y;
|
||||
yoff = pSmi->ShadowWidth - x - MAX_CURSOR;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Program coordinates */
|
||||
if (xoff >= 0)
|
||||
{
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x88, xoff & 0xFF);
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x89,
|
||||
(xoff >> 8) & 0x07);
|
||||
}
|
||||
else
|
||||
{
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x88,
|
||||
(-xoff) & (MAX_CURSOR - 1));
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x89, 0x08);
|
||||
}
|
||||
|
||||
if (yoff >= 0)
|
||||
{
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x8A, yoff & 0xFF);
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x8B,
|
||||
(yoff >> 8) & 0x07);
|
||||
}
|
||||
else
|
||||
{
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x8A,
|
||||
(-yoff) & (MAX_CURSOR - 1));
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x8B, 0x08);
|
||||
}
|
||||
|
||||
/* Program FPR copy when on the 730 */
|
||||
if (pSmi->Chipset == SMI_COUGAR3DR)
|
||||
{
|
||||
CARD32 fpr158;
|
||||
|
||||
if (xoff >= 0)
|
||||
{
|
||||
fpr158 = (xoff & FPR158_MASK_MAXBITS)<<16;
|
||||
}
|
||||
else
|
||||
{
|
||||
fpr158 = (((-xoff) & FPR158_MASK_MAXBITS) | FPR158_MASK_BOUNDARY)<<16;
|
||||
}
|
||||
|
||||
if (yoff >= 0)
|
||||
{
|
||||
fpr158 |= (yoff & FPR158_MASK_MAXBITS);
|
||||
}
|
||||
else
|
||||
{
|
||||
fpr158 |= (((-yoff) & FPR158_MASK_MAXBITS) | FPR158_MASK_BOUNDARY);
|
||||
}
|
||||
|
||||
/* Program combined coordinates */
|
||||
WRITE_FPR(pSmi, FPR158, fpr158);
|
||||
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_SetCursorPosition");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_SetCursorColors(ScrnInfoPtr pScrn, int bg, int fg)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
unsigned char packedFG, packedBG;
|
||||
|
||||
ENTER_PROC("SMI_SetCursorColors");
|
||||
|
||||
/* Pack the true color into 8 bit */
|
||||
packedFG = (fg & 0xE00000) >> 16
|
||||
| (fg & 0x00E000) >> 11
|
||||
| (fg & 0x0000C0) >> 6
|
||||
;
|
||||
packedBG = (bg & 0xE00000) >> 16
|
||||
| (bg & 0x00E000) >> 11
|
||||
| (bg & 0x0000C0) >> 6
|
||||
;
|
||||
|
||||
/* Program the colors */
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x8C, packedFG);
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x8D, packedBG);
|
||||
|
||||
/* Program FPR copy when on the 730 */
|
||||
if (pSmi->Chipset == SMI_COUGAR3DR)
|
||||
{
|
||||
CARD32 fpr15c;
|
||||
|
||||
fpr15c = READ_FPR(pSmi, FPR15C) & FPR15C_MASK_HWCADDREN;
|
||||
fpr15c |= packedFG;
|
||||
fpr15c |= packedBG<<8;
|
||||
WRITE_FPR(pSmi, FPR15C, fpr15c);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_SetCursorColors");
|
||||
}
|
||||
|
||||
Bool
|
||||
SMI_HWCursorInit(ScreenPtr pScreen)
|
||||
{
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
xf86CursorInfoPtr infoPtr;
|
||||
Bool ret;
|
||||
|
||||
ENTER_PROC("SMI_HWCursorInit");
|
||||
|
||||
/* Create cursor infor record */
|
||||
infoPtr = xf86CreateCursorInfoRec();
|
||||
if (infoPtr == NULL)
|
||||
{
|
||||
LEAVE_PROC("SMI_HWCursorInit");
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
pSmi->CursorInfoRec = infoPtr;
|
||||
|
||||
/* Fill in the information */
|
||||
infoPtr->MaxWidth = MAX_CURSOR;
|
||||
infoPtr->MaxHeight = MAX_CURSOR;
|
||||
infoPtr->Flags = HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_8
|
||||
| HARDWARE_CURSOR_SWAP_SOURCE_AND_MASK
|
||||
| HARDWARE_CURSOR_AND_SOURCE_WITH_MASK
|
||||
| HARDWARE_CURSOR_BIT_ORDER_MSBFIRST
|
||||
| HARDWARE_CURSOR_TRUECOLOR_AT_8BPP
|
||||
| HARDWARE_CURSOR_INVERT_MASK;
|
||||
|
||||
infoPtr->SetCursorColors = SMI_SetCursorColors;
|
||||
infoPtr->SetCursorPosition = SMI_SetCursorPosition;
|
||||
infoPtr->LoadCursorImage = SMI_LoadCursorImage;
|
||||
infoPtr->HideCursor = SMI_HideCursor;
|
||||
infoPtr->ShowCursor = SMI_ShowCursor;
|
||||
infoPtr->RealizeCursor = SMI_RealizeCursor;
|
||||
infoPtr->UseHWCursor = NULL;
|
||||
|
||||
/* Proceed with cursor initialization */
|
||||
ret = xf86InitCursor(pScreen, infoPtr);
|
||||
|
||||
LEAVE_PROC("SMI_HWCursorInit");
|
||||
return(ret);
|
||||
}
|
118
driver/xf86-video-siliconmotion/src/smi_i2c.c
Normal file
118
driver/xf86-video-siliconmotion/src/smi_i2c.c
Normal file
@ -0,0 +1,118 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi_i2c.c-arc 1.10 27 Nov 2000 15:47:58 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and Silicon Motion.
|
||||
*/
|
||||
/* $XFree86$ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86_OSproc.h"
|
||||
#include "compiler.h"
|
||||
#include "xf86Pci.h"
|
||||
#include "xf86PciInfo.h"
|
||||
#include "vgaHW.h"
|
||||
|
||||
#include "smi.h"
|
||||
|
||||
#undef VERBLEV
|
||||
#undef ENTER_PROC
|
||||
#undef DEBUG_PROC
|
||||
#undef LEAVE_PROC
|
||||
#undef DEBUG
|
||||
#define VERBLEV 2
|
||||
#define ENTER_PROC(PROCNAME)
|
||||
#define DEBUG_PROC(PROCNAME)
|
||||
#define LEAVE_PROC(PROCNAME)
|
||||
#define DEBUG(arg)
|
||||
|
||||
static void
|
||||
SMI_I2CPutBits(I2CBusPtr b, int clock, int data)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(xf86Screens[b->scrnIndex]);
|
||||
unsigned int reg = 0x30;
|
||||
|
||||
ENTER_PROC("SMI_I2CPutBits");
|
||||
|
||||
if (clock) reg |= 0x01;
|
||||
if (data) reg |= 0x02;
|
||||
|
||||
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x72, reg);
|
||||
|
||||
LEAVE_PROC("SMI_I2CPutBits");
|
||||
}
|
||||
|
||||
static void
|
||||
SMI_I2CGetBits(I2CBusPtr b, int *clock, int *data)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(xf86Screens[b->scrnIndex]);
|
||||
unsigned int reg = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x72);
|
||||
|
||||
ENTER_PROC("SMI_I2CGetBits");
|
||||
|
||||
*clock = reg & 0x04;
|
||||
*data = reg & 0x08;
|
||||
|
||||
LEAVE_PROC("SMI_I2CGetBits");
|
||||
}
|
||||
|
||||
Bool
|
||||
SMI_I2CInit(ScrnInfoPtr pScrn)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
|
||||
ENTER_PROC("SMI_I2CInit");
|
||||
|
||||
if (pSmi->I2C == NULL)
|
||||
{
|
||||
I2CBusPtr I2CPtr = xf86CreateI2CBusRec();
|
||||
if (I2CPtr == NULL)
|
||||
{
|
||||
LEAVE_PROC("SMI_I2CInit");
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
I2CPtr->BusName = "I2C bus";
|
||||
I2CPtr->scrnIndex = pScrn->scrnIndex;
|
||||
I2CPtr->I2CPutBits = SMI_I2CPutBits;
|
||||
I2CPtr->I2CGetBits = SMI_I2CGetBits;
|
||||
|
||||
if (!xf86I2CBusInit(I2CPtr))
|
||||
{
|
||||
xf86DestroyI2CBusRec(I2CPtr, TRUE, TRUE);
|
||||
LEAVE_PROC("SMI_I2CInit");
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
pSmi->I2C = I2CPtr;
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_I2CInit");
|
||||
return(TRUE);
|
||||
}
|
385
driver/xf86-video-siliconmotion/src/smi_shadow.c
Normal file
385
driver/xf86-video-siliconmotion/src/smi_shadow.c
Normal file
@ -0,0 +1,385 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi_shadow.c-arc 1.10 30 Nov 2000 11:40:38 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and Silicon Motion.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_shadow.c,v 1.1 2000/11/28 20:59:20 dawes Exp $ */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86_OSproc.h"
|
||||
#include "xf86Resources.h"
|
||||
#include "xf86PciInfo.h"
|
||||
#include "xf86Pci.h"
|
||||
#include "shadowfb.h"
|
||||
#include "servermd.h"
|
||||
|
||||
#include "smi.h"
|
||||
|
||||
/******************************************************************************\
|
||||
|* SMI_RefreshArea
|
||||
|*=============================================================================
|
||||
|*
|
||||
|* PARAMETERS: pScrn Pointer to ScrnInfo structure.
|
||||
|* num Number of boxes to refresh.
|
||||
|* pbox Pointer to an array of boxes to refresh.
|
||||
|*
|
||||
|* DESCRIPTION: Refresh a portion of the shadow buffer to the visual screen
|
||||
|* buffer. This is mainly used for rotation purposes.
|
||||
|* y
|
||||
|* RETURNS: Nothing.
|
||||
|*
|
||||
\******************************************************************************/
|
||||
void SMI_RefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
int width, height, srcX, srcY, destX, destY;
|
||||
|
||||
ENTER_PROC("SMI_RefreshArea");
|
||||
|
||||
/* #671 */
|
||||
if (pSmi->polyLines)
|
||||
{
|
||||
pSmi->polyLines = FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (pSmi->rotate)
|
||||
{
|
||||
/* IF we need to do rotation, setup the hardware here. */
|
||||
WaitIdleEmpty();
|
||||
WRITE_DPR(pSmi, 0x10, pSmi->ShadowPitch);
|
||||
WRITE_DPR(pSmi, 0x3C, pSmi->ShadowPitch);
|
||||
WRITE_DPR(pSmi, 0x44, pSmi->FBOffset >> 3);
|
||||
}
|
||||
|
||||
/* #672 */
|
||||
if (pSmi->ClipTurnedOn)
|
||||
{
|
||||
WaitQueue(1);
|
||||
WRITE_DPR(pSmi, 0x2C, pSmi->ScissorsLeft);
|
||||
pSmi->ClipTurnedOn = FALSE;
|
||||
}
|
||||
|
||||
while (num--)
|
||||
{
|
||||
/* Get coordinates of the box to refresh. */
|
||||
srcX = pbox->x1;
|
||||
srcY = pbox->y1;
|
||||
width = pbox->x2 - srcX;
|
||||
height = pbox->y2 - srcY;
|
||||
|
||||
DEBUG((VERBLEV, "x=%d y=%d w=%d h=%d\n", srcX, srcY, width, height));
|
||||
|
||||
if ((width > 0) && (height > 0))
|
||||
{
|
||||
switch (pSmi->rotate)
|
||||
{
|
||||
case SMI_ROTATE_CW:
|
||||
/* 90 degrees CW rotation. Calculate destination
|
||||
coordinates:
|
||||
|
||||
*---+
|
||||
| | +-----*
|
||||
| | | | destX = shadowHeight - srcY - 1
|
||||
| | --> | | destY = srcX
|
||||
| | | |
|
||||
| | +-----+
|
||||
+---+
|
||||
*/
|
||||
destX = pSmi->ShadowHeight - srcY - 1;
|
||||
destY = srcX;
|
||||
|
||||
WaitQueue(4);
|
||||
WRITE_DPR(pSmi, 0x00, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x04, (destX << 16) + destY);
|
||||
WRITE_DPR(pSmi, 0x08, (width << 16) + height);
|
||||
WRITE_DPR(pSmi, 0x0C, 0xCC | SMI_ROTATE_BLT |
|
||||
SMI_ROTATE_CW | SMI_START_ENGINE);
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CCW:
|
||||
/* 90 degrees CCW rotatation. Calculate destination
|
||||
coordinates:
|
||||
|
||||
*---+
|
||||
| | +-----+
|
||||
| | | | destX = srcY
|
||||
| | --> | | destY = shadowWidth - srcX - 1
|
||||
| | | |
|
||||
| | *-----+
|
||||
+---+
|
||||
*/
|
||||
destX = srcY;
|
||||
destY = pSmi->ShadowWidth - srcX - 1;
|
||||
|
||||
WaitQueue(4);
|
||||
WRITE_DPR(pSmi, 0x00, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x04, (destX << 16) + destY);
|
||||
WRITE_DPR(pSmi, 0x08, (width << 16) + height);
|
||||
WRITE_DPR(pSmi, 0x0C, 0xCC | SMI_ROTATE_BLT |
|
||||
SMI_ROTATE_CCW | SMI_START_ENGINE);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* No rotation, perform a normal copy. */
|
||||
if (pScrn->bitsPerPixel == 24)
|
||||
{
|
||||
srcX *= 3;
|
||||
width *= 3;
|
||||
|
||||
if (pSmi->Chipset == SMI_LYNX)
|
||||
{
|
||||
srcY *= 3;
|
||||
}
|
||||
}
|
||||
|
||||
WaitQueue(4);
|
||||
WRITE_DPR(pSmi, 0x00, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x04, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x08, (width << 16) + height);
|
||||
WRITE_DPR(pSmi, 0x0C, SMI_BITBLT + SMI_START_ENGINE + 0xCC);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pbox++;
|
||||
}
|
||||
|
||||
if (pSmi->rotate)
|
||||
{
|
||||
/* If we did a rotation, we need to restore the hardware state here. */
|
||||
WaitIdleEmpty();
|
||||
WRITE_DPR(pSmi, 0x10, (pSmi->Stride << 16) | pSmi->Stride);
|
||||
WRITE_DPR(pSmi, 0x3C, (pSmi->Stride << 16) | pSmi->Stride);
|
||||
WRITE_DPR(pSmi, 0x44, 0);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_RefreshArea");
|
||||
}
|
||||
|
||||
/* Custom version for the 730 series (Cougar3DR).
|
||||
This chipset has problems with large rotate-blts. */
|
||||
|
||||
void SMI_RefreshArea730(ScrnInfoPtr pScrn, int num, BoxPtr pbox)
|
||||
{
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
int width, height, srcX, srcY, destX, destY;
|
||||
int maxPixels, tempWidth;
|
||||
|
||||
ENTER_PROC("SMI_RefreshArea730");
|
||||
|
||||
/* #671 */
|
||||
if (pSmi->polyLines)
|
||||
{
|
||||
pSmi->polyLines = FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (pSmi->rotate)
|
||||
{
|
||||
/* IF we need to do rotation, setup the hardware here. */
|
||||
WaitIdleEmpty();
|
||||
WRITE_DPR(pSmi, 0x10, pSmi->ShadowPitch);
|
||||
WRITE_DPR(pSmi, 0x3C, pSmi->ShadowPitch);
|
||||
WRITE_DPR(pSmi, 0x44, pSmi->FBOffset >> 3);
|
||||
}
|
||||
|
||||
/* #672 */
|
||||
if (pSmi->ClipTurnedOn)
|
||||
{
|
||||
WaitQueue(1);
|
||||
WRITE_DPR(pSmi, 0x2C, pSmi->ScissorsLeft);
|
||||
pSmi->ClipTurnedOn = FALSE;
|
||||
}
|
||||
|
||||
/* SM731 cannot rotate-blt more than a certain number of pixels
|
||||
(based on a calculation from the Windows driver source */
|
||||
maxPixels = 1280 / pScrn->bitsPerPixel;
|
||||
|
||||
while (num--)
|
||||
{
|
||||
/* Get coordinates of the box to refresh. */
|
||||
srcX = pbox->x1;
|
||||
srcY = pbox->y1;
|
||||
width = pbox->x2 - srcX;
|
||||
height = pbox->y2 - srcY;
|
||||
|
||||
DEBUG((VERBLEV, "x=%d y=%d w=%d h=%d\n", srcX, srcY, width, height));
|
||||
|
||||
if ((width > 0) && (height > 0))
|
||||
{
|
||||
switch (pSmi->rotate)
|
||||
{
|
||||
case SMI_ROTATE_CW:
|
||||
/* 90 degrees CW rotation. Calculate destination
|
||||
coordinates:
|
||||
|
||||
*---+
|
||||
| | +-----*
|
||||
| | | | destX = shadowHeight - srcY - 1
|
||||
| | --> | | destY = srcX
|
||||
| | | |
|
||||
| | +-----+
|
||||
+---+
|
||||
*/
|
||||
destX = pSmi->ShadowHeight - srcY - 1;
|
||||
destY = srcX;
|
||||
|
||||
for (tempWidth=width; tempWidth>0;)
|
||||
{
|
||||
if (width>maxPixels)
|
||||
width = maxPixels;
|
||||
WaitQueue(4);
|
||||
WRITE_DPR(pSmi, 0x00, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x04, (destX << 16) + destY);
|
||||
WRITE_DPR(pSmi, 0x08, (width << 16) + height);
|
||||
WRITE_DPR(pSmi, 0x0C, 0xCC | SMI_ROTATE_BLT |
|
||||
SMI_ROTATE_CW | SMI_START_ENGINE);
|
||||
destY += maxPixels;
|
||||
srcX += maxPixels;
|
||||
tempWidth -= maxPixels;
|
||||
width = tempWidth;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CCW:
|
||||
/* 90 degrees CCW rotatation. Calculate destination
|
||||
coordinates:
|
||||
|
||||
*---+
|
||||
| | +-----+
|
||||
| | | | destX = srcY
|
||||
| | --> | | destY = shadowWidth - srcX - 1
|
||||
| | | |
|
||||
| | *-----+
|
||||
+---+
|
||||
*/
|
||||
destX = srcY;
|
||||
destY = pSmi->ShadowWidth - srcX - 1;
|
||||
|
||||
for (tempWidth=width; tempWidth>0;)
|
||||
{
|
||||
if (width>maxPixels)
|
||||
width = maxPixels;
|
||||
WaitQueue(4);
|
||||
WRITE_DPR(pSmi, 0x00, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x04, (destX << 16) + destY);
|
||||
WRITE_DPR(pSmi, 0x08, (width << 16) + height);
|
||||
WRITE_DPR(pSmi, 0x0C, 0xCC | SMI_ROTATE_BLT |
|
||||
SMI_ROTATE_CCW | SMI_START_ENGINE);
|
||||
destY -= maxPixels;
|
||||
srcX += maxPixels;
|
||||
tempWidth -= maxPixels;
|
||||
width = tempWidth;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
/* No rotation, perform a normal copy. */
|
||||
if (pScrn->bitsPerPixel == 24)
|
||||
{
|
||||
srcX *= 3;
|
||||
width *= 3;
|
||||
|
||||
if (pSmi->Chipset == SMI_LYNX)
|
||||
{
|
||||
srcY *= 3;
|
||||
}
|
||||
}
|
||||
|
||||
WaitQueue(4);
|
||||
WRITE_DPR(pSmi, 0x00, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x04, (srcX << 16) + srcY);
|
||||
WRITE_DPR(pSmi, 0x08, (width << 16) + height);
|
||||
WRITE_DPR(pSmi, 0x0C, SMI_BITBLT + SMI_START_ENGINE + 0xCC);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pbox++;
|
||||
}
|
||||
|
||||
if (pSmi->rotate)
|
||||
{
|
||||
/* If we did a rotation, we need to restore the hardware state here. */
|
||||
WaitIdleEmpty();
|
||||
WRITE_DPR(pSmi, 0x10, (pSmi->Stride << 16) | pSmi->Stride);
|
||||
WRITE_DPR(pSmi, 0x3C, (pSmi->Stride << 16) | pSmi->Stride);
|
||||
WRITE_DPR(pSmi, 0x44, 0);
|
||||
}
|
||||
|
||||
LEAVE_PROC("SMI_RefreshArea730");
|
||||
}
|
||||
|
||||
/******************************************************************************\
|
||||
|* SMI_PointerMoved
|
||||
|*=============================================================================
|
||||
|*
|
||||
|* PARAMETERS: index Index of current screen.
|
||||
|* x X location of pointer.
|
||||
|* y Y location of pointer.
|
||||
|*
|
||||
|* DESCRIPTION: Adjust the pointer location if we are in rotation mode.
|
||||
|*
|
||||
|* RETURNS: Nothing.
|
||||
|*
|
||||
\******************************************************************************/
|
||||
void SMI_PointerMoved(int index, int x, int y)
|
||||
{
|
||||
ScrnInfoPtr pScrn = xf86Screens[index];
|
||||
SMIPtr pSmi = SMIPTR(pScrn);
|
||||
int newX, newY;
|
||||
|
||||
switch (pSmi->rotate)
|
||||
{
|
||||
case SMI_ROTATE_CW:
|
||||
/* 90 degrees CW rotation. */
|
||||
newX = pScrn->pScreen->height - y - 1;
|
||||
newY = x;
|
||||
break;
|
||||
|
||||
case SMI_ROTATE_CCW:
|
||||
/* 90 degrees CCW rotation. */
|
||||
newX = y;
|
||||
newY = pScrn->pScreen->width - x - 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* No rotation. */
|
||||
newX = x;
|
||||
newY = y;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Pass adjusted pointer coordinates original PointerMoved function. */
|
||||
(*pSmi->PointerMoved)(index, newX, newY);
|
||||
}
|
2631
driver/xf86-video-siliconmotion/src/smi_video.c
Normal file
2631
driver/xf86-video-siliconmotion/src/smi_video.c
Normal file
File diff suppressed because it is too large
Load Diff
103
driver/xf86-video-siliconmotion/src/smi_video.h
Normal file
103
driver/xf86-video-siliconmotion/src/smi_video.h
Normal file
@ -0,0 +1,103 @@
|
||||
/* Header: //Mercury/Projects/archives/XFree86/4.0/smi_video.h.-arc 1.8 27 Nov 2000 15:46:06 Frido $ */
|
||||
|
||||
/*
|
||||
Copyright (C) 1994-1999 The XFree86 Project, Inc. All Rights Reserved.
|
||||
Copyright (C) 2000 Silicon Motion, Inc. All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the names of the XFree86 Project and
|
||||
Silicon Motion shall not be used in advertising or otherwise to promote the
|
||||
sale, use or other dealings in this Software without prior written
|
||||
authorization from the XFree86 Project and silicon Motion.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_video.h,v 1.4 2002/09/16 18:06:01 eich Exp $ */
|
||||
|
||||
#ifndef _SMI_VIDEO_H
|
||||
#define _SMI_VIDEO_H
|
||||
|
||||
#include "fourcc.h"
|
||||
|
||||
#define SMI_VIDEO_VIDEO 0
|
||||
#define SMI_VIDEO_IMAGE 1
|
||||
|
||||
#define FOURCC_RV15 0x35315652
|
||||
#define FOURCC_RV16 0x36315652
|
||||
#define FOURCC_RV24 0x34325652
|
||||
#define FOURCC_RV32 0x32335652
|
||||
|
||||
#define OFF_DELAY 200 /* milliseconds */
|
||||
#define FREE_DELAY 60000 /* milliseconds */
|
||||
|
||||
#define OFF_TIMER 0x01
|
||||
#define FREE_TIMER 0x02
|
||||
#define CLIENT_VIDEO_ON 0x04
|
||||
#define TIMER_MASK (OFF_TIMER | FREE_TIMER)
|
||||
|
||||
#define SAA7110 0x9C
|
||||
#define SAA7111 0x48
|
||||
|
||||
/*
|
||||
* Attributes
|
||||
*/
|
||||
|
||||
#define N_ATTRS 8
|
||||
|
||||
#define XV_ENCODING 0
|
||||
#define XV_BRIGHTNESS 1
|
||||
#define XV_CAPTURE_BRIGHTNESS 2
|
||||
#define XV_CONTRAST 3
|
||||
#define XV_SATURATION 4
|
||||
#define XV_HUE 5
|
||||
#define XV_COLORKEY 6
|
||||
#define XV_INTERLACED 7
|
||||
|
||||
typedef struct
|
||||
{
|
||||
FBAreaPtr area;
|
||||
RegionRec clip;
|
||||
/* Attributes */
|
||||
CARD32 Attribute[N_ATTRS];
|
||||
CARD32 videoStatus;
|
||||
Time offTime;
|
||||
Time freeTime;
|
||||
I2CDevRec I2CDev;
|
||||
|
||||
/* Encodings */
|
||||
XF86VideoEncodingPtr enc;
|
||||
int *input;
|
||||
int *norm;
|
||||
int *channel;
|
||||
int nenc,cenc;
|
||||
} SMI_PortRec, *SMI_PortPtr;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
FBAreaPtr area;
|
||||
Bool isOn;
|
||||
|
||||
} SMI_OffscreenRec, *SMI_OffscreenPtr;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CARD8 address;
|
||||
CARD8 data;
|
||||
|
||||
} SMI_I2CDataRec, *SMI_I2CDataPtr;
|
||||
|
||||
#endif /* _SMI_VIDEO_H */
|
Loading…
Reference in New Issue
Block a user