Update to xf86-video-ast 1.0.1
This commit is contained in:
parent
97a89ff946
commit
1516562272
@ -1,3 +1,220 @@
|
|||||||
|
commit d531cac475980908ea52309846221a974b8e7efd
|
||||||
|
Author: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
Date: Fri Aug 8 16:51:07 2014 +0800
|
||||||
|
|
||||||
|
Bump Version to 1.0.1
|
||||||
|
|
||||||
|
commit 85be2b8ecd69ebf24334ddfb1822bbbf0b41376a
|
||||||
|
Author: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
Date: Fri Aug 8 16:36:04 2014 +0800
|
||||||
|
|
||||||
|
Update DP501FW Code
|
||||||
|
|
||||||
|
commit d0d76062f781896793bc51565e2dd5e4be047319
|
||||||
|
Author: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
Date: Fri Aug 8 16:04:22 2014 +0800
|
||||||
|
|
||||||
|
Fixed 1600x900 cannot display properly
|
||||||
|
|
||||||
|
commit 94640946015eb6611ff9bf8daf49e10479351fac
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 17:09:42 2014 +0200
|
||||||
|
|
||||||
|
Add _AST_H_ define to ast.h
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 364364910d1cc9be67120b8d28ab79abd82dbf04
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 17:08:56 2014 +0200
|
||||||
|
|
||||||
|
Move firmware for DP501 to a separate file
|
||||||
|
|
||||||
|
This makes ast_vgatools.c much more readable.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 5bdd2cac0b8db58ab442375f5c9e9b4349f39c02
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 15:35:43 2014 +0200
|
||||||
|
|
||||||
|
Fix ABI version conflict in xf86UnclaimPciSlot()
|
||||||
|
|
||||||
|
xf86UnclaimPciSlot() received a GDevPtr as 2nd argument with
|
||||||
|
ABI_VIDEODRV_VERSION 13.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 06245e228319c63a48ddd0313cf39d9c8e93cfc7
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 15:10:20 2014 +0200
|
||||||
|
|
||||||
|
Fix typo
|
||||||
|
|
||||||
|
Chontel -> Chrontel
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 72a9703ae45fda895b658a97d125d8f62ff664aa
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 14:31:39 2014 +0200
|
||||||
|
|
||||||
|
Include local headers only when needed
|
||||||
|
|
||||||
|
Move inclusion of local headers from ast.h to the individual
|
||||||
|
files. Include only those headers which are needed.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 8fb9e1008473bc91b036dba5e9fb85f12bad7753
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 14:09:10 2014 +0200
|
||||||
|
|
||||||
|
Clean up namespace in ast_tool.c
|
||||||
|
|
||||||
|
- Made sure exported functions have 'AST' in their name.
|
||||||
|
This avoids name space conflicts with the server or other drivers.
|
||||||
|
- Placed declaration of exported functions in a header file.
|
||||||
|
This ensures that changes to the function type or arguments are followed
|
||||||
|
thru everywhere.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 00fa895306c14bc320c9eb47368b20e6738ba430
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 14:05:17 2014 +0200
|
||||||
|
|
||||||
|
Clean up namespace in ast_accel.c
|
||||||
|
|
||||||
|
- Made sure exported functions have 'AST' in their name.
|
||||||
|
This avoids name space conflicts with the server or other drivers.
|
||||||
|
- Placed declaration of exported functions in a header file.
|
||||||
|
This ensures that changes to the function type or arguments are followed
|
||||||
|
thru everywhere.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit a70eac7e6e5b23fa5cc140c29880a4abdf54adeb
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 13:57:25 2014 +0200
|
||||||
|
|
||||||
|
Clean up namespace in ast_mode.c
|
||||||
|
|
||||||
|
- Make local functions static
|
||||||
|
This sometimes helps the compiler to optimize.
|
||||||
|
- Made sure exported functions have 'AST' in their name.
|
||||||
|
This avoids name space conflicts with the server or other drivers.
|
||||||
|
- Placed declaration of exported functions in a header file.
|
||||||
|
This ensures that changes to the function type or arguments are followed
|
||||||
|
thru everywhere.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 28f815fe8b56138f32a98e3712b61e930b5e892e
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 13:47:39 2014 +0200
|
||||||
|
|
||||||
|
Clean up namespace in ast_cursor.c
|
||||||
|
|
||||||
|
- Make sure exported functions have 'AST' in their name.
|
||||||
|
This avoids name space conflicts with the server or other drivers.
|
||||||
|
- Place declaration of exported functions in a header file.
|
||||||
|
This ensures that changes to the function type or arguments are followed
|
||||||
|
thru everywhere.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit f6a2ba02b2ac8c8a8b66902dd3ac5324971a43fe
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 12:21:57 2014 +0200
|
||||||
|
|
||||||
|
Clean up namespace in ast_2dtool.c
|
||||||
|
|
||||||
|
- Make local functions static
|
||||||
|
This sometimes helps the compiler to optimize.
|
||||||
|
- Make sure exported functions have 'AST' in their name.
|
||||||
|
This avoids name space conflicts with the server or other drivers.
|
||||||
|
- Place declaration of exported functions in a header file.
|
||||||
|
This ensures that changes to the function type or arguments are followed
|
||||||
|
thru everywhere.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit a833ba0b6cd6b6a449ddfed0b4753bc6f8dcb305
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Thu Apr 24 17:25:03 2014 +0200
|
||||||
|
|
||||||
|
Clean up namespace in ast_vgatools.c
|
||||||
|
|
||||||
|
- Make local functions static
|
||||||
|
This sometimes helps the compiler to optimize.
|
||||||
|
- Make sure exported functions have 'AST' in their name.
|
||||||
|
This avoids name space conflicts with the server or other drivers.
|
||||||
|
- Place declaration of exported functions in a header file.
|
||||||
|
This ensures that changes to the function type or arguments are followed
|
||||||
|
thru everywhere.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit e87938b319fd864f3f65527240d45a8ae234193f
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Thu Apr 24 17:27:30 2014 +0200
|
||||||
|
|
||||||
|
Remove unused functions from ast_vgatools.c
|
||||||
|
|
||||||
|
SetI2CReg(), GetI2CReg()
|
||||||
|
wait_fw_ready(), read_data() and clear_cmd() are used nowhere
|
||||||
|
currently.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 7c7fc069b7a50813c3ff88706e5616418f9ec76b
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 12:37:49 2014 +0200
|
||||||
|
|
||||||
|
Fix compiler warnings: add DrawablePtr argument to ASTPutImage
|
||||||
|
|
||||||
|
An archaeological survey revealed that this ABI change took place
|
||||||
|
in 2006 already.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit 0ddf408f17cee58d643f4fd2f683f6530f5027af
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 11:41:07 2014 +0200
|
||||||
|
|
||||||
|
Fix compiler warnings: get rid of deprecated IOADDRESS
|
||||||
|
|
||||||
|
For newer ABI versions IOADDRESS can be replaced by int
|
||||||
|
which is big enough to hold an PIO offset.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
|
commit e855e6806ea94a2296076924ee9460b5081bd6da
|
||||||
|
Author: Egbert Eich <eich@suse.de>
|
||||||
|
Date: Tue Apr 22 11:38:10 2014 +0200
|
||||||
|
|
||||||
|
Fix compiler warnings: get rid if xf86PciInfo.h
|
||||||
|
|
||||||
|
xf86PciInfo.h is not needed in the ASpeed driver at all.
|
||||||
|
|
||||||
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||||
|
Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
|
|
||||||
commit ed39dc7c3cff7aa248fc3c8d697400371313745c
|
commit ed39dc7c3cff7aa248fc3c8d697400371313745c
|
||||||
Author: Y.C. Chen <yc_chen@aspeedtech.com>
|
Author: Y.C. Chen <yc_chen@aspeedtech.com>
|
||||||
Date: Wed Mar 19 09:51:45 2014 +0800
|
Date: Wed Mar 19 09:51:45 2014 +0800
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
Installation Instructions
|
Installation Instructions
|
||||||
*************************
|
*************************
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
|
||||||
2006, 2007, 2008 Free Software Foundation, Inc.
|
Inc.
|
||||||
|
|
||||||
This file is free documentation; the Free Software Foundation gives
|
Copying and distribution of this file, with or without modification,
|
||||||
unlimited permission to copy, distribute and modify it.
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
notice and this notice are preserved. This file is offered as-is,
|
||||||
|
without warranty of any kind.
|
||||||
|
|
||||||
Basic Installation
|
Basic Installation
|
||||||
==================
|
==================
|
||||||
@ -13,7 +15,11 @@ Basic Installation
|
|||||||
Briefly, the shell commands `./configure; make; make install' should
|
Briefly, the shell commands `./configure; make; make install' should
|
||||||
configure, build, and install this package. The following
|
configure, build, and install this package. The following
|
||||||
more-detailed instructions are generic; see the `README' file for
|
more-detailed instructions are generic; see the `README' file for
|
||||||
instructions specific to this package.
|
instructions specific to this package. Some packages provide this
|
||||||
|
`INSTALL' file but do not implement all of the features documented
|
||||||
|
below. The lack of an optional feature in a given package is not
|
||||||
|
necessarily a bug. More recommendations for GNU packages can be found
|
||||||
|
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||||
|
|
||||||
The `configure' shell script attempts to guess correct values for
|
The `configure' shell script attempts to guess correct values for
|
||||||
various system-dependent variables used during compilation. It uses
|
various system-dependent variables used during compilation. It uses
|
||||||
@ -42,7 +48,7 @@ may remove or edit it.
|
|||||||
you want to change it or regenerate `configure' using a newer version
|
you want to change it or regenerate `configure' using a newer version
|
||||||
of `autoconf'.
|
of `autoconf'.
|
||||||
|
|
||||||
The simplest way to compile this package is:
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
1. `cd' to the directory containing the package's source code and type
|
1. `cd' to the directory containing the package's source code and type
|
||||||
`./configure' to configure the package for your system.
|
`./configure' to configure the package for your system.
|
||||||
@ -53,12 +59,22 @@ The simplest way to compile this package is:
|
|||||||
2. Type `make' to compile the package.
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
3. Optionally, type `make check' to run any self-tests that come with
|
3. Optionally, type `make check' to run any self-tests that come with
|
||||||
the package.
|
the package, generally using the just-built uninstalled binaries.
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
4. Type `make install' to install the programs and any data files and
|
||||||
documentation.
|
documentation. When installing into a prefix owned by root, it is
|
||||||
|
recommended that the package be configured and built as a regular
|
||||||
|
user, and only the `make install' phase executed with root
|
||||||
|
privileges.
|
||||||
|
|
||||||
5. You can remove the program binaries and object files from the
|
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||||
|
this time using the binaries in their final installed location.
|
||||||
|
This target does not install anything. Running this target as a
|
||||||
|
regular user, particularly if the prior `make install' required
|
||||||
|
root privileges, verifies that the installation completed
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
6. You can remove the program binaries and object files from the
|
||||||
source code directory by typing `make clean'. To also remove the
|
source code directory by typing `make clean'. To also remove the
|
||||||
files that `configure' created (so you can compile the package for
|
files that `configure' created (so you can compile the package for
|
||||||
a different kind of computer), type `make distclean'. There is
|
a different kind of computer), type `make distclean'. There is
|
||||||
@ -67,8 +83,15 @@ The simplest way to compile this package is:
|
|||||||
all sorts of other programs in order to regenerate files that came
|
all sorts of other programs in order to regenerate files that came
|
||||||
with the distribution.
|
with the distribution.
|
||||||
|
|
||||||
6. Often, you can also type `make uninstall' to remove the installed
|
7. Often, you can also type `make uninstall' to remove the installed
|
||||||
files again.
|
files again. In practice, not all packages have tested that
|
||||||
|
uninstallation works correctly, even though it is required by the
|
||||||
|
GNU Coding Standards.
|
||||||
|
|
||||||
|
8. Some packages, particularly those that use Automake, provide `make
|
||||||
|
distcheck', which can by used by developers to test that all other
|
||||||
|
targets like `make install' and `make uninstall' work correctly.
|
||||||
|
This target is generally not run by end users.
|
||||||
|
|
||||||
Compilers and Options
|
Compilers and Options
|
||||||
=====================
|
=====================
|
||||||
@ -93,7 +116,8 @@ same time, by placing the object files for each architecture in their
|
|||||||
own directory. To do this, you can use GNU `make'. `cd' to the
|
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||||
directory where you want the object files and executables to go and run
|
directory where you want the object files and executables to go and run
|
||||||
the `configure' script. `configure' automatically checks for the
|
the `configure' script. `configure' automatically checks for the
|
||||||
source code in the directory that `configure' is in and in `..'.
|
source code in the directory that `configure' is in and in `..'. This
|
||||||
|
is known as a "VPATH" build.
|
||||||
|
|
||||||
With a non-GNU `make', it is safer to compile the package for one
|
With a non-GNU `make', it is safer to compile the package for one
|
||||||
architecture at a time in the source code directory. After you have
|
architecture at a time in the source code directory. After you have
|
||||||
@ -120,7 +144,8 @@ Installation Names
|
|||||||
By default, `make install' installs the package's commands under
|
By default, `make install' installs the package's commands under
|
||||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||||
can specify an installation prefix other than `/usr/local' by giving
|
can specify an installation prefix other than `/usr/local' by giving
|
||||||
`configure' the option `--prefix=PREFIX'.
|
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||||
|
absolute file name.
|
||||||
|
|
||||||
You can specify separate installation prefixes for
|
You can specify separate installation prefixes for
|
||||||
architecture-specific files and architecture-independent files. If you
|
architecture-specific files and architecture-independent files. If you
|
||||||
@ -131,15 +156,46 @@ Documentation and other data files still use the regular prefix.
|
|||||||
In addition, if you use an unusual directory layout you can give
|
In addition, if you use an unusual directory layout you can give
|
||||||
options like `--bindir=DIR' to specify different values for particular
|
options like `--bindir=DIR' to specify different values for particular
|
||||||
kinds of files. Run `configure --help' for a list of the directories
|
kinds of files. Run `configure --help' for a list of the directories
|
||||||
you can set and what kinds of files go in them.
|
you can set and what kinds of files go in them. In general, the
|
||||||
|
default for these options is expressed in terms of `${prefix}', so that
|
||||||
|
specifying just `--prefix' will affect all of the other directory
|
||||||
|
specifications that were not explicitly provided.
|
||||||
|
|
||||||
|
The most portable way to affect installation locations is to pass the
|
||||||
|
correct locations to `configure'; however, many packages provide one or
|
||||||
|
both of the following shortcuts of passing variable assignments to the
|
||||||
|
`make install' command line to change installation locations without
|
||||||
|
having to reconfigure or recompile.
|
||||||
|
|
||||||
|
The first method involves providing an override variable for each
|
||||||
|
affected directory. For example, `make install
|
||||||
|
prefix=/alternate/directory' will choose an alternate location for all
|
||||||
|
directory configuration variables that were expressed in terms of
|
||||||
|
`${prefix}'. Any directories that were specified during `configure',
|
||||||
|
but not in terms of `${prefix}', must each be overridden at install
|
||||||
|
time for the entire installation to be relocated. The approach of
|
||||||
|
makefile variable overrides for each directory variable is required by
|
||||||
|
the GNU Coding Standards, and ideally causes no recompilation.
|
||||||
|
However, some platforms have known limitations with the semantics of
|
||||||
|
shared libraries that end up requiring recompilation when using this
|
||||||
|
method, particularly noticeable in packages that use GNU Libtool.
|
||||||
|
|
||||||
|
The second method involves providing the `DESTDIR' variable. For
|
||||||
|
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||||
|
`/alternate/directory' before all installation names. The approach of
|
||||||
|
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||||
|
does not work on platforms that have drive letters. On the other hand,
|
||||||
|
it does better at avoiding recompilation issues, and works well even
|
||||||
|
when some directory options were not specified in terms of `${prefix}'
|
||||||
|
at `configure' time.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
If the package supports it, you can cause programs to be installed
|
If the package supports it, you can cause programs to be installed
|
||||||
with an extra prefix or suffix on their names by giving `configure' the
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
Optional Features
|
|
||||||
=================
|
|
||||||
|
|
||||||
Some packages pay attention to `--enable-FEATURE' options to
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
`configure', where FEATURE indicates an optional part of the package.
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
@ -152,6 +208,13 @@ find the X include and library files automatically, but if it doesn't,
|
|||||||
you can use the `configure' options `--x-includes=DIR' and
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
`--x-libraries=DIR' to specify their locations.
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Some packages offer the ability to configure how verbose the
|
||||||
|
execution of `make' will be. For these packages, running `./configure
|
||||||
|
--enable-silent-rules' sets the default to minimal output, which can be
|
||||||
|
overridden with `make V=1'; while running `./configure
|
||||||
|
--disable-silent-rules' sets the default to verbose, which can be
|
||||||
|
overridden with `make V=0'.
|
||||||
|
|
||||||
Particular systems
|
Particular systems
|
||||||
==================
|
==================
|
||||||
|
|
||||||
@ -159,10 +222,15 @@ Particular systems
|
|||||||
CC is not installed, it is recommended to use the following options in
|
CC is not installed, it is recommended to use the following options in
|
||||||
order to use an ANSI C compiler:
|
order to use an ANSI C compiler:
|
||||||
|
|
||||||
./configure CC="cc -Ae"
|
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||||
|
|
||||||
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||||
|
|
||||||
|
HP-UX `make' updates targets which have the same time stamps as
|
||||||
|
their prerequisites, which makes it generally unusable when shipped
|
||||||
|
generated files such as `configure' are involved. Use GNU `make'
|
||||||
|
instead.
|
||||||
|
|
||||||
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||||
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||||
a workaround. If GNU CC is not installed, it is therefore recommended
|
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||||
@ -174,6 +242,16 @@ and if that doesn't work, try
|
|||||||
|
|
||||||
./configure CC="cc -nodtk"
|
./configure CC="cc -nodtk"
|
||||||
|
|
||||||
|
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||||
|
directory contains several dysfunctional programs; working variants of
|
||||||
|
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||||
|
in your `PATH', put it _after_ `/usr/bin'.
|
||||||
|
|
||||||
|
On Haiku, software installed for all users goes in `/boot/common',
|
||||||
|
not `/usr/local'. It is recommended to use the following options:
|
||||||
|
|
||||||
|
./configure --prefix=/boot/common
|
||||||
|
|
||||||
Specifying the System Type
|
Specifying the System Type
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
@ -189,7 +267,8 @@ type, such as `sun4', or a canonical name which has the form:
|
|||||||
|
|
||||||
where SYSTEM can have one of these forms:
|
where SYSTEM can have one of these forms:
|
||||||
|
|
||||||
OS KERNEL-OS
|
OS
|
||||||
|
KERNEL-OS
|
||||||
|
|
||||||
See the file `config.sub' for the possible values of each field. If
|
See the file `config.sub' for the possible values of each field. If
|
||||||
`config.sub' isn't included in this package, then this package doesn't
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
@ -277,7 +356,7 @@ operates.
|
|||||||
`configure' can determine that directory automatically.
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
`--prefix=DIR'
|
`--prefix=DIR'
|
||||||
Use DIR as the installation prefix. *Note Installation Names::
|
Use DIR as the installation prefix. *note Installation Names::
|
||||||
for more details, including other options available for fine-tuning
|
for more details, including other options available for fine-tuning
|
||||||
the installation locations.
|
the installation locations.
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ subdir = .
|
|||||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
$(top_srcdir)/configure COPYING ChangeLog INSTALL config.guess \
|
$(top_srcdir)/configure COPYING ChangeLog INSTALL config.guess \
|
||||||
config.sub install-sh ltmain.sh missing
|
config.sub depcomp install-sh ltmain.sh missing
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
61
driver/xf86-video-ast/aclocal.m4
vendored
61
driver/xf86-video-ast/aclocal.m4
vendored
@ -9866,7 +9866,7 @@ dnl DEALINGS IN THE SOFTWARE.
|
|||||||
# See the "minimum version" comment for each macro you use to see what
|
# See the "minimum version" comment for each macro you use to see what
|
||||||
# version you require.
|
# version you require.
|
||||||
m4_defun([XORG_MACROS_VERSION],[
|
m4_defun([XORG_MACROS_VERSION],[
|
||||||
m4_define([vers_have], [1.17.1])
|
m4_define([vers_have], [1.19.0])
|
||||||
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
|
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
|
||||||
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
|
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
|
||||||
m4_if(m4_cmp(maj_have, maj_needed), 0,,
|
m4_if(m4_cmp(maj_have, maj_needed), 0,,
|
||||||
@ -9916,6 +9916,7 @@ if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
|||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
else
|
else
|
||||||
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
||||||
|
TRADITIONALCPPFLAGS="-traditional"
|
||||||
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
|
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
@ -9924,6 +9925,7 @@ else
|
|||||||
fi
|
fi
|
||||||
rm -f conftest.$ac_ext
|
rm -f conftest.$ac_ext
|
||||||
AC_SUBST(RAWCPPFLAGS)
|
AC_SUBST(RAWCPPFLAGS)
|
||||||
|
AC_SUBST(TRADITIONALCPPFLAGS)
|
||||||
]) # XORG_PROG_RAWCPP
|
]) # XORG_PROG_RAWCPP
|
||||||
|
|
||||||
# XORG_MANPAGE_SECTIONS()
|
# XORG_MANPAGE_SECTIONS()
|
||||||
@ -10448,9 +10450,10 @@ AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
|
|||||||
]) # XORG_WITH_ASCIIDOC
|
]) # XORG_WITH_ASCIIDOC
|
||||||
|
|
||||||
# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT])
|
# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT])
|
||||||
# --------------------------------
|
# -------------------------------------------
|
||||||
# Minimum version: 1.5.0
|
# Minimum version: 1.5.0
|
||||||
# Minimum version for optional DEFAULT argument: 1.11.0
|
# Minimum version for optional DEFAULT argument: 1.11.0
|
||||||
|
# Minimum version for optional DOT checking: 1.18.0
|
||||||
#
|
#
|
||||||
# Documentation tools are not always available on all platforms and sometimes
|
# Documentation tools are not always available on all platforms and sometimes
|
||||||
# not at the appropriate level. This macro enables a module to test for the
|
# not at the appropriate level. This macro enables a module to test for the
|
||||||
@ -10470,6 +10473,7 @@ AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
|
|||||||
#
|
#
|
||||||
AC_DEFUN([XORG_WITH_DOXYGEN],[
|
AC_DEFUN([XORG_WITH_DOXYGEN],[
|
||||||
AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
|
AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
|
||||||
|
AC_ARG_VAR([DOT], [Path to the dot graphics utility])
|
||||||
m4_define([_defopt], m4_default([$2], [auto]))
|
m4_define([_defopt], m4_default([$2], [auto]))
|
||||||
AC_ARG_WITH(doxygen,
|
AC_ARG_WITH(doxygen,
|
||||||
AS_HELP_STRING([--with-doxygen],
|
AS_HELP_STRING([--with-doxygen],
|
||||||
@ -10513,6 +10517,20 @@ m4_ifval([$1],
|
|||||||
AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
|
AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
|
||||||
fi])
|
fi])
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
|
dnl Check for DOT if we have doxygen. The caller decides if it is mandatory
|
||||||
|
dnl HAVE_DOT is a variable that can be used in your doxygen.in config file:
|
||||||
|
dnl HAVE_DOT = @HAVE_DOT@
|
||||||
|
HAVE_DOT=no
|
||||||
|
if test "x$have_doxygen" = "xyes"; then
|
||||||
|
AC_PATH_PROG([DOT], [dot])
|
||||||
|
if test "x$DOT" != "x"; then
|
||||||
|
HAVE_DOT=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST([HAVE_DOT])
|
||||||
|
AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"])
|
||||||
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
|
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
|
||||||
]) # XORG_WITH_DOXYGEN
|
]) # XORG_WITH_DOXYGEN
|
||||||
|
|
||||||
@ -10695,6 +10713,29 @@ fi])
|
|||||||
AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
|
AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
|
||||||
]) # XORG_WITH_FOP
|
]) # XORG_WITH_FOP
|
||||||
|
|
||||||
|
# XORG_WITH_M4([MIN-VERSION])
|
||||||
|
# ---------------------------
|
||||||
|
# Minimum version: 1.19.0
|
||||||
|
#
|
||||||
|
# This macro attempts to locate an m4 macro processor which supports
|
||||||
|
# -I option and is only useful for modules relying on M4 in order to
|
||||||
|
# expand macros in source code files.
|
||||||
|
#
|
||||||
|
# Interface to module:
|
||||||
|
# M4: returns the path of the m4 program found
|
||||||
|
# returns the path set by the user in the environment
|
||||||
|
#
|
||||||
|
AC_DEFUN([XORG_WITH_M4], [
|
||||||
|
AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4],
|
||||||
|
[AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4],
|
||||||
|
[[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \
|
||||||
|
ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]],
|
||||||
|
[AC_MSG_ERROR([could not find m4 that supports -I option])],
|
||||||
|
[$PATH:/usr/gnu/bin])])
|
||||||
|
|
||||||
|
AC_SUBST([M4], [$ac_cv_path_M4])
|
||||||
|
]) # XORG_WITH_M4
|
||||||
|
|
||||||
# XORG_WITH_PS2PDF([DEFAULT])
|
# XORG_WITH_PS2PDF([DEFAULT])
|
||||||
# ----------------
|
# ----------------
|
||||||
# Minimum version: 1.6.0
|
# Minimum version: 1.6.0
|
||||||
@ -11149,7 +11190,8 @@ AC_ARG_ENABLE(malloc0returnsnull,
|
|||||||
|
|
||||||
AC_MSG_CHECKING([whether malloc(0) returns NULL])
|
AC_MSG_CHECKING([whether malloc(0) returns NULL])
|
||||||
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
||||||
AC_RUN_IFELSE([AC_LANG_PROGRAM([
|
AC_CACHE_VAL([xorg_cv_malloc0_returns_null],
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_PROGRAM([
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
],[
|
],[
|
||||||
char *m0, *r0, *c0, *p;
|
char *m0, *r0, *c0, *p;
|
||||||
@ -11159,9 +11201,9 @@ if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
|||||||
c0 = calloc(0,10);
|
c0 = calloc(0,10);
|
||||||
exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
|
exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
|
||||||
])],
|
])],
|
||||||
[MALLOC_ZERO_RETURNS_NULL=yes],
|
[xorg_cv_malloc0_returns_null=yes],
|
||||||
[MALLOC_ZERO_RETURNS_NULL=no],
|
[xorg_cv_malloc0_returns_null=no])])
|
||||||
[MALLOC_ZERO_RETURNS_NULL=yes])
|
MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
|
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
|
||||||
|
|
||||||
@ -11450,7 +11492,7 @@ AC_LANG_CASE(
|
|||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement])
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@ -11459,16 +11501,17 @@ AC_LANG_CASE(
|
|||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
|
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
|
||||||
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
|
||||||
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
|
||||||
|
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
|
||||||
|
|
||||||
# These are currently disabled because they are noisy. They will be enabled
|
# These are currently disabled because they are noisy. They will be enabled
|
||||||
# in the future once the codebase is sufficiently modernized to silence
|
# in the future once the codebase is sufficiently modernized to silence
|
||||||
# them. For now, I don't want them to drown out the other warnings.
|
# them. For now, I don't want them to drown out the other warnings.
|
||||||
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
|
|
||||||
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
|
||||||
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
|
||||||
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
|
||||||
|
|
||||||
# Turn some warnings into errors, so we don't accidently get successful builds
|
# Turn some warnings into errors, so we don't accidently get successful builds
|
||||||
# when there are problems that should be fixed.
|
# when there are problems that should be fixed.
|
||||||
|
308
driver/xf86-video-ast/configure
vendored
308
driver/xf86-video-ast/configure
vendored
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.69 for xf86-video-ast 0.99.9.
|
# Generated by GNU Autoconf 2.69 for xf86-video-ast 1.0.1.
|
||||||
#
|
#
|
||||||
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
|
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
|
||||||
#
|
#
|
||||||
@ -591,8 +591,8 @@ MAKEFLAGS=
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='xf86-video-ast'
|
PACKAGE_NAME='xf86-video-ast'
|
||||||
PACKAGE_TARNAME='xf86-video-ast'
|
PACKAGE_TARNAME='xf86-video-ast'
|
||||||
PACKAGE_VERSION='0.99.9'
|
PACKAGE_VERSION='1.0.1'
|
||||||
PACKAGE_STRING='xf86-video-ast 0.99.9'
|
PACKAGE_STRING='xf86-video-ast 1.0.1'
|
||||||
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
|
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
|
||||||
PACKAGE_URL=''
|
PACKAGE_URL=''
|
||||||
|
|
||||||
@ -1358,7 +1358,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures xf86-video-ast 0.99.9 to adapt to many kinds of systems.
|
\`configure' configures xf86-video-ast 1.0.1 to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@ -1428,7 +1428,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of xf86-video-ast 0.99.9:";;
|
short | recursive ) echo "Configuration of xf86-video-ast 1.0.1:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@ -1558,7 +1558,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit $ac_status
|
test -n "$ac_init_help" && exit $ac_status
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
xf86-video-ast configure 0.99.9
|
xf86-video-ast configure 1.0.1
|
||||||
generated by GNU Autoconf 2.69
|
generated by GNU Autoconf 2.69
|
||||||
|
|
||||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
@ -1973,7 +1973,7 @@ cat >config.log <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
It was created by xf86-video-ast $as_me 0.99.9, which was
|
It was created by xf86-video-ast $as_me 1.0.1, which was
|
||||||
generated by GNU Autoconf 2.69. Invocation command line was
|
generated by GNU Autoconf 2.69. Invocation command line was
|
||||||
|
|
||||||
$ $0 $@
|
$ $0 $@
|
||||||
@ -2802,7 +2802,7 @@ fi
|
|||||||
|
|
||||||
# Define the identity of the package.
|
# Define the identity of the package.
|
||||||
PACKAGE='xf86-video-ast'
|
PACKAGE='xf86-video-ast'
|
||||||
VERSION='0.99.9'
|
VERSION='1.0.1'
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
@ -5861,6 +5861,55 @@ $as_echo "$supported" >&6; }
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test $found = "no" ; then
|
||||||
|
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
|
||||||
|
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
|
||||||
|
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -fd"
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
|
||||||
|
$as_echo_n "checking if $CC supports -fd... " >&6; }
|
||||||
|
cacheid=xorg_cv_cc_flag__fd
|
||||||
|
if eval \${$cacheid+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
int i;
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
eval $cacheid=yes
|
||||||
|
else
|
||||||
|
eval $cacheid=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
CFLAGS="$xorg_testset_save_CFLAGS"
|
||||||
|
|
||||||
|
eval supported=\$$cacheid
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
|
||||||
|
$as_echo "$supported" >&6; }
|
||||||
|
if test "$supported" = "yes" ; then
|
||||||
|
BASE_CFLAGS="$BASE_CFLAGS -fd"
|
||||||
|
found="yes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -6351,124 +6400,6 @@ $as_echo "$supported" >&6; }
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
xorg_testset_save_CFLAGS="$CFLAGS"
|
|
||||||
|
|
||||||
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
|
|
||||||
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
|
|
||||||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
|
|
||||||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
int i;
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
xorg_cv_cc_flag_unknown_warning_option=yes
|
|
||||||
else
|
|
||||||
xorg_cv_cc_flag_unknown_warning_option=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
|
|
||||||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
|
|
||||||
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
|
|
||||||
CFLAGS="$xorg_testset_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
|
|
||||||
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
|
|
||||||
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
|
||||||
fi
|
|
||||||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
|
|
||||||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
|
|
||||||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
int i;
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
xorg_cv_cc_flag_unused_command_line_argument=yes
|
|
||||||
else
|
|
||||||
xorg_cv_cc_flag_unused_command_line_argument=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
|
|
||||||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
|
|
||||||
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
|
|
||||||
CFLAGS="$xorg_testset_save_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
found="no"
|
|
||||||
|
|
||||||
if test $found = "no" ; then
|
|
||||||
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
|
|
||||||
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
|
|
||||||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -Wcast-qual"
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
|
|
||||||
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
|
|
||||||
cacheid=xorg_cv_cc_flag__Wcast_qual
|
|
||||||
if eval \${$cacheid+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
int i;
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
eval $cacheid=yes
|
|
||||||
else
|
|
||||||
eval $cacheid=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
CFLAGS="$xorg_testset_save_CFLAGS"
|
|
||||||
|
|
||||||
eval supported=\$$cacheid
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
|
|
||||||
$as_echo "$supported" >&6; }
|
|
||||||
if test "$supported" = "yes" ; then
|
|
||||||
BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
|
|
||||||
found="yes"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
xorg_testset_save_CFLAGS="$CFLAGS"
|
xorg_testset_save_CFLAGS="$CFLAGS"
|
||||||
|
|
||||||
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
|
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
|
||||||
@ -6692,13 +6623,132 @@ $as_echo "$supported" >&6; }
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
xorg_testset_save_CFLAGS="$CFLAGS"
|
||||||
|
|
||||||
|
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
|
||||||
|
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
|
||||||
|
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
|
||||||
|
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
int i;
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
xorg_cv_cc_flag_unknown_warning_option=yes
|
||||||
|
else
|
||||||
|
xorg_cv_cc_flag_unknown_warning_option=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
|
||||||
|
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
|
||||||
|
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
|
||||||
|
CFLAGS="$xorg_testset_save_CFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
|
||||||
|
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
|
||||||
|
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
||||||
|
fi
|
||||||
|
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
|
||||||
|
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
|
||||||
|
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
int i;
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
xorg_cv_cc_flag_unused_command_line_argument=yes
|
||||||
|
else
|
||||||
|
xorg_cv_cc_flag_unused_command_line_argument=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
|
||||||
|
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
|
||||||
|
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
|
||||||
|
CFLAGS="$xorg_testset_save_CFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
found="no"
|
||||||
|
|
||||||
|
if test $found = "no" ; then
|
||||||
|
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
|
||||||
|
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
|
||||||
|
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -Wlogical-op"
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
|
||||||
|
$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
|
||||||
|
cacheid=xorg_cv_cc_flag__Wlogical_op
|
||||||
|
if eval \${$cacheid+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
int i;
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
eval $cacheid=yes
|
||||||
|
else
|
||||||
|
eval $cacheid=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
CFLAGS="$xorg_testset_save_CFLAGS"
|
||||||
|
|
||||||
|
eval supported=\$$cacheid
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
|
||||||
|
$as_echo "$supported" >&6; }
|
||||||
|
if test "$supported" = "yes" ; then
|
||||||
|
BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
|
||||||
|
found="yes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# These are currently disabled because they are noisy. They will be enabled
|
# These are currently disabled because they are noisy. They will be enabled
|
||||||
# in the future once the codebase is sufficiently modernized to silence
|
# in the future once the codebase is sufficiently modernized to silence
|
||||||
# them. For now, I don't want them to drown out the other warnings.
|
# them. For now, I don't want them to drown out the other warnings.
|
||||||
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
|
|
||||||
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
|
||||||
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
|
||||||
|
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
|
||||||
|
|
||||||
# Turn some warnings into errors, so we don't accidently get successful builds
|
# Turn some warnings into errors, so we don't accidently get successful builds
|
||||||
# when there are problems that should be fixed.
|
# when there are problems that should be fixed.
|
||||||
@ -18609,7 +18659,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
This file was extended by xf86-video-ast $as_me 0.99.9, which was
|
This file was extended by xf86-video-ast $as_me 1.0.1, which was
|
||||||
generated by GNU Autoconf 2.69. Invocation command line was
|
generated by GNU Autoconf 2.69. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@ -18675,7 +18725,7 @@ _ACEOF
|
|||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
xf86-video-ast config.status 0.99.9
|
xf86-video-ast config.status 1.0.1
|
||||||
configured by $0, generated by GNU Autoconf 2.69,
|
configured by $0, generated by GNU Autoconf 2.69,
|
||||||
with options \\"\$ac_cs_config\\"
|
with options \\"\$ac_cs_config\\"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
# Initialize Autoconf
|
# Initialize Autoconf
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
AC_INIT([xf86-video-ast],
|
AC_INIT([xf86-video-ast],
|
||||||
[0.99.9],
|
[1.0.1],
|
||||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||||
[xf86-video-ast])
|
[xf86-video-ast])
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
|
@ -43,4 +43,5 @@ ast_drv_la_SOURCES = \
|
|||||||
ast_tool.c \
|
ast_tool.c \
|
||||||
ast_vgatool.c \
|
ast_vgatool.c \
|
||||||
ast_vgatool.h \
|
ast_vgatool.h \
|
||||||
|
ast_dp501fw.h \
|
||||||
compat-api.h
|
compat-api.h
|
||||||
|
@ -332,6 +332,7 @@ ast_drv_la_SOURCES = \
|
|||||||
ast_tool.c \
|
ast_tool.c \
|
||||||
ast_vgatool.c \
|
ast_vgatool.c \
|
||||||
ast_vgatool.h \
|
ast_vgatool.h \
|
||||||
|
ast_dp501fw.h \
|
||||||
compat-api.h
|
compat-api.h
|
||||||
|
|
||||||
all: all-am
|
all: all-am
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _AST_H_
|
||||||
|
# define _AST_H_
|
||||||
|
|
||||||
/* Compiler Options */
|
/* Compiler Options */
|
||||||
#define Accel_2D
|
#define Accel_2D
|
||||||
/* #define MMIO_2D */
|
/* #define MMIO_2D */
|
||||||
@ -261,9 +265,11 @@ typedef struct _ASTRec {
|
|||||||
unsigned long FbMapSize;
|
unsigned long FbMapSize;
|
||||||
unsigned long MMIOMapSize;
|
unsigned long MMIOMapSize;
|
||||||
|
|
||||||
IOADDRESS IODBase; /* Base of PIO memory area */
|
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
|
||||||
IOADDRESS PIOOffset;
|
|
||||||
IOADDRESS RelocateIO;
|
IOADDRESS RelocateIO;
|
||||||
|
#else
|
||||||
|
int RelocateIO;
|
||||||
|
#endif
|
||||||
|
|
||||||
VIDEOMODE VideoModeInfo;
|
VIDEOMODE VideoModeInfo;
|
||||||
ASTRegRec SavedReg;
|
ASTRegRec SavedReg;
|
||||||
@ -303,8 +309,56 @@ typedef struct _ASTRec {
|
|||||||
|
|
||||||
#define ASTPTR(p) ((ASTRecPtr)((p)->driverPrivate))
|
#define ASTPTR(p) ((ASTRecPtr)((p)->driverPrivate))
|
||||||
|
|
||||||
/* Include Files */
|
/* ast_vgatool.c */
|
||||||
#include "ast_mode.h"
|
extern Bool bASTIsVGAEnabled(ScrnInfoPtr pScrn);
|
||||||
#include "ast_vgatool.h"
|
extern Bool ASTGetVGA2EDID(ScrnInfoPtr pScrn, unsigned char *pEDIDBuffer);
|
||||||
#include "ast_2dtool.h"
|
extern void ASTDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags);
|
||||||
#include "ast_cursor.h"
|
extern void vASTLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, LOCO *colors, VisualPtr pVisual);
|
||||||
|
extern void ASTBlankScreen(ScrnInfoPtr pScreen, Bool unblack);
|
||||||
|
extern void vAST1000DisplayOn(ScrnInfoPtr pScrn);
|
||||||
|
extern void vAST1000DisplayOff(ScrnInfoPtr pScrn);
|
||||||
|
extern void vASTSetStartAddressCRT1(ASTRecPtr pAST, ULONG base);
|
||||||
|
extern void ASTGetScratchOptions(ScrnInfoPtr pScrn);
|
||||||
|
void ASTGetChipType(ScrnInfoPtr pScrn);
|
||||||
|
ULONG ASTGetMaxDCLK(ScrnInfoPtr pScrn);
|
||||||
|
ULONG ASTGetVRAMInfo(ScrnInfoPtr pScrn);
|
||||||
|
void ASTGetDRAMInfo(ScrnInfoPtr pScrn);
|
||||||
|
Bool bASTRegInit(ScrnInfoPtr pScrn);
|
||||||
|
void vASTOpenKey(ScrnInfoPtr pScrn);
|
||||||
|
Bool ASTReadEDID_M68K(ScrnInfoPtr pScrn, BYTE *pEDIDData);
|
||||||
|
UCHAR ASTGetLinkMaxCLK(ScrnInfoPtr pScrn);
|
||||||
|
Bool ASTGetVGAEDID(ScrnInfoPtr pScrn, unsigned char *pEDIDBuffer);
|
||||||
|
Bool bASTInitAST1180(ScrnInfoPtr pScrn);
|
||||||
|
void ASTGetAST1180DRAMInfo(ScrnInfoPtr pScrn);
|
||||||
|
void vASTEnableVGAMMIO(ScrnInfoPtr pScrn);
|
||||||
|
Bool ASTInitVGA(ScrnInfoPtr pScrn, ULONG Flags);
|
||||||
|
|
||||||
|
/* ast_2dtool.c */
|
||||||
|
void vASTWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
||||||
|
UCHAR *pASTjRequestCMDQ(ASTRecPtr pAST, ULONG ulDataLen);
|
||||||
|
Bool bASTEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
||||||
|
void vASTDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
||||||
|
|
||||||
|
/* ast_cursor.c */
|
||||||
|
#ifdef HWC
|
||||||
|
Bool ASTCursorInit(ScreenPtr pScreen);
|
||||||
|
Bool bASTInitHWC(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
||||||
|
void ASTDisableHWC(ScrnInfoPtr pScrn);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ast_mode.c */
|
||||||
|
Bool ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
||||||
|
|
||||||
|
/* ast_accel.c */
|
||||||
|
#ifdef HAVE_XAA_H
|
||||||
|
Bool ASTAccelInit(ScreenPtr pScreen);
|
||||||
|
#endif
|
||||||
|
void ASTDisplayVideo(ScrnInfoPtr pScrn, ASTPortPrivPtr pPriv, RegionPtr clipBoxes, int id);
|
||||||
|
|
||||||
|
/* ast_tool.c */
|
||||||
|
Bool ASTMapMem(ScrnInfoPtr pScrn);
|
||||||
|
Bool ASTUnmapMem(ScrnInfoPtr pScrn);
|
||||||
|
Bool ASTMapMMIO(ScrnInfoPtr pScrn);
|
||||||
|
void ASTUnmapMMIO(ScrnInfoPtr pScrn);
|
||||||
|
|
||||||
|
#endif /* _AST_H_ */
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "xf86xv.h"
|
#include "xf86xv.h"
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
|
||||||
#include "xf86PciInfo.h"
|
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
|
||||||
/* framebuffer offscreen manager */
|
/* framebuffer offscreen manager */
|
||||||
@ -49,21 +48,15 @@
|
|||||||
|
|
||||||
/* Driver specific headers */
|
/* Driver specific headers */
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
#include "ast_vgatool.h"
|
||||||
|
#include "ast_2dtool.h"
|
||||||
|
|
||||||
#ifdef Accel_2D
|
#ifdef Accel_2D
|
||||||
typedef Bool (*PFN_bENABLE_CMDQ)(ScrnInfoPtr , ASTRecPtr);
|
typedef Bool (*PFN_bENABLE_CMDQ)(ScrnInfoPtr , ASTRecPtr);
|
||||||
|
|
||||||
/* Prototype type declaration */
|
/* Prototype type declaration */
|
||||||
Bool bInitCMDQInfo(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
Bool bEnableCMDQ(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
Bool bEnableCMDQ2300(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
Bool bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
void vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
void vWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
UCHAR *pjRequestCMDQ(ASTRecPtr pAST, ULONG ulDataLen);
|
|
||||||
Bool bGetLineTerm(_LINEInfo *LineInfo, LINEPARAM *dsLineParam);
|
|
||||||
|
|
||||||
Bool
|
static Bool
|
||||||
bInitCMDQInfo(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
bInitCMDQInfo(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -111,12 +104,12 @@ bInitCMDQInfo(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
return (TRUE);
|
return (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
static Bool
|
||||||
bEnableCMDQ(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
bEnableCMDQ(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
ULONG ulVMCmdQBasePort = 0;
|
ULONG ulVMCmdQBasePort = 0;
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
/* set DBG Select Info */
|
/* set DBG Select Info */
|
||||||
if (pAST->DBGSelect)
|
if (pAST->DBGSelect)
|
||||||
@ -177,12 +170,12 @@ bEnableCMDQ(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
return (TRUE);
|
return (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
static Bool
|
||||||
bEnableCMDQ2300(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
bEnableCMDQ2300(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
ULONG ulVMCmdQBasePort = 0, ulNewModeData;
|
ULONG ulVMCmdQBasePort = 0, ulNewModeData;
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
/* set DBG Select Info */
|
/* set DBG Select Info */
|
||||||
if (pAST->DBGSelect)
|
if (pAST->DBGSelect)
|
||||||
@ -243,7 +236,7 @@ bEnableCMDQ2300(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
} /* bEnableCMDQ2300 */
|
} /* bEnableCMDQ2300 */
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
bASTEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
ULONG ulData;
|
ULONG ulData;
|
||||||
PFN_bENABLE_CMDQ pfnEnableCMDQ = bEnableCMDQ;
|
PFN_bENABLE_CMDQ pfnEnableCMDQ = bEnableCMDQ;
|
||||||
@ -273,13 +266,13 @@ bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
|
|
||||||
if (!bInitCMDQInfo(pScrn, pAST))
|
if (!bInitCMDQInfo(pScrn, pAST))
|
||||||
{
|
{
|
||||||
vDisable2D(pScrn, pAST);
|
vASTDisable2D(pScrn, pAST);
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pfnEnableCMDQ(pScrn, pAST))
|
if (!pfnEnableCMDQ(pScrn, pAST))
|
||||||
{
|
{
|
||||||
vDisable2D(pScrn, pAST);
|
vASTDisable2D(pScrn, pAST);
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,11 +280,11 @@ bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
vASTDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
/* restore 2D settings */
|
/* restore 2D settings */
|
||||||
if (pAST->jChipType != AST1180)
|
if (pAST->jChipType != AST1180)
|
||||||
@ -310,7 +303,7 @@ vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
vWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
vASTWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
ULONG ulEngState, ulEngState2;
|
ULONG ulEngState, ulEngState2;
|
||||||
UCHAR jReg;
|
UCHAR jReg;
|
||||||
@ -321,11 +314,11 @@ vWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
|
|
||||||
/* 2D disable if 0xA4 D[0] = 1 */
|
/* 2D disable if 0xA4 D[0] = 1 */
|
||||||
GetIndexRegMask(CRTC_PORT, 0xA4, 0x01, jReg);
|
GetIndexRegMask(CRTC_PORT, 0xA4, 0x01, jReg);
|
||||||
if (!jReg) goto Exit_vWaitEngIdle;
|
if (!jReg) goto Exit_vASTWaitEngIdle;
|
||||||
|
|
||||||
/* 2D not work if in std. mode */
|
/* 2D not work if in std. mode */
|
||||||
GetIndexRegMask(CRTC_PORT, 0xA3, 0x0F, jReg);
|
GetIndexRegMask(CRTC_PORT, 0xA3, 0x0F, jReg);
|
||||||
if (!jReg) goto Exit_vWaitEngIdle;
|
if (!jReg) goto Exit_vASTWaitEngIdle;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*(ULONG *) (pAST->CMDQInfo.pjCmdQBasePort) & 0x02000000) /* MMIO Mode */
|
if (*(ULONG *) (pAST->CMDQInfo.pjCmdQBasePort) & 0x02000000) /* MMIO Mode */
|
||||||
@ -342,7 +335,7 @@ vWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
|||||||
|
|
||||||
} while ((ulEngState & ulEngCheckSetting) || (ulEngState != ulEngState2));
|
} while ((ulEngState & ulEngCheckSetting) || (ulEngState != ulEngState2));
|
||||||
|
|
||||||
Exit_vWaitEngIdle:
|
Exit_vASTWaitEngIdle:
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -363,7 +356,7 @@ static __inline ULONG ulGetCMDQLength(ASTRecPtr pAST, ULONG ulWritePointer, ULON
|
|||||||
return ((ulReadPointer << 3) - ulWritePointer - CMD_QUEUE_GUARD_BAND) & ulCMDQMask;
|
return ((ulReadPointer << 3) - ulWritePointer - CMD_QUEUE_GUARD_BAND) & ulCMDQMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
UCHAR *pjRequestCMDQ(
|
UCHAR *pASTjRequestCMDQ(
|
||||||
ASTRecPtr pAST, ULONG ulDataLen)
|
ASTRecPtr pAST, ULONG ulDataLen)
|
||||||
{
|
{
|
||||||
UCHAR *pjBuffer;
|
UCHAR *pjBuffer;
|
||||||
@ -453,7 +446,7 @@ ASTRecPtr pAST, ULONG ulDataLen)
|
|||||||
|
|
||||||
} /* end of pjRequestCmdQ() */
|
} /* end of pjRequestCmdQ() */
|
||||||
|
|
||||||
Bool bGetLineTerm(_LINEInfo *LineInfo, LINEPARAM *dsLineParam)
|
Bool bASTGetLineTerm(_LINEInfo *LineInfo, LINEPARAM *dsLineParam)
|
||||||
{
|
{
|
||||||
LONG GAbsX, GAbsY, GXInc, GYInc, GXMajor;
|
LONG GAbsX, GAbsY, GXInc, GYInc, GXMajor;
|
||||||
LONG MM, mm, Error0, K1, K2;
|
LONG MM, mm, Error0, K1, K2;
|
||||||
|
@ -621,3 +621,5 @@ typedef struct {
|
|||||||
addr->PKT_SC_dwHeader = (ULONG)(PKT_SINGLE_CMD_HEADER + CMDQREG_LINE_NUMBER); \
|
addr->PKT_SC_dwHeader = (ULONG)(PKT_SINGLE_CMD_HEADER + CMDQREG_LINE_NUMBER); \
|
||||||
addr->PKT_SC_dwData[0] = (ULONG)(no); \
|
addr->PKT_SC_dwData[0] = (ULONG)(no); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Bool bASTGetLineTerm(_LINEInfo *LineInfo, LINEPARAM *dsLineParam);
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "xf86xv.h"
|
#include "xf86xv.h"
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
|
||||||
#include "xf86PciInfo.h"
|
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
|
||||||
/* framebuffer offscreen manager */
|
/* framebuffer offscreen manager */
|
||||||
@ -53,6 +52,7 @@
|
|||||||
|
|
||||||
/* Driver specific headers */
|
/* Driver specific headers */
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
#include "ast_2dtool.h"
|
||||||
|
|
||||||
#ifdef Accel_2D
|
#ifdef Accel_2D
|
||||||
|
|
||||||
@ -98,13 +98,7 @@ int ASTXAAPatternROP[16]=
|
|||||||
ROP_1
|
ROP_1
|
||||||
};
|
};
|
||||||
|
|
||||||
/* extern function */
|
|
||||||
extern void vWaitEngIdle(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
extern UCHAR *pjRequestCMDQ(ASTRecPtr pAST, ULONG ulDataLen);
|
|
||||||
extern Bool bGetLineTerm(_LINEInfo *LineInfo, LINEPARAM *dsLineParam);
|
|
||||||
|
|
||||||
/* Prototype type declaration */
|
/* Prototype type declaration */
|
||||||
Bool ASTAccelInit(ScreenPtr pScreen);
|
|
||||||
static void ASTSync(ScrnInfoPtr pScrn);
|
static void ASTSync(ScrnInfoPtr pScrn);
|
||||||
static void ASTSetupForScreenToScreenCopy(ScrnInfoPtr pScrn,
|
static void ASTSetupForScreenToScreenCopy(ScrnInfoPtr pScrn,
|
||||||
int xdir, int ydir, int rop,
|
int xdir, int ydir, int rop,
|
||||||
@ -294,7 +288,7 @@ ASTSync(ScrnInfoPtr pScrn)
|
|||||||
ASTRecPtr pAST = ASTPTR(pScrn);
|
ASTRecPtr pAST = ASTPTR(pScrn);
|
||||||
|
|
||||||
/* wait engle idle */
|
/* wait engle idle */
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
} /* end of ASTSync */
|
} /* end of ASTSync */
|
||||||
|
|
||||||
@ -333,7 +327,7 @@ static void ASTSetupForScreenToScreenCopy(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*2);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*2);
|
||||||
|
|
||||||
ASTSetupSRCPitch(pSingleCMD, pAST->VideoModeInfo.ScreenPitch);
|
ASTSetupSRCPitch(pSingleCMD, pAST->VideoModeInfo.ScreenPitch);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -422,7 +416,7 @@ ASTSubsequentScreenToScreenCopy(ScrnInfoPtr pScrn, int x1, int y1, int x2,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*6);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*6);
|
||||||
|
|
||||||
ASTSetupSRCBase(pSingleCMD, srcbase);
|
ASTSetupSRCBase(pSingleCMD, srcbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -449,7 +443,7 @@ ASTSubsequentScreenToScreenCopy(ScrnInfoPtr pScrn, int x1, int y1, int x2,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* width & height check */
|
} /* width & height check */
|
||||||
@ -490,7 +484,7 @@ ASTSetupForSolidFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*2);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*2);
|
||||||
|
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -545,7 +539,7 @@ ASTSubsequentSolidFillRect(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -566,7 +560,7 @@ ASTSubsequentSolidFillRect(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -608,7 +602,7 @@ static void ASTSetupForSolidLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*3);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*3);
|
||||||
|
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -675,7 +669,7 @@ static void ASTSubsequentSolidHorVertLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -696,7 +690,7 @@ static void ASTSubsequentSolidHorVertLine(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -746,7 +740,7 @@ static void ASTSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
LineInfo.X2 = x2;
|
LineInfo.X2 = x2;
|
||||||
LineInfo.Y2 = y2;
|
LineInfo.Y2 = y2;
|
||||||
|
|
||||||
bGetLineTerm(&LineInfo, &dsLineParam); /* Get Line Parameter */
|
bASTGetLineTerm(&LineInfo, &dsLineParam); /* Get Line Parameter */
|
||||||
|
|
||||||
if (dsLineParam.dwLineAttributes & LINEPARAM_X_DEC)
|
if (dsLineParam.dwLineAttributes & LINEPARAM_X_DEC)
|
||||||
ulCommand |= CMD_X_DEC;
|
ulCommand |= CMD_X_DEC;
|
||||||
@ -761,7 +755,7 @@ static void ASTSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*7);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*7);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -781,7 +775,7 @@ static void ASTSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
mUpdateWritePointer;
|
mUpdateWritePointer;
|
||||||
|
|
||||||
/* Patch KDE pass abnormal point, ycchen@052507 */
|
/* Patch KDE pass abnormal point, ycchen@052507 */
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -794,7 +788,7 @@ static void ASTSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupLineK2Term_MMIO(dsLineParam.dwK2Term);
|
ASTSetupLineK2Term_MMIO(dsLineParam.dwK2Term);
|
||||||
ASTSetupCMDReg_MMIO(ulCommand);
|
ASTSetupCMDReg_MMIO(ulCommand);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -842,7 +836,7 @@ ASTSetupForDashedLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
||||||
|
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -915,7 +909,7 @@ ASTSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
LineInfo.X2 = x2;
|
LineInfo.X2 = x2;
|
||||||
LineInfo.Y2 = y2;
|
LineInfo.Y2 = y2;
|
||||||
|
|
||||||
bGetLineTerm(&LineInfo, &dsLineParam); /* Get Line Parameter */
|
bASTGetLineTerm(&LineInfo, &dsLineParam); /* Get Line Parameter */
|
||||||
|
|
||||||
if (dsLineParam.dwLineAttributes & LINEPARAM_X_DEC)
|
if (dsLineParam.dwLineAttributes & LINEPARAM_X_DEC)
|
||||||
ulCommand |= CMD_X_DEC;
|
ulCommand |= CMD_X_DEC;
|
||||||
@ -930,7 +924,7 @@ ASTSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*7);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*7);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -950,7 +944,7 @@ ASTSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
mUpdateWritePointer;
|
mUpdateWritePointer;
|
||||||
|
|
||||||
/* Patch KDE pass abnormal point, ycchen@052507 */
|
/* Patch KDE pass abnormal point, ycchen@052507 */
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -963,7 +957,7 @@ ASTSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupLineK2Term_MMIO(dsLineParam.dwK2Term);
|
ASTSetupLineK2Term_MMIO(dsLineParam.dwK2Term);
|
||||||
ASTSetupCMDReg_MMIO(ulCommand);
|
ASTSetupCMDReg_MMIO(ulCommand);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1005,7 +999,7 @@ ASTSetupForMonoPatternFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
||||||
|
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1068,7 +1062,7 @@ ASTSubsequentMonoPatternFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1089,7 +1083,7 @@ ASTSubsequentMonoPatternFill(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* end of ASTSubsequentMonoPatternFill */
|
} /* end of ASTSubsequentMonoPatternFill */
|
||||||
@ -1134,7 +1128,7 @@ ASTSetupForColor8x8PatternFill(ScrnInfoPtr pScrn, int patx, int paty,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*(1 + ulPatSize/4));
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*(1 + ulPatSize/4));
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
for (i=0; i<8; i++)
|
for (i=0; i<8; i++)
|
||||||
@ -1199,7 +1193,7 @@ ASTSubsequentColor8x8PatternFillRect(ScrnInfoPtr pScrn, int patx, int paty,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*4);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1220,7 +1214,7 @@ ASTSubsequentColor8x8PatternFillRect(ScrnInfoPtr pScrn, int patx, int paty,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* ASTSubsequentColor8x8PatternFillRect */
|
} /* ASTSubsequentColor8x8PatternFillRect */
|
||||||
@ -1265,7 +1259,7 @@ ASTSetupForCPUToScreenColorExpandFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*3);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*3);
|
||||||
|
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1323,7 +1317,7 @@ ASTSubsequentCPUToScreenColorExpandFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
||||||
|
|
||||||
ASTSetupSRCPitch(pSingleCMD, ((width+7)/8));
|
ASTSetupSRCPitch(pSingleCMD, ((width+7)/8));
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1349,7 +1343,7 @@ ASTSubsequentCPUToScreenColorExpandFill(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1397,7 +1391,7 @@ ASTSetupForScreenToScreenColorExpandFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*3);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*3);
|
||||||
|
|
||||||
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
ASTSetupDSTPitchHeight(pSingleCMD, pAST->VideoModeInfo.ScreenPitch, -1);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1458,7 +1452,7 @@ ASTSubsequentScreenToScreenColorExpandFill(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*6);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*6);
|
||||||
|
|
||||||
ASTSetupSRCBase(pSingleCMD, srcbase);
|
ASTSetupSRCBase(pSingleCMD, srcbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1485,7 +1479,7 @@ ASTSubsequentScreenToScreenColorExpandFill(ScrnInfoPtr pScrn,
|
|||||||
ASTSetupRECTXY_MMIO(width, height);
|
ASTSetupRECTXY_MMIO(width, height);
|
||||||
ASTSetupCMDReg_MMIO(cmdreg);
|
ASTSetupCMDReg_MMIO(cmdreg);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1502,7 +1496,7 @@ ASTSetHWClipping(ScrnInfoPtr pScrn, int delta_y)
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*2);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*2);
|
||||||
|
|
||||||
ASTSetupCLIP1(pSingleCMD, pAST->clip_left, pAST->clip_top - delta_y);
|
ASTSetupCLIP1(pSingleCMD, pAST->clip_left, pAST->clip_top - delta_y);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1583,7 +1577,7 @@ static void AIPSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1599,7 +1593,7 @@ static void AIPSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
mUpdateWritePointer;
|
mUpdateWritePointer;
|
||||||
|
|
||||||
/* Patch KDE pass abnormal point, ycchen@052507 */
|
/* Patch KDE pass abnormal point, ycchen@052507 */
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1610,7 +1604,7 @@ static void AIPSubsequentSolidTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
AIPSetupLineNumber_MMIO(0);
|
AIPSetupLineNumber_MMIO(0);
|
||||||
ASTSetupCMDReg_MMIO(ulCommand);
|
ASTSetupCMDReg_MMIO(ulCommand);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1653,7 +1647,7 @@ AIPSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
if (!pAST->MMIO2D)
|
if (!pAST->MMIO2D)
|
||||||
{
|
{
|
||||||
/* Write to CMDQ */
|
/* Write to CMDQ */
|
||||||
pSingleCMD = (PKT_SC *) pjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
pSingleCMD = (PKT_SC *) pASTjRequestCMDQ(pAST, PKT_SINGLE_LENGTH*5);
|
||||||
|
|
||||||
ASTSetupDSTBase(pSingleCMD, dstbase);
|
ASTSetupDSTBase(pSingleCMD, dstbase);
|
||||||
pSingleCMD++;
|
pSingleCMD++;
|
||||||
@ -1669,7 +1663,7 @@ AIPSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
mUpdateWritePointer;
|
mUpdateWritePointer;
|
||||||
|
|
||||||
/* Patch KDE pass abnormal point, ycchen@052507 */
|
/* Patch KDE pass abnormal point, ycchen@052507 */
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1680,7 +1674,7 @@ AIPSubsequentDashedTwoPointLine(ScrnInfoPtr pScrn,
|
|||||||
AIPSetupLineNumber_MMIO(0);
|
AIPSetupLineNumber_MMIO(0);
|
||||||
ASTSetupCMDReg_MMIO(ulCommand);
|
ASTSetupCMDReg_MMIO(ulCommand);
|
||||||
|
|
||||||
vWaitEngIdle(pScrn, pAST);
|
vASTWaitEngIdle(pScrn, pAST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1792,7 +1786,7 @@ void ASTDisplayVideo(ScrnInfoPtr pScrn, ASTPortPrivPtr pPriv, RegionPtr clipBoxe
|
|||||||
lSrcX = (ULONG)((float)rect.x * fScaleX + pPriv->src_x + 0.5f);
|
lSrcX = (ULONG)((float)rect.x * fScaleX + pPriv->src_x + 0.5f);
|
||||||
lSrcY = (ULONG)((float)rect.y * fScaleY + pPriv->src_y + 0.5f);
|
lSrcY = (ULONG)((float)rect.y * fScaleY + pPriv->src_y + 0.5f);
|
||||||
|
|
||||||
pCopyCmd = (BURSTSCALECMD*)pjRequestCMDQ(pAST, PKT_TYPESCALE_LENGTH);
|
pCopyCmd = (BURSTSCALECMD*)pASTjRequestCMDQ(pAST, PKT_TYPESCALE_LENGTH);
|
||||||
|
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "pCopyCmd=%p, pBox=%x,%x,%x,%x\n", pCopyCmd, pBox->x1, pBox->y1, pBox->x2, pBox->y2);
|
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "pCopyCmd=%p, pBox=%x,%x,%x,%x\n", pCopyCmd, pBox->x1, pBox->y1, pBox->x2, pBox->y2);
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "xf86xv.h"
|
#include "xf86xv.h"
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
|
||||||
#include "xf86PciInfo.h"
|
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
|
||||||
/* framebuffer offscreen manager */
|
/* framebuffer offscreen manager */
|
||||||
@ -51,12 +50,11 @@
|
|||||||
|
|
||||||
/* Driver specific headers */
|
/* Driver specific headers */
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
#include "ast_vgatool.h"
|
||||||
|
#include "ast_cursor.h"
|
||||||
|
|
||||||
#ifdef HWC
|
#ifdef HWC
|
||||||
/* Prototype type declaration */
|
/* Prototype type declaration */
|
||||||
Bool ASTCursorInit(ScreenPtr pScreen);
|
|
||||||
Bool bInitHWC(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
void ASTDisableHWC(ScrnInfoPtr pScrn);
|
|
||||||
static void ASTShowCursor(ScrnInfoPtr pScrn);
|
static void ASTShowCursor(ScrnInfoPtr pScrn);
|
||||||
static void ASTHideCursor(ScrnInfoPtr pScrn);
|
static void ASTHideCursor(ScrnInfoPtr pScrn);
|
||||||
static void ASTSetCursorPosition(ScrnInfoPtr pScrn, int x, int y);
|
static void ASTSetCursorPosition(ScrnInfoPtr pScrn, int x, int y);
|
||||||
@ -112,7 +110,7 @@ ASTCursorInit(ScreenPtr pScreen)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool bInitHWC(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
Bool bASTInitHWC(ScrnInfoPtr pScrn, ASTRecPtr pAST)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
|
|
||||||
|
3382
driver/xf86-video-ast/src/ast_dp501fw.h
Normal file
3382
driver/xf86-video-ast/src/ast_dp501fw.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -40,7 +40,6 @@
|
|||||||
#include "xf86xv.h"
|
#include "xf86xv.h"
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
|
||||||
#include "xf86PciInfo.h"
|
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
|
||||||
/* framebuffer offscreen manager */
|
/* framebuffer offscreen manager */
|
||||||
@ -57,47 +56,9 @@
|
|||||||
|
|
||||||
/* Driver specific headers */
|
/* Driver specific headers */
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
#include "ast_mode.h"
|
||||||
/* external reference fucntion */
|
#include "ast_vgatool.h"
|
||||||
extern Bool ASTMapMem(ScrnInfoPtr pScrn);
|
#include "ast_2dtool.h"
|
||||||
extern Bool ASTUnmapMem(ScrnInfoPtr pScrn);
|
|
||||||
extern Bool ASTMapMMIO(ScrnInfoPtr pScrn);
|
|
||||||
extern void ASTUnmapMMIO(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
extern void vASTOpenKey(ScrnInfoPtr pScrn);
|
|
||||||
extern Bool bASTRegInit(ScrnInfoPtr pScrn);
|
|
||||||
extern void GetDRAMInfo(ScrnInfoPtr pScrn);
|
|
||||||
extern ULONG GetVRAMInfo(ScrnInfoPtr pScrn);
|
|
||||||
extern ULONG GetMaxDCLK(ScrnInfoPtr pScrn);
|
|
||||||
extern void GetChipType(ScrnInfoPtr pScrn);
|
|
||||||
extern void GetScratchOptions(ScrnInfoPtr pScrn);
|
|
||||||
extern void vASTLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, LOCO *colors, VisualPtr pVisual);
|
|
||||||
extern void ASTDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags);
|
|
||||||
extern void vSetStartAddressCRT1(ASTRecPtr pAST, ULONG base);
|
|
||||||
extern Bool ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
|
||||||
extern Bool GetVGA2EDID(ScrnInfoPtr pScrn, unsigned char *pEDIDBuffer);
|
|
||||||
extern void vInitDRAMReg(ScrnInfoPtr pScrn);
|
|
||||||
extern Bool bIsVGAEnabled(ScrnInfoPtr pScrn);
|
|
||||||
extern void ASTBlankScreen(ScrnInfoPtr pScreen, Bool unblack);
|
|
||||||
extern Bool InitVGA(ScrnInfoPtr pScrn, ULONG Flags);
|
|
||||||
extern Bool GetVGAEDID(ScrnInfoPtr pScrn, unsigned char *pEDIDBuffer);
|
|
||||||
extern Bool bInitAST1180(ScrnInfoPtr pScrn);
|
|
||||||
extern void GetAST1180DRAMInfo(ScrnInfoPtr pScrn);
|
|
||||||
extern void vEnableASTVGAMMIO(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
extern Bool ReadEDID_M68K(ScrnInfoPtr pScrn, BYTE *pEDIDData);
|
|
||||||
extern UCHAR GetLinkMaxCLK(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
extern Bool bInitCMDQInfo(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
extern Bool bEnableCMDQ(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
extern void vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
|
|
||||||
#ifdef HAVE_XAA_H
|
|
||||||
extern Bool ASTAccelInit(ScreenPtr pScreen);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern Bool ASTCursorInit(ScreenPtr pScreen);
|
|
||||||
extern void ASTDisableHWC(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
/* Mandatory functions */
|
/* Mandatory functions */
|
||||||
static void ASTIdentify(int flags);
|
static void ASTIdentify(int flags);
|
||||||
@ -129,7 +90,11 @@ static Bool ASTModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
|||||||
static void ASTInitVideo(ScreenPtr pScreen);
|
static void ASTInitVideo(ScreenPtr pScreen);
|
||||||
static int ASTPutImage( ScrnInfoPtr,
|
static int ASTPutImage( ScrnInfoPtr,
|
||||||
short, short, short, short, short, short, short, short,
|
short, short, short, short, short, short, short, short,
|
||||||
int, unsigned char*, short, short, Bool, RegionPtr, pointer);
|
int, unsigned char*, short, short, Bool, RegionPtr, pointer
|
||||||
|
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 1
|
||||||
|
, DrawablePtr pDraw
|
||||||
|
#endif
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -316,7 +281,11 @@ ASTProbe(DriverPtr drv, int flags)
|
|||||||
pPci->device_id, pPci->bus, pPci->domain, pPci->dev, pPci->func);
|
pPci->device_id, pPci->bus, pPci->domain, pPci->dev, pPci->func);
|
||||||
xf86DrvMsg(0, X_ERROR,
|
xf86DrvMsg(0, X_ERROR,
|
||||||
"ast: This driver cannot operate until it has been unloaded.\n");
|
"ast: This driver cannot operate until it has been unloaded.\n");
|
||||||
xf86UnclaimPciSlot(pPci, devSections[0]);
|
xf86UnclaimPciSlot(pPci
|
||||||
|
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 13
|
||||||
|
, devSections[0]
|
||||||
|
#endif
|
||||||
|
);
|
||||||
free(devSections);
|
free(devSections);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -571,23 +540,21 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
|
|||||||
xf86DrvMsg(pScrn->scrnIndex, from, "Chipset: \"%s\"\n",
|
xf86DrvMsg(pScrn->scrnIndex, from, "Chipset: \"%s\"\n",
|
||||||
(pScrn->chipset != NULL) ? pScrn->chipset : "Unknown ast");
|
(pScrn->chipset != NULL) ? pScrn->chipset : "Unknown ast");
|
||||||
|
|
||||||
/* Resource Allocation */
|
|
||||||
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
|
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
|
||||||
pAST->IODBase = pScrn->domainIOBase;
|
|
||||||
#else
|
|
||||||
pAST->IODBase = 0;
|
|
||||||
#endif
|
|
||||||
/* "Patch" the PIOOffset inside vgaHW in order to force
|
/* "Patch" the PIOOffset inside vgaHW in order to force
|
||||||
* the vgaHW module to use our relocated i/o ports.
|
* the vgaHW module to use our relocated i/o ports.
|
||||||
*/
|
*/
|
||||||
|
VGAHWPTR(pScrn)->PIOOffset =
|
||||||
|
pScrn->domainIOBase + PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO) - 0x380;
|
||||||
|
|
||||||
|
pAST->RelocateIO = pScrn->domainIOBase +
|
||||||
|
PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO);
|
||||||
|
#else
|
||||||
|
pAST->RelocateIO = (PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO));
|
||||||
|
|
||||||
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
|
|
||||||
VGAHWPTR(pScrn)->PIOOffset = /* ... */
|
|
||||||
#endif
|
#endif
|
||||||
pAST->PIOOffset =
|
|
||||||
pAST->IODBase + PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO) - 0x380;
|
|
||||||
|
|
||||||
pAST->RelocateIO = (IOADDRESS)(PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO) + pAST->IODBase);
|
|
||||||
|
|
||||||
if (pAST->pEnt->device->MemBase != 0) {
|
if (pAST->pEnt->device->MemBase != 0) {
|
||||||
pAST->FBPhysAddr = pAST->pEnt->device->MemBase;
|
pAST->FBPhysAddr = pAST->pEnt->device->MemBase;
|
||||||
@ -644,22 +611,22 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Init AST1180 */
|
/* Init AST1180 */
|
||||||
bInitAST1180(pScrn);
|
bASTInitAST1180(pScrn);
|
||||||
|
|
||||||
/* Get AST1180 Information */
|
/* Get AST1180 Information */
|
||||||
GetAST1180DRAMInfo(pScrn);
|
ASTGetAST1180DRAMInfo(pScrn);
|
||||||
pScrn->videoRam = pAST->ulVRAMSize / 1024;
|
pScrn->videoRam = pAST->ulVRAMSize / 1024;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Enable VGA MMIO Access */
|
/* Enable VGA MMIO Access */
|
||||||
vEnableASTVGAMMIO(pScrn);
|
vASTEnableVGAMMIO(pScrn);
|
||||||
|
|
||||||
/* Init VGA Adapter */
|
/* Init VGA Adapter */
|
||||||
if (!xf86IsPrimaryPci(pAST->PciInfo))
|
if (!xf86IsPrimaryPci(pAST->PciInfo))
|
||||||
{
|
{
|
||||||
InitVGA(pScrn, 0);
|
ASTInitVGA(pScrn, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
vASTOpenKey(pScrn);
|
vASTOpenKey(pScrn);
|
||||||
@ -671,16 +638,16 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
|
|||||||
else if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x20)
|
else if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x20)
|
||||||
pAST->jChipType = AST2300;
|
pAST->jChipType = AST2300;
|
||||||
else if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x10)
|
else if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x10)
|
||||||
GetChipType(pScrn);
|
ASTGetChipType(pScrn);
|
||||||
else
|
else
|
||||||
pAST->jChipType = AST2000;
|
pAST->jChipType = AST2000;
|
||||||
|
|
||||||
/* Get Options from Scratch */
|
/* Get Options from Scratch */
|
||||||
GetScratchOptions(pScrn);
|
ASTGetScratchOptions(pScrn);
|
||||||
|
|
||||||
/* Get DRAM Info */
|
/* Get DRAM Info */
|
||||||
GetDRAMInfo(pScrn);
|
ASTGetDRAMInfo(pScrn);
|
||||||
pAST->ulVRAMSize = GetVRAMInfo(pScrn);
|
pAST->ulVRAMSize = ASTGetVRAMInfo(pScrn);
|
||||||
pScrn->videoRam = pAST->ulVRAMSize / 1024;
|
pScrn->videoRam = pAST->ulVRAMSize / 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -712,7 +679,7 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
|
|||||||
clockRanges = xnfcalloc(sizeof(ClockRange), 1);
|
clockRanges = xnfcalloc(sizeof(ClockRange), 1);
|
||||||
clockRanges->next = NULL;
|
clockRanges->next = NULL;
|
||||||
clockRanges->minClock = 9500;
|
clockRanges->minClock = 9500;
|
||||||
clockRanges->maxClock = GetMaxDCLK(pScrn) * 1000;
|
clockRanges->maxClock = ASTGetMaxDCLK(pScrn) * 1000;
|
||||||
clockRanges->clockIndex = -1;
|
clockRanges->clockIndex = -1;
|
||||||
clockRanges->interlaceAllowed = FALSE;
|
clockRanges->interlaceAllowed = FALSE;
|
||||||
clockRanges->doubleScanAllowed = FALSE;
|
clockRanges->doubleScanAllowed = FALSE;
|
||||||
@ -1083,7 +1050,7 @@ ASTSwitchMode(SWITCH_MODE_ARGS_DECL)
|
|||||||
xf86FreeOffscreenLinear(pAST->pCMDQPtr); /* free CMDQ */
|
xf86FreeOffscreenLinear(pAST->pCMDQPtr); /* free CMDQ */
|
||||||
pAST->pCMDQPtr = NULL;
|
pAST->pCMDQPtr = NULL;
|
||||||
}
|
}
|
||||||
vDisable2D(pScrn, pAST);
|
vASTDisable2D(pScrn, pAST);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Fixed display abnormal on the of the screen if run xvidtune, ycchen@122909 */
|
/* Fixed display abnormal on the of the screen if run xvidtune, ycchen@122909 */
|
||||||
@ -1103,7 +1070,7 @@ ASTAdjustFrame(ADJUST_FRAME_ARGS_DECL)
|
|||||||
base = y * pAST->VideoModeInfo.ScreenPitch + x * ((pAST->VideoModeInfo.bitsPerPixel + 1) / 8);
|
base = y * pAST->VideoModeInfo.ScreenPitch + x * ((pAST->VideoModeInfo.bitsPerPixel + 1) / 8);
|
||||||
/* base = base >> 2; */ /* DW unit */
|
/* base = base >> 2; */ /* DW unit */
|
||||||
|
|
||||||
vSetStartAddressCRT1(pAST, base);
|
vASTSetStartAddressCRT1(pAST, base);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1115,14 +1082,14 @@ ASTEnterVT(VT_FUNC_ARGS_DECL)
|
|||||||
ASTRecPtr pAST = ASTPTR(pScrn);
|
ASTRecPtr pAST = ASTPTR(pScrn);
|
||||||
|
|
||||||
/* Fixed suspend can't resume issue */
|
/* Fixed suspend can't resume issue */
|
||||||
if (!bIsVGAEnabled(pScrn))
|
if (!bASTIsVGAEnabled(pScrn))
|
||||||
{
|
{
|
||||||
if (pAST->jChipType == AST1180)
|
if (pAST->jChipType == AST1180)
|
||||||
bInitAST1180(pScrn);
|
bASTInitAST1180(pScrn);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vEnableASTVGAMMIO(pScrn);
|
vASTEnableVGAMMIO(pScrn);
|
||||||
InitVGA(pScrn, 1);
|
ASTInitVGA(pScrn, 1);
|
||||||
}
|
}
|
||||||
ASTRestore(pScrn);
|
ASTRestore(pScrn);
|
||||||
}
|
}
|
||||||
@ -1159,7 +1126,7 @@ ASTLeaveVT(VT_FUNC_ARGS_DECL)
|
|||||||
xf86FreeOffscreenLinear(pAST->pCMDQPtr); /* free CMDQ */
|
xf86FreeOffscreenLinear(pAST->pCMDQPtr); /* free CMDQ */
|
||||||
pAST->pCMDQPtr = NULL;
|
pAST->pCMDQPtr = NULL;
|
||||||
}
|
}
|
||||||
vDisable2D(pScrn, pAST);
|
vASTDisable2D(pScrn, pAST);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ASTRestore(pScrn);
|
ASTRestore(pScrn);
|
||||||
@ -1343,7 +1310,7 @@ ASTCloseScreen(CLOSE_SCREEN_ARGS_DECL)
|
|||||||
xf86FreeOffscreenLinear(pAST->pCMDQPtr); /* free CMDQ */
|
xf86FreeOffscreenLinear(pAST->pCMDQPtr); /* free CMDQ */
|
||||||
pAST->pCMDQPtr = NULL;
|
pAST->pCMDQPtr = NULL;
|
||||||
}
|
}
|
||||||
vDisable2D(pScrn, pAST);
|
vASTDisable2D(pScrn, pAST);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ASTRestore(pScrn);
|
ASTRestore(pScrn);
|
||||||
@ -1560,15 +1527,15 @@ ASTProbeDDC(ScrnInfoPtr pScrn, int index)
|
|||||||
if (xf86LoadSubModule(pScrn, "ddc"))
|
if (xf86LoadSubModule(pScrn, "ddc"))
|
||||||
{
|
{
|
||||||
if (pAST->jChipType == AST1180)
|
if (pAST->jChipType == AST1180)
|
||||||
Flags = GetVGA2EDID(pScrn, DDC_data);
|
Flags = ASTGetVGA2EDID(pScrn, DDC_data);
|
||||||
else if (pAST->jTxChipType == Tx_DP501)
|
else if (pAST->jTxChipType == Tx_DP501)
|
||||||
{
|
{
|
||||||
Flags = ReadEDID_M68K(pScrn, DDC_data);
|
Flags = ASTReadEDID_M68K(pScrn, DDC_data);
|
||||||
if (Flags == FALSE)
|
if (Flags == FALSE)
|
||||||
Flags = GetVGAEDID(pScrn, DDC_data);
|
Flags = ASTGetVGAEDID(pScrn, DDC_data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Flags = GetVGAEDID(pScrn, DDC_data);
|
Flags = ASTGetVGAEDID(pScrn, DDC_data);
|
||||||
|
|
||||||
if (Flags)
|
if (Flags)
|
||||||
{
|
{
|
||||||
@ -1610,17 +1577,17 @@ ASTDoDDC(ScrnInfoPtr pScrn, int index)
|
|||||||
if (xf86LoadSubModule(pScrn, "ddc"))
|
if (xf86LoadSubModule(pScrn, "ddc"))
|
||||||
{
|
{
|
||||||
if (pAST->jChipType == AST1180)
|
if (pAST->jChipType == AST1180)
|
||||||
Flags = GetVGA2EDID(pScrn, DDC_data);
|
Flags = ASTGetVGA2EDID(pScrn, DDC_data);
|
||||||
else if (pAST->jTxChipType == Tx_DP501)
|
else if (pAST->jTxChipType == Tx_DP501)
|
||||||
{
|
{
|
||||||
pAST->DP501_MaxVCLK = 0xFF;
|
pAST->DP501_MaxVCLK = 0xFF;
|
||||||
Flags = ReadEDID_M68K(pScrn, DDC_data);
|
Flags = ASTReadEDID_M68K(pScrn, DDC_data);
|
||||||
if (Flags) pAST->DP501_MaxVCLK = GetLinkMaxCLK(pScrn);
|
if (Flags) pAST->DP501_MaxVCLK = ASTGetLinkMaxCLK(pScrn);
|
||||||
else
|
else
|
||||||
Flags = GetVGAEDID(pScrn, DDC_data);
|
Flags = ASTGetVGAEDID(pScrn, DDC_data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Flags = GetVGAEDID(pScrn, DDC_data);
|
Flags = ASTGetVGAEDID(pScrn, DDC_data);
|
||||||
|
|
||||||
if (Flags)
|
if (Flags)
|
||||||
{
|
{
|
||||||
@ -1636,7 +1603,7 @@ ASTDoDDC(ScrnInfoPtr pScrn, int index)
|
|||||||
|
|
||||||
/* For VGA2 CLONE Support, ycchen@012508 */
|
/* For VGA2 CLONE Support, ycchen@012508 */
|
||||||
if ((xf86ReturnOptValBool(pAST->Options, OPTION_VGA2_CLONE, FALSE)) || pAST->VGA2Clone) {
|
if ((xf86ReturnOptValBool(pAST->Options, OPTION_VGA2_CLONE, FALSE)) || pAST->VGA2Clone) {
|
||||||
if (GetVGA2EDID(pScrn, DDC_data) == TRUE) {
|
if (ASTGetVGA2EDID(pScrn, DDC_data) == TRUE) {
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Get VGA2 EDID Correctly!! \n");
|
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Get VGA2 EDID Correctly!! \n");
|
||||||
MonInfo2 = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);
|
MonInfo2 = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);
|
||||||
if (MonInfo1 == NULL) /* No DDC1 EDID */
|
if (MonInfo1 == NULL) /* No DDC1 EDID */
|
||||||
@ -1768,7 +1735,7 @@ ASTDoDDC(ScrnInfoPtr pScrn, int index)
|
|||||||
|
|
||||||
} /* Check with VGA1 & VGA2 EDID */
|
} /* Check with VGA1 & VGA2 EDID */
|
||||||
|
|
||||||
} /* GetVGA2EDID */
|
} /* ASTGetVGA2EDID */
|
||||||
else {
|
else {
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Can't Get VGA2 EDID Correctly!! \n");
|
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Can't Get VGA2 EDID Correctly!! \n");
|
||||||
}
|
}
|
||||||
@ -2126,8 +2093,6 @@ static int ASTQueryImageAttributes(ScrnInfoPtr pScrn, int id,
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void ASTDisplayVideo(ScrnInfoPtr pScrn, ASTPortPrivPtr pPriv, RegionPtr clipBoxes, int id);
|
|
||||||
|
|
||||||
static int ASTPutImage(ScrnInfoPtr pScrn,
|
static int ASTPutImage(ScrnInfoPtr pScrn,
|
||||||
short src_x, short src_y,
|
short src_x, short src_y,
|
||||||
short drw_x, short drw_y,
|
short drw_x, short drw_y,
|
||||||
@ -2137,6 +2102,9 @@ static int ASTPutImage(ScrnInfoPtr pScrn,
|
|||||||
short width, short height,
|
short width, short height,
|
||||||
Bool sync,
|
Bool sync,
|
||||||
RegionPtr clipBoxes, pointer data
|
RegionPtr clipBoxes, pointer data
|
||||||
|
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 1
|
||||||
|
, DrawablePtr pDraw
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASTPtr pAST = ASTPTR(pScrn);
|
ASTPtr pAST = ASTPTR(pScrn);
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "xf86xv.h"
|
#include "xf86xv.h"
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
|
||||||
#include "xf86PciInfo.h"
|
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
|
||||||
/* framebuffer offscreen manager */
|
/* framebuffer offscreen manager */
|
||||||
@ -53,11 +52,10 @@
|
|||||||
|
|
||||||
/* Driver specific headers */
|
/* Driver specific headers */
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
#include "ast_mode.h"
|
||||||
|
#include "ast_vgatool.h"
|
||||||
|
|
||||||
/* external reference fucntion */
|
static VBIOS_STDTABLE_STRUCT StdTable[] = {
|
||||||
extern Bool bInitAST1180(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
VBIOS_STDTABLE_STRUCT StdTable[] = {
|
|
||||||
/* MD_2_3_400 */
|
/* MD_2_3_400 */
|
||||||
{
|
{
|
||||||
0x67,
|
0x67,
|
||||||
@ -130,7 +128,7 @@ VBIOS_STDTABLE_STRUCT StdTable[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res640x480Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res640x480Table[] = {
|
||||||
{ 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175, /* 60Hz */
|
{ 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175, /* 60Hz */
|
||||||
(SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E },
|
(SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E },
|
||||||
{ 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5, /* 72Hz */
|
{ 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5, /* 72Hz */
|
||||||
@ -144,7 +142,7 @@ VBIOS_ENHTABLE_STRUCT Res640x480Table[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res800x600Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res800x600Table[] = {
|
||||||
{1024, 800, 24, 72, 625, 600, 1, 2, VCLK36, /* 56Hz */
|
{1024, 800, 24, 72, 625, 600, 1, 2, VCLK36, /* 56Hz */
|
||||||
(SyncPP | Charx8Dot), 56, 1, 0x30 },
|
(SyncPP | Charx8Dot), 56, 1, 0x30 },
|
||||||
{1056, 800, 40, 128, 628, 600, 1, 4, VCLK40, /* 60Hz */
|
{1056, 800, 40, 128, 628, 600, 1, 4, VCLK40, /* 60Hz */
|
||||||
@ -159,8 +157,7 @@ VBIOS_ENHTABLE_STRUCT Res800x600Table[] = {
|
|||||||
(SyncPP | Charx8Dot), 0xFF, 5, 0x30 },
|
(SyncPP | Charx8Dot), 0xFF, 5, 0x30 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static VBIOS_ENHTABLE_STRUCT Res1024x768Table[] = {
|
||||||
VBIOS_ENHTABLE_STRUCT Res1024x768Table[] = {
|
|
||||||
{1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65, /* 60Hz */
|
{1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65, /* 60Hz */
|
||||||
(SyncNN | Charx8Dot), 60, 1, 0x31 },
|
(SyncNN | Charx8Dot), 60, 1, 0x31 },
|
||||||
{1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75, /* 70Hz */
|
{1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75, /* 70Hz */
|
||||||
@ -173,7 +170,7 @@ VBIOS_ENHTABLE_STRUCT Res1024x768Table[] = {
|
|||||||
(SyncPP | Charx8Dot), 0xFF, 4, 0x31 },
|
(SyncPP | Charx8Dot), 0xFF, 4, 0x31 },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1280x1024Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1280x1024Table[] = {
|
||||||
{1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108, /* 60Hz */
|
{1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108, /* 60Hz */
|
||||||
(SyncPP | Charx8Dot), 60, 1, 0x32 },
|
(SyncPP | Charx8Dot), 60, 1, 0x32 },
|
||||||
{1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135, /* 75Hz */
|
{1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135, /* 75Hz */
|
||||||
@ -184,7 +181,7 @@ VBIOS_ENHTABLE_STRUCT Res1280x1024Table[] = {
|
|||||||
(SyncPP | Charx8Dot), 0xFF, 3, 0x32 },
|
(SyncPP | Charx8Dot), 0xFF, 3, 0x32 },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1600x1200Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1600x1200Table[] = {
|
||||||
{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* 60Hz */
|
{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* 60Hz */
|
||||||
(SyncPP | Charx8Dot), 60, 1, 0x33 },
|
(SyncPP | Charx8Dot), 60, 1, 0x33 },
|
||||||
{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* end */
|
{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* end */
|
||||||
@ -192,21 +189,23 @@ VBIOS_ENHTABLE_STRUCT Res1600x1200Table[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* 16:9 */
|
/* 16:9 */
|
||||||
VBIOS_ENHTABLE_STRUCT Res1360x768Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1360x768Table[] = {
|
||||||
{1792, 1360, 64,112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */
|
{1792, 1360, 64,112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */
|
||||||
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 },
|
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 },
|
||||||
{1792, 1360, 64,112, 795, 768, 3, 6, VCLK85_5, /* end */
|
{1792, 1360, 64,112, 795, 768, 3, 6, VCLK85_5, /* end */
|
||||||
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x39 },
|
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x39 },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1600x900Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1600x900Table[] = {
|
||||||
|
{2112, 1600, 88,168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */
|
||||||
|
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x3A },
|
||||||
{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */
|
{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x3A },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x3A },
|
||||||
{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* end */
|
{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* end */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x3A },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x3A },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1920x1080Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1920x1080Table[] = {
|
||||||
{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* HDTV 60Hz */
|
{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* HDTV 60Hz */
|
||||||
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x38 },
|
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x38 },
|
||||||
{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* end */
|
{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* end */
|
||||||
@ -214,42 +213,41 @@ VBIOS_ENHTABLE_STRUCT Res1920x1080Table[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* 16:10 */
|
/* 16:10 */
|
||||||
VBIOS_ENHTABLE_STRUCT Res1280x800Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1280x800Table[] = {
|
||||||
{1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz RB */
|
{1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz CVT */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 35 },
|
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x35 },
|
||||||
{1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */
|
{1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz CVT RB */
|
||||||
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x35 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 35 },
|
||||||
{1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */
|
{1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz CVT RB */
|
||||||
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x35 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 35 },
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1440x900Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1440x900Table[] = {
|
||||||
{1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz RB */
|
{1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz CVT */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x36 },
|
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x36 },
|
||||||
{1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */
|
{1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz CVT RB */
|
||||||
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x36 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x36 },
|
||||||
{1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */
|
{1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz CVT RB */
|
||||||
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x36 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x36 },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1680x1050Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1680x1050Table[] = {
|
||||||
{1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz RB */
|
{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz CVT */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x37 },
|
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x37 },
|
||||||
{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */
|
{1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz CVT RB */
|
||||||
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 },
|
||||||
{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */
|
{1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz CVT RB */
|
||||||
(SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x37 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x37 },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_ENHTABLE_STRUCT Res1920x1200Table[] = {
|
static VBIOS_ENHTABLE_STRUCT Res1920x1200Table[] = {
|
||||||
{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz */
|
{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x34 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x34 },
|
||||||
{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz */
|
{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz */
|
||||||
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x34 },
|
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x34 },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_DCLK_INFO DCLKTable [] = {
|
static VBIOS_DCLK_INFO DCLKTable [] = {
|
||||||
{0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */
|
{0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */
|
||||||
{0x95, 0x62, 0x03}, /* 01: VCLK28_322 */
|
{0x95, 0x62, 0x03}, /* 01: VCLK28_322 */
|
||||||
{0x67, 0x63, 0x01}, /* 02: VCLK31_5 */
|
{0x67, 0x63, 0x01}, /* 02: VCLK31_5 */
|
||||||
@ -275,9 +273,11 @@ VBIOS_DCLK_INFO DCLKTable [] = {
|
|||||||
{0x25, 0x65, 0x80}, /* 16: VCLK88.75 */
|
{0x25, 0x65, 0x80}, /* 16: VCLK88.75 */
|
||||||
{0x77, 0x58, 0x80}, /* 17: VCLK119 */
|
{0x77, 0x58, 0x80}, /* 17: VCLK119 */
|
||||||
{0x32, 0x67, 0x80}, /* 18: VCLK85_5 */
|
{0x32, 0x67, 0x80}, /* 18: VCLK85_5 */
|
||||||
|
{0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */
|
||||||
|
{0x3b, 0x2c, 0x81}, /* 1A: VCLK118_25 */
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_DCLK_INFO DCLKTable_AST2100 [] = {
|
static VBIOS_DCLK_INFO DCLKTable_AST2100 [] = {
|
||||||
{0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */
|
{0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */
|
||||||
{0x95, 0x62, 0x03}, /* 01: VCLK28_322 */
|
{0x95, 0x62, 0x03}, /* 01: VCLK28_322 */
|
||||||
{0x67, 0x63, 0x01}, /* 02: VCLK31_5 */
|
{0x67, 0x63, 0x01}, /* 02: VCLK31_5 */
|
||||||
@ -303,9 +303,11 @@ VBIOS_DCLK_INFO DCLKTable_AST2100 [] = {
|
|||||||
{0x25, 0x65, 0x80}, /* 16: VCLK88.75 */
|
{0x25, 0x65, 0x80}, /* 16: VCLK88.75 */
|
||||||
{0x77, 0x58, 0x80}, /* 17: VCLK119 */
|
{0x77, 0x58, 0x80}, /* 17: VCLK119 */
|
||||||
{0x32, 0x67, 0x80}, /* 18: VCLK85_5 */
|
{0x32, 0x67, 0x80}, /* 18: VCLK85_5 */
|
||||||
|
{0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */
|
||||||
|
{0x3b, 0x2c, 0x81}, /* 1A: VCLK118_25 */
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_DAC_INFO DAC_TEXT[] = {
|
static VBIOS_DAC_INFO DAC_TEXT[] = {
|
||||||
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x2a }, { 0x00, 0x2a, 0x00 }, { 0x00, 0x2a, 0x2a },
|
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x2a }, { 0x00, 0x2a, 0x00 }, { 0x00, 0x2a, 0x2a },
|
||||||
{ 0x2a, 0x00, 0x00 }, { 0x2a, 0x00, 0x2a }, { 0x2a, 0x2a, 0x00 }, { 0x2a, 0x2a, 0x2a },
|
{ 0x2a, 0x00, 0x00 }, { 0x2a, 0x00, 0x2a }, { 0x2a, 0x2a, 0x00 }, { 0x2a, 0x2a, 0x2a },
|
||||||
{ 0x00, 0x00, 0x15 }, { 0x00, 0x00, 0x3f }, { 0x00, 0x2a, 0x15 }, { 0x00, 0x2a, 0x3f },
|
{ 0x00, 0x00, 0x15 }, { 0x00, 0x00, 0x3f }, { 0x00, 0x2a, 0x15 }, { 0x00, 0x2a, 0x3f },
|
||||||
@ -324,7 +326,7 @@ VBIOS_DAC_INFO DAC_TEXT[] = {
|
|||||||
{ 0x3f, 0x15, 0x15 }, { 0x3f, 0x15, 0x3f }, { 0x3f, 0x3f, 0x15 }, { 0x3f, 0x3f, 0x3f },
|
{ 0x3f, 0x15, 0x15 }, { 0x3f, 0x15, 0x3f }, { 0x3f, 0x3f, 0x15 }, { 0x3f, 0x3f, 0x3f },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_DAC_INFO DAC_EGA[] = {
|
static VBIOS_DAC_INFO DAC_EGA[] = {
|
||||||
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x2a }, { 0x00, 0x2a, 0x00 }, { 0x00, 0x2a, 0x2a },
|
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x2a }, { 0x00, 0x2a, 0x00 }, { 0x00, 0x2a, 0x2a },
|
||||||
{ 0x2a, 0x00, 0x00 }, { 0x2a, 0x00, 0x2a }, { 0x2a, 0x2a, 0x00 }, { 0x2a, 0x2a, 0x2a },
|
{ 0x2a, 0x00, 0x00 }, { 0x2a, 0x00, 0x2a }, { 0x2a, 0x2a, 0x00 }, { 0x2a, 0x2a, 0x2a },
|
||||||
{ 0x00, 0x00, 0x15 }, { 0x00, 0x00, 0x3f }, { 0x00, 0x2a, 0x15 }, { 0x00, 0x2a, 0x3f },
|
{ 0x00, 0x00, 0x15 }, { 0x00, 0x00, 0x3f }, { 0x00, 0x2a, 0x15 }, { 0x00, 0x2a, 0x3f },
|
||||||
@ -343,7 +345,7 @@ VBIOS_DAC_INFO DAC_EGA[] = {
|
|||||||
{ 0x3f, 0x15, 0x15 }, { 0x3f, 0x15, 0x3f }, { 0x3f, 0x3f, 0x15 }, { 0x3f, 0x3f, 0x3f },
|
{ 0x3f, 0x15, 0x15 }, { 0x3f, 0x15, 0x3f }, { 0x3f, 0x3f, 0x15 }, { 0x3f, 0x3f, 0x3f },
|
||||||
};
|
};
|
||||||
|
|
||||||
VBIOS_DAC_INFO DAC_VGA[] = {
|
static VBIOS_DAC_INFO DAC_VGA[] = {
|
||||||
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x2a }, { 0x00, 0x2a, 0x00 }, { 0x00, 0x2a, 0x2a },
|
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x2a }, { 0x00, 0x2a, 0x00 }, { 0x00, 0x2a, 0x2a },
|
||||||
{ 0x2a, 0x00, 0x00 }, { 0x2a, 0x00, 0x2a }, { 0x2a, 0x15, 0x00 }, { 0x2a, 0x2a, 0x2a },
|
{ 0x2a, 0x00, 0x00 }, { 0x2a, 0x00, 0x2a }, { 0x2a, 0x15, 0x00 }, { 0x2a, 0x2a, 0x2a },
|
||||||
{ 0x15, 0x15, 0x15 }, { 0x15, 0x15, 0x3f }, { 0x15, 0x3f, 0x15 }, { 0x15, 0x3f, 0x3f },
|
{ 0x15, 0x15, 0x15 }, { 0x15, 0x15, 0x3f }, { 0x15, 0x3f, 0x15 }, { 0x15, 0x3f, 0x3f },
|
||||||
@ -410,32 +412,20 @@ VBIOS_DAC_INFO DAC_VGA[] = {
|
|||||||
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00 },
|
{ 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* extern. function */
|
|
||||||
extern void vASTOpenKey(ScrnInfoPtr pScrn);
|
|
||||||
extern Bool bASTRegInit(ScrnInfoPtr pScrn);
|
|
||||||
extern void vAST1000DisplayOn(ScrnInfoPtr pScrn);
|
|
||||||
extern void vAST1000DisplayOff(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
extern Bool bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
extern void vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
|
|
||||||
extern Bool bInitHWC(ScrnInfoPtr pScrn, ASTRecPtr pAST);
|
|
||||||
|
|
||||||
/* Prototype type declaration*/
|
/* Prototype type declaration*/
|
||||||
Bool ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
static Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vSetStdReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vSetStdReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vSetCRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vSetCRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vSetOffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vSetOffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vSetDCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vSetDCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vSetExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vSetExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vSetSyncReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vSetSyncReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static Bool bSetDACReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
Bool bSetDACReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static BOOL bSetAST1180CRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
BOOL bSetAST1180CRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static BOOL bSetAST1180OffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
BOOL bSetAST1180OffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static BOOL bSetAST1180DCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
BOOL bSetAST1180DCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static BOOL bSetAST1180ExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
BOOL bSetAST1180ExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
static void vInitChrontelReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
||||||
void vInitChontelReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo);
|
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
||||||
@ -451,14 +441,14 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
|||||||
/* set mode */
|
/* set mode */
|
||||||
if (pAST->jChipType == AST1180)
|
if (pAST->jChipType == AST1180)
|
||||||
{
|
{
|
||||||
bInitAST1180(pScrn);
|
bASTInitAST1180(pScrn);
|
||||||
|
|
||||||
bSetAST1180CRTCReg(pScrn, mode, &vgamodeinfo);
|
bSetAST1180CRTCReg(pScrn, mode, &vgamodeinfo);
|
||||||
bSetAST1180OffsetReg(pScrn, mode, &vgamodeinfo);
|
bSetAST1180OffsetReg(pScrn, mode, &vgamodeinfo);
|
||||||
bSetAST1180DCLKReg(pScrn, mode, &vgamodeinfo);
|
bSetAST1180DCLKReg(pScrn, mode, &vgamodeinfo);
|
||||||
bSetAST1180ExtReg(pScrn, mode, &vgamodeinfo);
|
bSetAST1180ExtReg(pScrn, mode, &vgamodeinfo);
|
||||||
|
|
||||||
vInitChontelReg(pScrn, mode, &vgamodeinfo);
|
vInitChrontelReg(pScrn, mode, &vgamodeinfo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -481,7 +471,7 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
|||||||
/* post set mode */
|
/* post set mode */
|
||||||
#ifdef Accel_2D
|
#ifdef Accel_2D
|
||||||
if (!pAST->noAccel) {
|
if (!pAST->noAccel) {
|
||||||
if (!bEnable2D(pScrn, pAST)) {
|
if (!bASTEnable2D(pScrn, pAST)) {
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"Enable 2D failed\n");
|
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"Enable 2D failed\n");
|
||||||
pAST->noAccel = TRUE;
|
pAST->noAccel = TRUE;
|
||||||
}
|
}
|
||||||
@ -489,7 +479,7 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef HWC
|
#ifdef HWC
|
||||||
if (!pAST->noHWC) {
|
if (!pAST->noHWC) {
|
||||||
if (!bInitHWC(pScrn, pAST)) {
|
if (!bASTInitHWC(pScrn, pAST)) {
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"Init HWC failed\n");
|
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"Init HWC failed\n");
|
||||||
pAST->noHWC = TRUE;
|
pAST->noHWC = TRUE;
|
||||||
}
|
}
|
||||||
@ -500,7 +490,7 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
ASTRecPtr pAST;
|
ASTRecPtr pAST;
|
||||||
ULONG ulModeID, ulColorIndex, ulRefreshRate, ulRefreshRateIndex = 0;
|
ULONG ulModeID, ulColorIndex, ulRefreshRate, ulRefreshRateIndex = 0;
|
||||||
@ -570,25 +560,27 @@ Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get Proper Mode Index */
|
/* Get Proper Mode Index */
|
||||||
ulRefreshRate = (mode->Clock * 1000) / (mode->HTotal * mode->VTotal);
|
|
||||||
|
|
||||||
while (pVGAModeInfo->pEnhTableEntry->ulRefreshRate < ulRefreshRate)
|
|
||||||
{
|
|
||||||
pVGAModeInfo->pEnhTableEntry++;
|
|
||||||
if ((pVGAModeInfo->pEnhTableEntry->ulRefreshRate > ulRefreshRate) ||
|
|
||||||
(pVGAModeInfo->pEnhTableEntry->ulRefreshRate == 0xFF))
|
|
||||||
{
|
|
||||||
pVGAModeInfo->pEnhTableEntry--;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* parsing for wide scrren reduced blank mode */
|
|
||||||
if (pVGAModeInfo->pEnhTableEntry->Flags & WideScreenMode)
|
if (pVGAModeInfo->pEnhTableEntry->Flags & WideScreenMode)
|
||||||
{
|
{
|
||||||
if ((mode->Flags & V_PVSYNC) && (mode->Flags & V_NHSYNC)) /* CVT */
|
/* parsing for wide screen reduced blank mode */
|
||||||
|
if ((mode->Flags & V_NVSYNC) && (mode->Flags & V_PHSYNC)) /* CVT RB */
|
||||||
pVGAModeInfo->pEnhTableEntry++;
|
pVGAModeInfo->pEnhTableEntry++;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ulRefreshRate = (mode->Clock * 1000) / (mode->HTotal * mode->VTotal);
|
||||||
|
|
||||||
|
while (pVGAModeInfo->pEnhTableEntry->ulRefreshRate < ulRefreshRate)
|
||||||
|
{
|
||||||
|
pVGAModeInfo->pEnhTableEntry++;
|
||||||
|
if ((pVGAModeInfo->pEnhTableEntry->ulRefreshRate > ulRefreshRate) ||
|
||||||
|
(pVGAModeInfo->pEnhTableEntry->ulRefreshRate == 0xFF))
|
||||||
|
{
|
||||||
|
pVGAModeInfo->pEnhTableEntry--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Update mode CRTC info */
|
/* Update mode CRTC info */
|
||||||
ulHBorder = (pVGAModeInfo->pEnhTableEntry->Flags & HBorder) ? 8:0;
|
ulHBorder = (pVGAModeInfo->pEnhTableEntry->Flags & HBorder) ? 8:0;
|
||||||
@ -643,7 +635,7 @@ Bool bGetAST1000VGAModeInfo(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_
|
|||||||
return (TRUE);
|
return (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void vSetStdReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static void vSetStdReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
PVBIOS_STDTABLE_STRUCT pStdModePtr;
|
PVBIOS_STDTABLE_STRUCT pStdModePtr;
|
||||||
@ -700,7 +692,7 @@ void vSetStdReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAMod
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
vSetCRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
vSetCRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
ASTRecPtr pAST;
|
ASTRecPtr pAST;
|
||||||
@ -775,7 +767,7 @@ vSetCRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInf
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vSetOffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static void vSetOffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
ASTRecPtr pAST;
|
ASTRecPtr pAST;
|
||||||
USHORT usOffset;
|
USHORT usOffset;
|
||||||
@ -789,7 +781,7 @@ void vSetOffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGA
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vSetDCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static void vSetDCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
||||||
PVBIOS_DCLK_INFO pDCLKPtr;
|
PVBIOS_DCLK_INFO pDCLKPtr;
|
||||||
@ -810,7 +802,7 @@ void vSetDCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAMo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void vSetExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static void vSetExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
ASTRecPtr pAST;
|
ASTRecPtr pAST;
|
||||||
@ -868,7 +860,7 @@ void vSetExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAMod
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vSetSyncReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static void vSetSyncReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
||||||
ASTRecPtr pAST;
|
ASTRecPtr pAST;
|
||||||
@ -883,7 +875,7 @@ void vSetSyncReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAMo
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool bSetDACReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static Bool bSetDACReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
PVBIOS_DAC_INFO pDACPtr;
|
PVBIOS_DAC_INFO pDACPtr;
|
||||||
ASTRecPtr pAST;
|
ASTRecPtr pAST;
|
||||||
@ -917,7 +909,7 @@ Bool bSetDACReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAMod
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG AST1180DCLKTable [] = {
|
static ULONG AST1180DCLKTable [] = {
|
||||||
0x0008676b, /* 00: VCLK25_175 */
|
0x0008676b, /* 00: VCLK25_175 */
|
||||||
0x00086342, /* 01: VCLK28_322 */
|
0x00086342, /* 01: VCLK28_322 */
|
||||||
0x00086568, /* 02: VCLK31_5 */
|
0x00086568, /* 02: VCLK31_5 */
|
||||||
@ -941,7 +933,7 @@ ULONG AST1180DCLKTable [] = {
|
|||||||
0x00040769, /* 14: VCLK148_5 */
|
0x00040769, /* 14: VCLK148_5 */
|
||||||
};
|
};
|
||||||
|
|
||||||
BOOL bSetAST1180CRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static BOOL bSetAST1180CRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
ASTRecPtr pAST = ASTPTR(pScrn);
|
ASTRecPtr pAST = ASTPTR(pScrn);
|
||||||
|
|
||||||
@ -993,7 +985,7 @@ BOOL bSetAST1180CRTCReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INF
|
|||||||
|
|
||||||
} /* bSetAST1180CRTCReg */
|
} /* bSetAST1180CRTCReg */
|
||||||
|
|
||||||
BOOL bSetAST1180OffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static BOOL bSetAST1180OffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
ASTRecPtr pAST = ASTPTR(pScrn);
|
ASTRecPtr pAST = ASTPTR(pScrn);
|
||||||
ULONG ulOffset, ulTermalCount;
|
ULONG ulOffset, ulTermalCount;
|
||||||
@ -1008,7 +1000,7 @@ BOOL bSetAST1180OffsetReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_I
|
|||||||
|
|
||||||
} /* bSetAST1180OffsetReg */
|
} /* bSetAST1180OffsetReg */
|
||||||
|
|
||||||
BOOL bSetAST1180DCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static BOOL bSetAST1180DCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
||||||
ASTRecPtr pAST = ASTPTR(pScrn);
|
ASTRecPtr pAST = ASTPTR(pScrn);
|
||||||
@ -1023,7 +1015,7 @@ BOOL bSetAST1180DCLKReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INF
|
|||||||
return (TRUE);
|
return (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL bSetAST1180ExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static BOOL bSetAST1180ExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
PVBIOS_ENHTABLE_STRUCT pEnhModePtr;
|
||||||
ASTRecPtr pAST = ASTPTR(pScrn);
|
ASTRecPtr pAST = ASTPTR(pScrn);
|
||||||
@ -1076,7 +1068,7 @@ BOOL bSetAST1180ExtReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO
|
|||||||
#define I2C_BASE_AST1180 0x80fcb000
|
#define I2C_BASE_AST1180 0x80fcb000
|
||||||
#define I2C_DEVICEADDR_AST1180 0x0EC /* slave addr */
|
#define I2C_DEVICEADDR_AST1180 0x0EC /* slave addr */
|
||||||
|
|
||||||
void SetChrontelReg(ASTRecPtr pAST, UCHAR jChannel, UCHAR jIndex, UCHAR jData )
|
static void SetChrontelReg(ASTRecPtr pAST, UCHAR jChannel, UCHAR jIndex, UCHAR jData )
|
||||||
{
|
{
|
||||||
ULONG ulData, ulI2CAddr, ulI2CPortBase;
|
ULONG ulData, ulI2CAddr, ulI2CPortBase;
|
||||||
ULONG retry;
|
ULONG retry;
|
||||||
@ -1132,7 +1124,7 @@ Exit_SetChrontelReg:
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
UCHAR GetChrontelReg(ASTRecPtr pAST, UCHAR jChannel, UCHAR jIndex)
|
static UCHAR GetChrontelReg(ASTRecPtr pAST, UCHAR jChannel, UCHAR jIndex)
|
||||||
{
|
{
|
||||||
ULONG ulData, ulI2CAddr, ulI2CPortBase;
|
ULONG ulData, ulI2CAddr, ulI2CPortBase;
|
||||||
UCHAR jData;
|
UCHAR jData;
|
||||||
@ -1191,7 +1183,7 @@ UCHAR GetChrontelReg(ASTRecPtr pAST, UCHAR jChannel, UCHAR jIndex)
|
|||||||
return (jData);
|
return (jData);
|
||||||
}
|
}
|
||||||
|
|
||||||
void vInitChontelReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
static void vInitChrontelReg(ScrnInfoPtr pScrn, DisplayModePtr mode, PVBIOS_MODE_INFO pVGAModeInfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
PVBIOS_ENHTABLE_STRUCT pEnhModePtr = pVGAModeInfo->pEnhTableEntry;
|
PVBIOS_ENHTABLE_STRUCT pEnhModePtr = pVGAModeInfo->pEnhTableEntry;
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
#define VCLK119 0x17
|
#define VCLK119 0x17
|
||||||
#define VCLK85_5 0x18
|
#define VCLK85_5 0x18
|
||||||
#define VCLK97_75 0x19
|
#define VCLK97_75 0x19
|
||||||
|
#define VCLK118_25 0x1A
|
||||||
|
|
||||||
/* Flags Definition */
|
/* Flags Definition */
|
||||||
#define Charx8Dot 0x00000001
|
#define Charx8Dot 0x00000001
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "xf86xv.h"
|
#include "xf86xv.h"
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
|
||||||
#include "xf86PciInfo.h"
|
|
||||||
#include "xf86Pci.h"
|
#include "xf86Pci.h"
|
||||||
|
|
||||||
/* framebuffer offscreen manager */
|
/* framebuffer offscreen manager */
|
||||||
@ -51,12 +50,6 @@
|
|||||||
/* Driver specific headers */
|
/* Driver specific headers */
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
|
||||||
/* Prototype type declaration*/
|
|
||||||
Bool ASTMapMem(ScrnInfoPtr pScrn);
|
|
||||||
Bool ASTUnmapMem(ScrnInfoPtr pScrn);
|
|
||||||
Bool ASTMapMMIO(ScrnInfoPtr pScrn);
|
|
||||||
void ASTUnmapMMIO(ScrnInfoPtr pScrn);
|
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
ASTMapMem(ScrnInfoPtr pScrn)
|
ASTMapMem(ScrnInfoPtr pScrn)
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user