no message
This commit is contained in:
510
glide3x/COPYING
510
glide3x/COPYING
@@ -1,255 +1,255 @@
|
|||||||
3DFX GLIDE Source Code General Public License
|
3DFX GLIDE Source Code General Public License
|
||||||
|
|
||||||
|
|
||||||
1. PREAMBLE
|
1. PREAMBLE
|
||||||
|
|
||||||
This license is for software that provides a 3D graphics application
|
This license is for software that provides a 3D graphics application
|
||||||
program interface (API).The license is intended to offer terms similar
|
program interface (API).The license is intended to offer terms similar
|
||||||
to some standard General Public Licenses designed to foster open
|
to some standard General Public Licenses designed to foster open
|
||||||
standards and unrestricted accessibility to source code. Some of these
|
standards and unrestricted accessibility to source code. Some of these
|
||||||
licenses require that, as a condition of the license of the software,
|
licenses require that, as a condition of the license of the software,
|
||||||
any derivative works (that is, new software which is a work containing
|
any derivative works (that is, new software which is a work containing
|
||||||
the original program or a portion of it) must be available for general
|
the original program or a portion of it) must be available for general
|
||||||
use, without restriction other than for a minor transfer fee, and that
|
use, without restriction other than for a minor transfer fee, and that
|
||||||
the source code for such derivative works must likewise be made
|
the source code for such derivative works must likewise be made
|
||||||
available. The only restriction is that such derivative works must be
|
available. The only restriction is that such derivative works must be
|
||||||
subject to the same General Public License terms as the original work.
|
subject to the same General Public License terms as the original work.
|
||||||
|
|
||||||
This 3dfx GLIDE Source Code General Public License differs from the
|
This 3dfx GLIDE Source Code General Public License differs from the
|
||||||
standard licenses of this type in that it does not require the entire
|
standard licenses of this type in that it does not require the entire
|
||||||
derivative work to be made available under the terms of this license
|
derivative work to be made available under the terms of this license
|
||||||
nor is the recipient required to make available the source code for
|
nor is the recipient required to make available the source code for
|
||||||
the entire derivative work. Rather, the license is limited to only the
|
the entire derivative work. Rather, the license is limited to only the
|
||||||
identifiable portion of the derivative work that is derived from the
|
identifiable portion of the derivative work that is derived from the
|
||||||
licensed software. The precise terms and conditions for copying,
|
licensed software. The precise terms and conditions for copying,
|
||||||
distribution and modification follow.
|
distribution and modification follow.
|
||||||
|
|
||||||
|
|
||||||
2. DEFINITIONS
|
2. DEFINITIONS
|
||||||
|
|
||||||
2.1 This License applies to any program (or other "work") which
|
2.1 This License applies to any program (or other "work") which
|
||||||
contains a notice placed by the copyright holder saying it may be
|
contains a notice placed by the copyright holder saying it may be
|
||||||
distributed under the terms of this 3dfx GLIDE Source Code General
|
distributed under the terms of this 3dfx GLIDE Source Code General
|
||||||
Public License.
|
Public License.
|
||||||
|
|
||||||
2.2 The term "Program" as used in this Agreement refers to 3DFX's
|
2.2 The term "Program" as used in this Agreement refers to 3DFX's
|
||||||
GLIDE source code and object code and any Derivative Work.
|
GLIDE source code and object code and any Derivative Work.
|
||||||
|
|
||||||
2.3 "Derivative Work" means, for the purpose of the License, that
|
2.3 "Derivative Work" means, for the purpose of the License, that
|
||||||
portion of any work that contains the Program or the identifiable
|
portion of any work that contains the Program or the identifiable
|
||||||
portion of a work that is derived from the Program, either verbatim or
|
portion of a work that is derived from the Program, either verbatim or
|
||||||
with modifications and/or translated into another language, and that
|
with modifications and/or translated into another language, and that
|
||||||
performs 3D graphics API operations. It does not include any other
|
performs 3D graphics API operations. It does not include any other
|
||||||
portions of a work.
|
portions of a work.
|
||||||
|
|
||||||
2.4 "Modifications of the Program" means any work, which includes a
|
2.4 "Modifications of the Program" means any work, which includes a
|
||||||
Derivative Work, and includes the whole of such work.
|
Derivative Work, and includes the whole of such work.
|
||||||
|
|
||||||
2.5 "License" means this 3dfx GLIDE Source Code General Public License.
|
2.5 "License" means this 3dfx GLIDE Source Code General Public License.
|
||||||
|
|
||||||
2.6 The "Source Code" for a work means the preferred form of the work
|
2.6 The "Source Code" for a work means the preferred form of the work
|
||||||
for making modifications to it. For an executable work, complete source
|
for making modifications to it. For an executable work, complete source
|
||||||
code means all the source code for all modules it contains, any
|
code means all the source code for all modules it contains, any
|
||||||
associated interface definition files, and the scripts used to control
|
associated interface definition files, and the scripts used to control
|
||||||
compilation and installation of the executable work.
|
compilation and installation of the executable work.
|
||||||
|
|
||||||
2.7 "3dfx" means 3dfx Interactive, Inc.
|
2.7 "3dfx" means 3dfx Interactive, Inc.
|
||||||
|
|
||||||
|
|
||||||
3. LICENSED ACTIVITIES
|
3. LICENSED ACTIVITIES
|
||||||
|
|
||||||
3.1 COPYING - You may copy and distribute verbatim copies of the
|
3.1 COPYING - You may copy and distribute verbatim copies of the
|
||||||
Program's Source Code as you receive it, in any medium, subject to the
|
Program's Source Code as you receive it, in any medium, subject to the
|
||||||
provision of section 3.3 and provided also that:
|
provision of section 3.3 and provided also that:
|
||||||
|
|
||||||
(a) you conspicuously and appropriately publish on each copy
|
(a) you conspicuously and appropriately publish on each copy
|
||||||
an appropriate copyright notice (3dfx Interactive, Inc. 1999), a notice
|
an appropriate copyright notice (3dfx Interactive, Inc. 1999), a notice
|
||||||
that recipients who wish to copy, distribute or modify the Program can
|
that recipients who wish to copy, distribute or modify the Program can
|
||||||
only do so subject to this License, and a disclaimer of warranty as
|
only do so subject to this License, and a disclaimer of warranty as
|
||||||
set forth in section 5;
|
set forth in section 5;
|
||||||
|
|
||||||
(b) keep intact all the notices that refer to this License and
|
(b) keep intact all the notices that refer to this License and
|
||||||
to the absence of any warranty; and
|
to the absence of any warranty; and
|
||||||
|
|
||||||
(c) do not make any use of the GLIDE trademark without the prior
|
(c) do not make any use of the GLIDE trademark without the prior
|
||||||
written permission of 3dfx, and
|
written permission of 3dfx, and
|
||||||
|
|
||||||
(d) give all recipients of the Program a copy of this License
|
(d) give all recipients of the Program a copy of this License
|
||||||
along with the Program or instructions on how to easily receive a copy
|
along with the Program or instructions on how to easily receive a copy
|
||||||
of this License.
|
of this License.
|
||||||
|
|
||||||
|
|
||||||
3.2 MODIFICATION OF THE PROGRAM/DERIVATIVE WORKS - You may modify your
|
3.2 MODIFICATION OF THE PROGRAM/DERIVATIVE WORKS - You may modify your
|
||||||
copy or copies of the Program or any portion of it, and copy and
|
copy or copies of the Program or any portion of it, and copy and
|
||||||
distribute such modifications subject to the provisions of section 3.3
|
distribute such modifications subject to the provisions of section 3.3
|
||||||
and provided that you also meet all of the following conditions:
|
and provided that you also meet all of the following conditions:
|
||||||
|
|
||||||
(a) you conspicuously and appropriately publish on each copy
|
(a) you conspicuously and appropriately publish on each copy
|
||||||
of a Derivative Work an appropriate copyright notice, a notice that
|
of a Derivative Work an appropriate copyright notice, a notice that
|
||||||
recipients who wish to copy, distribute or modify the Derivative Work
|
recipients who wish to copy, distribute or modify the Derivative Work
|
||||||
can only do so subject to this License, and a disclaimer of warranty
|
can only do so subject to this License, and a disclaimer of warranty
|
||||||
as set forth in section 5;
|
as set forth in section 5;
|
||||||
|
|
||||||
(b) keep intact all the notices that refer to this License and
|
(b) keep intact all the notices that refer to this License and
|
||||||
to the absence of any warranty; and
|
to the absence of any warranty; and
|
||||||
|
|
||||||
(c) give all recipients of the Derivative Work a copy of this
|
(c) give all recipients of the Derivative Work a copy of this
|
||||||
License along with the Derivative Work or instructions on how to easily
|
License along with the Derivative Work or instructions on how to easily
|
||||||
receive a copy of this License.
|
receive a copy of this License.
|
||||||
|
|
||||||
(d) You must cause the modified files of the Derivative Work
|
(d) You must cause the modified files of the Derivative Work
|
||||||
to carry prominent notices stating that you changed the files and the
|
to carry prominent notices stating that you changed the files and the
|
||||||
date of any change.
|
date of any change.
|
||||||
|
|
||||||
(e) You must cause any Derivative Work that you distribute or
|
(e) You must cause any Derivative Work that you distribute or
|
||||||
publish to be licensed at no charge to all third parties under the
|
publish to be licensed at no charge to all third parties under the
|
||||||
terms of this License.
|
terms of this License.
|
||||||
|
|
||||||
(f) You do not make any use of the GLIDE trademark without the
|
(f) You do not make any use of the GLIDE trademark without the
|
||||||
prior written permission of 3dfx.
|
prior written permission of 3dfx.
|
||||||
|
|
||||||
(g) If the Derivative Work normally reads commands
|
(g) If the Derivative Work normally reads commands
|
||||||
interactively when run, you must cause it, when started running for
|
interactively when run, you must cause it, when started running for
|
||||||
such interactive use, to print or display an announcement as follows:
|
such interactive use, to print or display an announcement as follows:
|
||||||
|
|
||||||
"COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED THIS
|
"COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED THIS
|
||||||
SOFTWARE IS FREE AND PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
|
SOFTWARE IS FREE AND PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
|
||||||
EITHER EXPRESSED OR IMPLIED. THERE IS NO RIGHT TO USE THE GLIDE
|
EITHER EXPRESSED OR IMPLIED. THERE IS NO RIGHT TO USE THE GLIDE
|
||||||
TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX INTERACTIVE,
|
TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX INTERACTIVE,
|
||||||
INC. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A FULL TEXT OF THE
|
INC. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A FULL TEXT OF THE
|
||||||
DISTRIBUTION AND NON-WARRANTY PROVISIONS (REQUEST COPY FROM
|
DISTRIBUTION AND NON-WARRANTY PROVISIONS (REQUEST COPY FROM
|
||||||
INFO@3DFX.COM)."
|
INFO@3DFX.COM)."
|
||||||
|
|
||||||
(h) The requirements of this section 3.2 do not apply to the
|
(h) The requirements of this section 3.2 do not apply to the
|
||||||
modified work as a whole but only to the Derivative Work. It is not
|
modified work as a whole but only to the Derivative Work. It is not
|
||||||
the intent of this License to claim rights or contest your rights to
|
the intent of this License to claim rights or contest your rights to
|
||||||
work written entirely by you; rather, the intent is to exercise the
|
work written entirely by you; rather, the intent is to exercise the
|
||||||
right to control the distribution of Derivative Works.
|
right to control the distribution of Derivative Works.
|
||||||
|
|
||||||
|
|
||||||
3.3 DISTRIBUTION
|
3.3 DISTRIBUTION
|
||||||
|
|
||||||
(a) All copies of the Program or Derivative Works which are
|
(a) All copies of the Program or Derivative Works which are
|
||||||
distributed must include in the file headers the following language
|
distributed must include in the file headers the following language
|
||||||
verbatim:
|
verbatim:
|
||||||
|
|
||||||
"THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED
|
"THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED
|
||||||
ONLY PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO
|
ONLY PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO
|
||||||
RIGHT TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF
|
RIGHT TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF
|
||||||
3DFX INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM
|
3DFX INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM
|
||||||
THE DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC (info@3dfx.com).
|
THE DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC (info@3dfx.com).
|
||||||
THIS PROGRAM. IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
THIS PROGRAM. IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||||
EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
||||||
FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
||||||
|
|
||||||
USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
||||||
RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS
|
RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS
|
||||||
IN TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
IN TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
||||||
AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
||||||
SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
||||||
THE UNITED STATES.
|
THE UNITED STATES.
|
||||||
|
|
||||||
COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED"
|
COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED"
|
||||||
|
|
||||||
(b) You may distribute the Program or a Derivative Work in
|
(b) You may distribute the Program or a Derivative Work in
|
||||||
object code or executable form under the terms of Sections 3.1 and 3.2
|
object code or executable form under the terms of Sections 3.1 and 3.2
|
||||||
provided that you also do one of the following:
|
provided that you also do one of the following:
|
||||||
|
|
||||||
(1) Accompany it with the complete corresponding
|
(1) Accompany it with the complete corresponding
|
||||||
machine-readable source code, which must be distributed under the
|
machine-readable source code, which must be distributed under the
|
||||||
terms of Sections 3.1 and 3.2; or,
|
terms of Sections 3.1 and 3.2; or,
|
||||||
|
|
||||||
(2) Accompany it with a written offer, valid for at
|
(2) Accompany it with a written offer, valid for at
|
||||||
least three years, to give any third party, for a charge no more than
|
least three years, to give any third party, for a charge no more than
|
||||||
your cost of physically performing source distribution, a complete
|
your cost of physically performing source distribution, a complete
|
||||||
machine-readable copy of the corresponding source code, to be
|
machine-readable copy of the corresponding source code, to be
|
||||||
distributed under the terms of Sections 3.1 and 3.2 on a medium
|
distributed under the terms of Sections 3.1 and 3.2 on a medium
|
||||||
customarily used for software interchange; or,
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
(3) Accompany it with the information you received as
|
(3) Accompany it with the information you received as
|
||||||
to the offer to distribute corresponding source code. (This alternative
|
to the offer to distribute corresponding source code. (This alternative
|
||||||
is allowed only for noncommercial distribution and only if you received
|
is allowed only for noncommercial distribution and only if you received
|
||||||
the program in object code or executable form with such an offer, in
|
the program in object code or executable form with such an offer, in
|
||||||
accord with Subsection 3.3(b)(2) above.)
|
accord with Subsection 3.3(b)(2) above.)
|
||||||
|
|
||||||
(c) The source code distributed need not include anything
|
(c) The source code distributed need not include anything
|
||||||
that is normally distributed (in either source or binary form) with
|
that is normally distributed (in either source or binary form) with
|
||||||
the major components (compiler, kernel, and so on) of the operating
|
the major components (compiler, kernel, and so on) of the operating
|
||||||
system on which the executable runs, unless that component itself
|
system on which the executable runs, unless that component itself
|
||||||
accompanies the executable code.
|
accompanies the executable code.
|
||||||
|
|
||||||
(d) If distribution of executable code or object code is made
|
(d) If distribution of executable code or object code is made
|
||||||
by offering access to copy from a designated place, then offering
|
by offering access to copy from a designated place, then offering
|
||||||
equivalent access to copy the source code from the same place counts
|
equivalent access to copy the source code from the same place counts
|
||||||
as distribution of the source code, even though third parties are not
|
as distribution of the source code, even though third parties are not
|
||||||
compelled to copy the source along with the object code.
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
(e) Each time you redistribute the Program or any Derivative
|
(e) Each time you redistribute the Program or any Derivative
|
||||||
Work, the recipient automatically receives a license from 3dfx and
|
Work, the recipient automatically receives a license from 3dfx and
|
||||||
successor licensors to copy, distribute or modify the Program and
|
successor licensors to copy, distribute or modify the Program and
|
||||||
Derivative Works subject to the terms and conditions of the License.
|
Derivative Works subject to the terms and conditions of the License.
|
||||||
You may not impose any further restrictions on the recipients'
|
You may not impose any further restrictions on the recipients'
|
||||||
exercise of the rights granted herein. You are not responsible for
|
exercise of the rights granted herein. You are not responsible for
|
||||||
enforcing compliance by third parties to this License.
|
enforcing compliance by third parties to this License.
|
||||||
|
|
||||||
(f) You may not make any use of the GLIDE trademark without
|
(f) You may not make any use of the GLIDE trademark without
|
||||||
the prior written permission of 3dfx.
|
the prior written permission of 3dfx.
|
||||||
|
|
||||||
(g) You may not copy, modify, sublicense, or distribute the
|
(g) You may not copy, modify, sublicense, or distribute the
|
||||||
Program or any Derivative Works except as expressly provided under
|
Program or any Derivative Works except as expressly provided under
|
||||||
this License. Any attempt otherwise to copy, modify, sublicense or
|
this License. Any attempt otherwise to copy, modify, sublicense or
|
||||||
distribute the Program or any Derivative Works is void, and will
|
distribute the Program or any Derivative Works is void, and will
|
||||||
automatically terminate your rights under this License. However,
|
automatically terminate your rights under this License. However,
|
||||||
parties who have received copies, or rights, from you under this
|
parties who have received copies, or rights, from you under this
|
||||||
License will not have their licenses terminated so long as such
|
License will not have their licenses terminated so long as such
|
||||||
parties remain in full compliance.
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
|
||||||
4. MISCELLANEOUS
|
4. MISCELLANEOUS
|
||||||
|
|
||||||
4.1 Acceptance of this License is voluntary. By using, modifying or
|
4.1 Acceptance of this License is voluntary. By using, modifying or
|
||||||
distributing the Program or any Derivative Work, you indicate your
|
distributing the Program or any Derivative Work, you indicate your
|
||||||
acceptance of this License to do so, and all its terms and conditions
|
acceptance of this License to do so, and all its terms and conditions
|
||||||
for copying, distributing or modifying the Program or works based on
|
for copying, distributing or modifying the Program or works based on
|
||||||
it. Nothing else grants you permission to modify or distribute the
|
it. Nothing else grants you permission to modify or distribute the
|
||||||
Program or Derivative Works and doing so without acceptance of this
|
Program or Derivative Works and doing so without acceptance of this
|
||||||
License is in violation of the U.S. and international copyright laws.
|
License is in violation of the U.S. and international copyright laws.
|
||||||
|
|
||||||
4.2 If the distribution and/or use of the Program or Derivative Works
|
4.2 If the distribution and/or use of the Program or Derivative Works
|
||||||
is restricted in certain countries either by patents or by copyrighted
|
is restricted in certain countries either by patents or by copyrighted
|
||||||
interfaces, the original copyright holder who places the Program under
|
interfaces, the original copyright holder who places the Program under
|
||||||
this License may add an explicit geographical distribution limitation
|
this License may add an explicit geographical distribution limitation
|
||||||
excluding those countries, so that distribution is permitted only in
|
excluding those countries, so that distribution is permitted only in
|
||||||
or among countries not thus excluded. In such case, this License
|
or among countries not thus excluded. In such case, this License
|
||||||
incorporates the limitation as if written in the body of this License.
|
incorporates the limitation as if written in the body of this License.
|
||||||
|
|
||||||
4.3 This License is to be construed according to the laws of the
|
4.3 This License is to be construed according to the laws of the
|
||||||
State of California and you consent to personal jurisdiction in the
|
State of California and you consent to personal jurisdiction in the
|
||||||
State of California in the event it is necessary to enforce the
|
State of California in the event it is necessary to enforce the
|
||||||
provisions of this License.
|
provisions of this License.
|
||||||
|
|
||||||
|
|
||||||
5. NO WARRANTIES
|
5. NO WARRANTIES
|
||||||
|
|
||||||
5.1 TO THE EXTENT PERMITTED BY APPLICABLE LAW, THERE IS NO WARRANTY
|
5.1 TO THE EXTENT PERMITTED BY APPLICABLE LAW, THERE IS NO WARRANTY
|
||||||
FOR THE PROGRAM. OR DERIVATIVE WORKS THE COPYRIGHT HOLDERS AND/OR
|
FOR THE PROGRAM. OR DERIVATIVE WORKS THE COPYRIGHT HOLDERS AND/OR
|
||||||
OTHER PARTIES PROVIDE THE PROGRAM AND ANY DERIVATIVE WORKS"AS IS"
|
OTHER PARTIES PROVIDE THE PROGRAM AND ANY DERIVATIVE WORKS"AS IS"
|
||||||
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
|
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
|
||||||
AND PERFORMANCE OF THE PROGRAM AND ANY DERIVATIVE WORK IS WITH YOU.
|
AND PERFORMANCE OF THE PROGRAM AND ANY DERIVATIVE WORK IS WITH YOU.
|
||||||
SHOULD THE PROGRAM OR ANY DERIVATIVE WORK PROVE DEFECTIVE, YOU ASSUME
|
SHOULD THE PROGRAM OR ANY DERIVATIVE WORK PROVE DEFECTIVE, YOU ASSUME
|
||||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
5.2 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL 3DFX
|
5.2 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL 3DFX
|
||||||
INTERACTIVE, INC., OR ANY OTHER COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
INTERACTIVE, INC., OR ANY OTHER COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
||||||
WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM OR DERIVATIVE WORKS AS
|
WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM OR DERIVATIVE WORKS AS
|
||||||
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
||||||
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
|
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
|
||||||
INABILITY TO USE THE PROGRAM OR DERIVATIVE WORKS (INCLUDING BUT NOT
|
INABILITY TO USE THE PROGRAM OR DERIVATIVE WORKS (INCLUDING BUT NOT
|
||||||
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
|
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
|
||||||
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM OR
|
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM OR
|
||||||
DERIVATIVE WORKS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
DERIVATIVE WORKS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
||||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
DAMAGES.
|
DAMAGES.
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,18 @@
|
|||||||
# Copyright (c) 2003 - Borca Daniel
|
# Copyright (c) 2003 - Borca Daniel
|
||||||
# Email : dborca@yahoo.com
|
# Email : dborca@yahoo.com
|
||||||
# Web : http://www.geocities.com/dborca
|
# Web : http://www.geocities.com/dborca
|
||||||
#
|
#
|
||||||
# $Header$
|
# $Header$
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.1.2.5 2003/06/21 12:43:04 dborca
|
||||||
|
# h3cinit cleanup
|
||||||
|
#
|
||||||
# Revision 1.1.2.4 2003/06/13 07:22:57 dborca
|
# Revision 1.1.2.4 2003/06/13 07:22:57 dborca
|
||||||
# more fixes to NASM sources
|
# more fixes to NASM sources
|
||||||
#
|
#
|
||||||
# Revision 1.1.2.3 2003/06/07 09:53:24 dborca
|
# Revision 1.1.2.3 2003/06/07 09:53:24 dborca
|
||||||
# initial checkin for NASM sources
|
# initial checkin for NASM sources
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -102,7 +105,8 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# other
|
# other
|
||||||
#CDEFS += -DGLIDE_LIB -DGLIDE_PLUG
|
CDEFS += -DGLIDE_PLUG -DGLIDE_SPLASH
|
||||||
|
#CDEFS += -DGLIDE_LIB
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# C flags
|
# C flags
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#define MANVERSION 1
|
#define MANVERSION 1
|
||||||
#define MANREVISION 1
|
#define MANREVISION 1
|
||||||
#define BUILD_NUMBER 1
|
#define BUILD_NUMBER 1
|
||||||
|
|
||||||
#define VERSIONSTR "Voodoo2 InitCode " "$Revision$" "\0"
|
#define VERSIONSTR "Voodoo2 InitCode " "$Revision$" "\0"
|
||||||
|
|||||||
@@ -1,255 +1,255 @@
|
|||||||
3DFX GLIDE Source Code General Public License
|
3DFX GLIDE Source Code General Public License
|
||||||
|
|
||||||
|
|
||||||
1. PREAMBLE
|
1. PREAMBLE
|
||||||
|
|
||||||
This license is for software that provides a 3D graphics application
|
This license is for software that provides a 3D graphics application
|
||||||
program interface (API).The license is intended to offer terms similar
|
program interface (API).The license is intended to offer terms similar
|
||||||
to some standard General Public Licenses designed to foster open
|
to some standard General Public Licenses designed to foster open
|
||||||
standards and unrestricted accessibility to source code. Some of these
|
standards and unrestricted accessibility to source code. Some of these
|
||||||
licenses require that, as a condition of the license of the software,
|
licenses require that, as a condition of the license of the software,
|
||||||
any derivative works (that is, new software which is a work containing
|
any derivative works (that is, new software which is a work containing
|
||||||
the original program or a portion of it) must be available for general
|
the original program or a portion of it) must be available for general
|
||||||
use, without restriction other than for a minor transfer fee, and that
|
use, without restriction other than for a minor transfer fee, and that
|
||||||
the source code for such derivative works must likewise be made
|
the source code for such derivative works must likewise be made
|
||||||
available. The only restriction is that such derivative works must be
|
available. The only restriction is that such derivative works must be
|
||||||
subject to the same General Public License terms as the original work.
|
subject to the same General Public License terms as the original work.
|
||||||
|
|
||||||
This 3dfx GLIDE Source Code General Public License differs from the
|
This 3dfx GLIDE Source Code General Public License differs from the
|
||||||
standard licenses of this type in that it does not require the entire
|
standard licenses of this type in that it does not require the entire
|
||||||
derivative work to be made available under the terms of this license
|
derivative work to be made available under the terms of this license
|
||||||
nor is the recipient required to make available the source code for
|
nor is the recipient required to make available the source code for
|
||||||
the entire derivative work. Rather, the license is limited to only the
|
the entire derivative work. Rather, the license is limited to only the
|
||||||
identifiable portion of the derivative work that is derived from the
|
identifiable portion of the derivative work that is derived from the
|
||||||
licensed software. The precise terms and conditions for copying,
|
licensed software. The precise terms and conditions for copying,
|
||||||
distribution and modification follow.
|
distribution and modification follow.
|
||||||
|
|
||||||
|
|
||||||
2. DEFINITIONS
|
2. DEFINITIONS
|
||||||
|
|
||||||
2.1 This License applies to any program (or other "work") which
|
2.1 This License applies to any program (or other "work") which
|
||||||
contains a notice placed by the copyright holder saying it may be
|
contains a notice placed by the copyright holder saying it may be
|
||||||
distributed under the terms of this 3dfx GLIDE Source Code General
|
distributed under the terms of this 3dfx GLIDE Source Code General
|
||||||
Public License.
|
Public License.
|
||||||
|
|
||||||
2.2 The term "Program" as used in this Agreement refers to 3DFX's
|
2.2 The term "Program" as used in this Agreement refers to 3DFX's
|
||||||
GLIDE source code and object code and any Derivative Work.
|
GLIDE source code and object code and any Derivative Work.
|
||||||
|
|
||||||
2.3 "Derivative Work" means, for the purpose of the License, that
|
2.3 "Derivative Work" means, for the purpose of the License, that
|
||||||
portion of any work that contains the Program or the identifiable
|
portion of any work that contains the Program or the identifiable
|
||||||
portion of a work that is derived from the Program, either verbatim or
|
portion of a work that is derived from the Program, either verbatim or
|
||||||
with modifications and/or translated into another language, and that
|
with modifications and/or translated into another language, and that
|
||||||
performs 3D graphics API operations. It does not include any other
|
performs 3D graphics API operations. It does not include any other
|
||||||
portions of a work.
|
portions of a work.
|
||||||
|
|
||||||
2.4 "Modifications of the Program" means any work, which includes a
|
2.4 "Modifications of the Program" means any work, which includes a
|
||||||
Derivative Work, and includes the whole of such work.
|
Derivative Work, and includes the whole of such work.
|
||||||
|
|
||||||
2.5 "License" means this 3dfx GLIDE Source Code General Public License.
|
2.5 "License" means this 3dfx GLIDE Source Code General Public License.
|
||||||
|
|
||||||
2.6 The "Source Code" for a work means the preferred form of the work
|
2.6 The "Source Code" for a work means the preferred form of the work
|
||||||
for making modifications to it. For an executable work, complete source
|
for making modifications to it. For an executable work, complete source
|
||||||
code means all the source code for all modules it contains, any
|
code means all the source code for all modules it contains, any
|
||||||
associated interface definition files, and the scripts used to control
|
associated interface definition files, and the scripts used to control
|
||||||
compilation and installation of the executable work.
|
compilation and installation of the executable work.
|
||||||
|
|
||||||
2.7 "3dfx" means 3dfx Interactive, Inc.
|
2.7 "3dfx" means 3dfx Interactive, Inc.
|
||||||
|
|
||||||
|
|
||||||
3. LICENSED ACTIVITIES
|
3. LICENSED ACTIVITIES
|
||||||
|
|
||||||
3.1 COPYING - You may copy and distribute verbatim copies of the
|
3.1 COPYING - You may copy and distribute verbatim copies of the
|
||||||
Program's Source Code as you receive it, in any medium, subject to the
|
Program's Source Code as you receive it, in any medium, subject to the
|
||||||
provision of section 3.3 and provided also that:
|
provision of section 3.3 and provided also that:
|
||||||
|
|
||||||
(a) you conspicuously and appropriately publish on each copy
|
(a) you conspicuously and appropriately publish on each copy
|
||||||
an appropriate copyright notice (3dfx Interactive, Inc. 1999), a notice
|
an appropriate copyright notice (3dfx Interactive, Inc. 1999), a notice
|
||||||
that recipients who wish to copy, distribute or modify the Program can
|
that recipients who wish to copy, distribute or modify the Program can
|
||||||
only do so subject to this License, and a disclaimer of warranty as
|
only do so subject to this License, and a disclaimer of warranty as
|
||||||
set forth in section 5;
|
set forth in section 5;
|
||||||
|
|
||||||
(b) keep intact all the notices that refer to this License and
|
(b) keep intact all the notices that refer to this License and
|
||||||
to the absence of any warranty; and
|
to the absence of any warranty; and
|
||||||
|
|
||||||
(c) do not make any use of the GLIDE trademark without the prior
|
(c) do not make any use of the GLIDE trademark without the prior
|
||||||
written permission of 3dfx, and
|
written permission of 3dfx, and
|
||||||
|
|
||||||
(d) give all recipients of the Program a copy of this License
|
(d) give all recipients of the Program a copy of this License
|
||||||
along with the Program or instructions on how to easily receive a copy
|
along with the Program or instructions on how to easily receive a copy
|
||||||
of this License.
|
of this License.
|
||||||
|
|
||||||
|
|
||||||
3.2 MODIFICATION OF THE PROGRAM/DERIVATIVE WORKS - You may modify your
|
3.2 MODIFICATION OF THE PROGRAM/DERIVATIVE WORKS - You may modify your
|
||||||
copy or copies of the Program or any portion of it, and copy and
|
copy or copies of the Program or any portion of it, and copy and
|
||||||
distribute such modifications subject to the provisions of section 3.3
|
distribute such modifications subject to the provisions of section 3.3
|
||||||
and provided that you also meet all of the following conditions:
|
and provided that you also meet all of the following conditions:
|
||||||
|
|
||||||
(a) you conspicuously and appropriately publish on each copy
|
(a) you conspicuously and appropriately publish on each copy
|
||||||
of a Derivative Work an appropriate copyright notice, a notice that
|
of a Derivative Work an appropriate copyright notice, a notice that
|
||||||
recipients who wish to copy, distribute or modify the Derivative Work
|
recipients who wish to copy, distribute or modify the Derivative Work
|
||||||
can only do so subject to this License, and a disclaimer of warranty
|
can only do so subject to this License, and a disclaimer of warranty
|
||||||
as set forth in section 5;
|
as set forth in section 5;
|
||||||
|
|
||||||
(b) keep intact all the notices that refer to this License and
|
(b) keep intact all the notices that refer to this License and
|
||||||
to the absence of any warranty; and
|
to the absence of any warranty; and
|
||||||
|
|
||||||
(c) give all recipients of the Derivative Work a copy of this
|
(c) give all recipients of the Derivative Work a copy of this
|
||||||
License along with the Derivative Work or instructions on how to easily
|
License along with the Derivative Work or instructions on how to easily
|
||||||
receive a copy of this License.
|
receive a copy of this License.
|
||||||
|
|
||||||
(d) You must cause the modified files of the Derivative Work
|
(d) You must cause the modified files of the Derivative Work
|
||||||
to carry prominent notices stating that you changed the files and the
|
to carry prominent notices stating that you changed the files and the
|
||||||
date of any change.
|
date of any change.
|
||||||
|
|
||||||
(e) You must cause any Derivative Work that you distribute or
|
(e) You must cause any Derivative Work that you distribute or
|
||||||
publish to be licensed at no charge to all third parties under the
|
publish to be licensed at no charge to all third parties under the
|
||||||
terms of this License.
|
terms of this License.
|
||||||
|
|
||||||
(f) You do not make any use of the GLIDE trademark without the
|
(f) You do not make any use of the GLIDE trademark without the
|
||||||
prior written permission of 3dfx.
|
prior written permission of 3dfx.
|
||||||
|
|
||||||
(g) If the Derivative Work normally reads commands
|
(g) If the Derivative Work normally reads commands
|
||||||
interactively when run, you must cause it, when started running for
|
interactively when run, you must cause it, when started running for
|
||||||
such interactive use, to print or display an announcement as follows:
|
such interactive use, to print or display an announcement as follows:
|
||||||
|
|
||||||
"COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED THIS
|
"COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED THIS
|
||||||
SOFTWARE IS FREE AND PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
|
SOFTWARE IS FREE AND PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
|
||||||
EITHER EXPRESSED OR IMPLIED. THERE IS NO RIGHT TO USE THE GLIDE
|
EITHER EXPRESSED OR IMPLIED. THERE IS NO RIGHT TO USE THE GLIDE
|
||||||
TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX INTERACTIVE,
|
TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX INTERACTIVE,
|
||||||
INC. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A FULL TEXT OF THE
|
INC. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A FULL TEXT OF THE
|
||||||
DISTRIBUTION AND NON-WARRANTY PROVISIONS (REQUEST COPY FROM
|
DISTRIBUTION AND NON-WARRANTY PROVISIONS (REQUEST COPY FROM
|
||||||
INFO@3DFX.COM)."
|
INFO@3DFX.COM)."
|
||||||
|
|
||||||
(h) The requirements of this section 3.2 do not apply to the
|
(h) The requirements of this section 3.2 do not apply to the
|
||||||
modified work as a whole but only to the Derivative Work. It is not
|
modified work as a whole but only to the Derivative Work. It is not
|
||||||
the intent of this License to claim rights or contest your rights to
|
the intent of this License to claim rights or contest your rights to
|
||||||
work written entirely by you; rather, the intent is to exercise the
|
work written entirely by you; rather, the intent is to exercise the
|
||||||
right to control the distribution of Derivative Works.
|
right to control the distribution of Derivative Works.
|
||||||
|
|
||||||
|
|
||||||
3.3 DISTRIBUTION
|
3.3 DISTRIBUTION
|
||||||
|
|
||||||
(a) All copies of the Program or Derivative Works which are
|
(a) All copies of the Program or Derivative Works which are
|
||||||
distributed must include in the file headers the following language
|
distributed must include in the file headers the following language
|
||||||
verbatim:
|
verbatim:
|
||||||
|
|
||||||
"THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED
|
"THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED
|
||||||
ONLY PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO
|
ONLY PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO
|
||||||
RIGHT TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF
|
RIGHT TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF
|
||||||
3DFX INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM
|
3DFX INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM
|
||||||
THE DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC (info@3dfx.com).
|
THE DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC (info@3dfx.com).
|
||||||
THIS PROGRAM. IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
THIS PROGRAM. IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||||
EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
||||||
FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
||||||
|
|
||||||
USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
||||||
RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS
|
RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS
|
||||||
IN TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
IN TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
||||||
AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
||||||
SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
||||||
THE UNITED STATES.
|
THE UNITED STATES.
|
||||||
|
|
||||||
COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED"
|
COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED"
|
||||||
|
|
||||||
(b) You may distribute the Program or a Derivative Work in
|
(b) You may distribute the Program or a Derivative Work in
|
||||||
object code or executable form under the terms of Sections 3.1 and 3.2
|
object code or executable form under the terms of Sections 3.1 and 3.2
|
||||||
provided that you also do one of the following:
|
provided that you also do one of the following:
|
||||||
|
|
||||||
(1) Accompany it with the complete corresponding
|
(1) Accompany it with the complete corresponding
|
||||||
machine-readable source code, which must be distributed under the
|
machine-readable source code, which must be distributed under the
|
||||||
terms of Sections 3.1 and 3.2; or,
|
terms of Sections 3.1 and 3.2; or,
|
||||||
|
|
||||||
(2) Accompany it with a written offer, valid for at
|
(2) Accompany it with a written offer, valid for at
|
||||||
least three years, to give any third party, for a charge no more than
|
least three years, to give any third party, for a charge no more than
|
||||||
your cost of physically performing source distribution, a complete
|
your cost of physically performing source distribution, a complete
|
||||||
machine-readable copy of the corresponding source code, to be
|
machine-readable copy of the corresponding source code, to be
|
||||||
distributed under the terms of Sections 3.1 and 3.2 on a medium
|
distributed under the terms of Sections 3.1 and 3.2 on a medium
|
||||||
customarily used for software interchange; or,
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
(3) Accompany it with the information you received as
|
(3) Accompany it with the information you received as
|
||||||
to the offer to distribute corresponding source code. (This alternative
|
to the offer to distribute corresponding source code. (This alternative
|
||||||
is allowed only for noncommercial distribution and only if you received
|
is allowed only for noncommercial distribution and only if you received
|
||||||
the program in object code or executable form with such an offer, in
|
the program in object code or executable form with such an offer, in
|
||||||
accord with Subsection 3.3(b)(2) above.)
|
accord with Subsection 3.3(b)(2) above.)
|
||||||
|
|
||||||
(c) The source code distributed need not include anything
|
(c) The source code distributed need not include anything
|
||||||
that is normally distributed (in either source or binary form) with
|
that is normally distributed (in either source or binary form) with
|
||||||
the major components (compiler, kernel, and so on) of the operating
|
the major components (compiler, kernel, and so on) of the operating
|
||||||
system on which the executable runs, unless that component itself
|
system on which the executable runs, unless that component itself
|
||||||
accompanies the executable code.
|
accompanies the executable code.
|
||||||
|
|
||||||
(d) If distribution of executable code or object code is made
|
(d) If distribution of executable code or object code is made
|
||||||
by offering access to copy from a designated place, then offering
|
by offering access to copy from a designated place, then offering
|
||||||
equivalent access to copy the source code from the same place counts
|
equivalent access to copy the source code from the same place counts
|
||||||
as distribution of the source code, even though third parties are not
|
as distribution of the source code, even though third parties are not
|
||||||
compelled to copy the source along with the object code.
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
(e) Each time you redistribute the Program or any Derivative
|
(e) Each time you redistribute the Program or any Derivative
|
||||||
Work, the recipient automatically receives a license from 3dfx and
|
Work, the recipient automatically receives a license from 3dfx and
|
||||||
successor licensors to copy, distribute or modify the Program and
|
successor licensors to copy, distribute or modify the Program and
|
||||||
Derivative Works subject to the terms and conditions of the License.
|
Derivative Works subject to the terms and conditions of the License.
|
||||||
You may not impose any further restrictions on the recipients'
|
You may not impose any further restrictions on the recipients'
|
||||||
exercise of the rights granted herein. You are not responsible for
|
exercise of the rights granted herein. You are not responsible for
|
||||||
enforcing compliance by third parties to this License.
|
enforcing compliance by third parties to this License.
|
||||||
|
|
||||||
(f) You may not make any use of the GLIDE trademark without
|
(f) You may not make any use of the GLIDE trademark without
|
||||||
the prior written permission of 3dfx.
|
the prior written permission of 3dfx.
|
||||||
|
|
||||||
(g) You may not copy, modify, sublicense, or distribute the
|
(g) You may not copy, modify, sublicense, or distribute the
|
||||||
Program or any Derivative Works except as expressly provided under
|
Program or any Derivative Works except as expressly provided under
|
||||||
this License. Any attempt otherwise to copy, modify, sublicense or
|
this License. Any attempt otherwise to copy, modify, sublicense or
|
||||||
distribute the Program or any Derivative Works is void, and will
|
distribute the Program or any Derivative Works is void, and will
|
||||||
automatically terminate your rights under this License. However,
|
automatically terminate your rights under this License. However,
|
||||||
parties who have received copies, or rights, from you under this
|
parties who have received copies, or rights, from you under this
|
||||||
License will not have their licenses terminated so long as such
|
License will not have their licenses terminated so long as such
|
||||||
parties remain in full compliance.
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
|
||||||
4. MISCELLANEOUS
|
4. MISCELLANEOUS
|
||||||
|
|
||||||
4.1 Acceptance of this License is voluntary. By using, modifying or
|
4.1 Acceptance of this License is voluntary. By using, modifying or
|
||||||
distributing the Program or any Derivative Work, you indicate your
|
distributing the Program or any Derivative Work, you indicate your
|
||||||
acceptance of this License to do so, and all its terms and conditions
|
acceptance of this License to do so, and all its terms and conditions
|
||||||
for copying, distributing or modifying the Program or works based on
|
for copying, distributing or modifying the Program or works based on
|
||||||
it. Nothing else grants you permission to modify or distribute the
|
it. Nothing else grants you permission to modify or distribute the
|
||||||
Program or Derivative Works and doing so without acceptance of this
|
Program or Derivative Works and doing so without acceptance of this
|
||||||
License is in violation of the U.S. and international copyright laws.
|
License is in violation of the U.S. and international copyright laws.
|
||||||
|
|
||||||
4.2 If the distribution and/or use of the Program or Derivative Works
|
4.2 If the distribution and/or use of the Program or Derivative Works
|
||||||
is restricted in certain countries either by patents or by copyrighted
|
is restricted in certain countries either by patents or by copyrighted
|
||||||
interfaces, the original copyright holder who places the Program under
|
interfaces, the original copyright holder who places the Program under
|
||||||
this License may add an explicit geographical distribution limitation
|
this License may add an explicit geographical distribution limitation
|
||||||
excluding those countries, so that distribution is permitted only in
|
excluding those countries, so that distribution is permitted only in
|
||||||
or among countries not thus excluded. In such case, this License
|
or among countries not thus excluded. In such case, this License
|
||||||
incorporates the limitation as if written in the body of this License.
|
incorporates the limitation as if written in the body of this License.
|
||||||
|
|
||||||
4.3 This License is to be construed according to the laws of the
|
4.3 This License is to be construed according to the laws of the
|
||||||
State of California and you consent to personal jurisdiction in the
|
State of California and you consent to personal jurisdiction in the
|
||||||
State of California in the event it is necessary to enforce the
|
State of California in the event it is necessary to enforce the
|
||||||
provisions of this License.
|
provisions of this License.
|
||||||
|
|
||||||
|
|
||||||
5. NO WARRANTIES
|
5. NO WARRANTIES
|
||||||
|
|
||||||
5.1 TO THE EXTENT PERMITTED BY APPLICABLE LAW, THERE IS NO WARRANTY
|
5.1 TO THE EXTENT PERMITTED BY APPLICABLE LAW, THERE IS NO WARRANTY
|
||||||
FOR THE PROGRAM. OR DERIVATIVE WORKS THE COPYRIGHT HOLDERS AND/OR
|
FOR THE PROGRAM. OR DERIVATIVE WORKS THE COPYRIGHT HOLDERS AND/OR
|
||||||
OTHER PARTIES PROVIDE THE PROGRAM AND ANY DERIVATIVE WORKS"AS IS"
|
OTHER PARTIES PROVIDE THE PROGRAM AND ANY DERIVATIVE WORKS"AS IS"
|
||||||
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
|
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
|
||||||
AND PERFORMANCE OF THE PROGRAM AND ANY DERIVATIVE WORK IS WITH YOU.
|
AND PERFORMANCE OF THE PROGRAM AND ANY DERIVATIVE WORK IS WITH YOU.
|
||||||
SHOULD THE PROGRAM OR ANY DERIVATIVE WORK PROVE DEFECTIVE, YOU ASSUME
|
SHOULD THE PROGRAM OR ANY DERIVATIVE WORK PROVE DEFECTIVE, YOU ASSUME
|
||||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
5.2 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL 3DFX
|
5.2 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL 3DFX
|
||||||
INTERACTIVE, INC., OR ANY OTHER COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
INTERACTIVE, INC., OR ANY OTHER COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
||||||
WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM OR DERIVATIVE WORKS AS
|
WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM OR DERIVATIVE WORKS AS
|
||||||
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
||||||
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
|
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
|
||||||
INABILITY TO USE THE PROGRAM OR DERIVATIVE WORKS (INCLUDING BUT NOT
|
INABILITY TO USE THE PROGRAM OR DERIVATIVE WORKS (INCLUDING BUT NOT
|
||||||
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
|
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
|
||||||
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM OR
|
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM OR
|
||||||
DERIVATIVE WORKS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
DERIVATIVE WORKS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
||||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
DAMAGES.
|
DAMAGES.
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,51 @@
|
|||||||
# DOS/DJGPP tests makefile v1.0 for Glide3
|
# DOS/DJGPP tests makefile v1.0 for Glide3
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002 - Borca Daniel
|
# Copyright (c) 2002 - Borca Daniel
|
||||||
# Email : dborca@yahoo.com
|
# Email : dborca@yahoo.com
|
||||||
# Web : http://www.geocities.com/dborca
|
# Web : http://www.geocities.com/dborca
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Available options:
|
# Available options:
|
||||||
#
|
#
|
||||||
# Environment variables:
|
# Environment variables:
|
||||||
# CPU optimize for the given processor.
|
# CPU optimize for the given processor.
|
||||||
# default = k6
|
# default = k6
|
||||||
# DXE=1 use DXE modules.
|
# DXE=1 use DXE modules.
|
||||||
# default = no
|
# default = no
|
||||||
#
|
#
|
||||||
# Targets:
|
# Targets:
|
||||||
# <file.exe> build a specific file
|
# <file.exe> build a specific file
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
.SUFFIXES: .c .o .exe
|
.SUFFIXES: .c .o .exe
|
||||||
.SECONDARY: tlib.o
|
.SECONDARY: tlib.o
|
||||||
|
|
||||||
FX_GLIDE_HW = h3
|
FX_GLIDE_HW = h3
|
||||||
TOP = ../../..
|
TOP = ../../..
|
||||||
CPU ?= k6
|
CPU ?= k6
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -O2 -ffast-math -mcpu=k6
|
CFLAGS = -Wall -O2 -ffast-math -mcpu=k6
|
||||||
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
||||||
CFLAGS += -I$(TOP)/swlibs/fxmisc
|
CFLAGS += -I$(TOP)/swlibs/fxmisc
|
||||||
CFLAGS += -D__DOS__ -DH3
|
CFLAGS += -D__DOS__ -DH3
|
||||||
CFLAGS += -D__DOS32__
|
CFLAGS += -D__DOS32__
|
||||||
|
|
||||||
LDFLAGS = -s -L$(TOP)/$(FX_GLIDE_HW)/lib
|
LDFLAGS = -s -L$(TOP)/$(FX_GLIDE_HW)/lib
|
||||||
|
|
||||||
ifdef DXE
|
ifdef DXE
|
||||||
LDLIBS = -lg3i
|
LDLIBS = -lg3i
|
||||||
else
|
else
|
||||||
LDLIBS = -lglid3
|
LDLIBS = -lglid3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -o $@ $(CFLAGS) -c $<
|
$(CC) -o $@ $(CFLAGS) -c $<
|
||||||
%.exe: tlib.o %.o
|
%.exe: tlib.o %.o
|
||||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(error Must specify <filename.exe> to build)
|
$(error Must specify <filename.exe> to build)
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
**
|
**
|
||||||
** $Header$
|
** $Header$
|
||||||
** $Log$
|
** $Log$
|
||||||
|
** Revision 1.7.4.11 2003/07/08 18:43:37 koolsmoky
|
||||||
|
** removed unused local variables
|
||||||
|
**
|
||||||
** Revision 1.7.4.10 2003/07/08 08:06:45 dborca
|
** Revision 1.7.4.10 2003/07/08 08:06:45 dborca
|
||||||
** updates to MMX/FPU specializations
|
** updates to MMX/FPU specializations
|
||||||
**
|
**
|
||||||
@@ -2128,7 +2131,7 @@ _grLfbWriteRegion(FxBool pixPipelineP,
|
|||||||
rv = FXFALSE;
|
rv = FXFALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef SET_LFB_STRAIGHT
|
#undef SET_LFB_STRAIGHT
|
||||||
done:
|
done:
|
||||||
GR_RETURN(rv);
|
GR_RETURN(rv);
|
||||||
#undef FN_NAME
|
#undef FN_NAME
|
||||||
|
|||||||
@@ -1,54 +1,57 @@
|
|||||||
# MinGW tests makefile for Glide3
|
# MinGW tests makefile for Glide3
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002 - Borca Daniel
|
# Copyright (c) 2002 - Borca Daniel
|
||||||
# Email : dborca@yahoo.com
|
# Email : dborca@yahoo.com
|
||||||
# Web : http://www.geocities.com/dborca
|
# Web : http://www.geocities.com/dborca
|
||||||
#
|
#
|
||||||
# $Header$
|
# $Header$
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.1.2.3 2003/07/01 11:13:34 dborca
|
||||||
|
# enabled NAPALM for tests
|
||||||
|
#
|
||||||
# Revision 1.1.2.2 2003/06/13 07:22:59 dborca
|
# Revision 1.1.2.2 2003/06/13 07:22:59 dborca
|
||||||
# more fixes to NASM sources
|
# more fixes to NASM sources
|
||||||
#
|
#
|
||||||
# Revision 1.1.2.1 2003/06/07 09:53:25 dborca
|
# Revision 1.1.2.1 2003/06/07 09:53:25 dborca
|
||||||
# initial checkin for NASM sources
|
# initial checkin for NASM sources
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Available options:
|
# Available options:
|
||||||
#
|
#
|
||||||
# Environment variables:
|
# Environment variables:
|
||||||
# CPU optimize for the given processor.
|
# CPU optimize for the given processor.
|
||||||
# default = k6
|
# default = k6
|
||||||
#
|
#
|
||||||
# Targets:
|
# Targets:
|
||||||
# <file.exe> build a specific file
|
# <file.exe> build a specific file
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
.SUFFIXES: .c .o .exe
|
.SUFFIXES: .c .o .exe
|
||||||
.SECONDARY: tlib.o
|
.SECONDARY: tlib.o
|
||||||
|
|
||||||
FX_GLIDE_HW = h5
|
FX_GLIDE_HW = h5
|
||||||
TOP = ../../..
|
TOP = ../../..
|
||||||
CPU ?= k6
|
CPU ?= k6
|
||||||
|
|
||||||
CC = mingw32-gcc
|
CC = mingw32-gcc
|
||||||
CFLAGS = -Wall -O2 -ffast-math -mcpu=$(CPU)
|
CFLAGS = -Wall -O2 -ffast-math -mcpu=$(CPU)
|
||||||
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
||||||
CFLAGS += -I$(TOP)/swlibs/fxmisc
|
CFLAGS += -I$(TOP)/swlibs/fxmisc
|
||||||
CFLAGS += -D__WIN32__ -DH3
|
CFLAGS += -D__WIN32__ -DH3
|
||||||
CFLAGS += -DFX_GLIDE_NAPALM=1
|
CFLAGS += -DFX_GLIDE_NAPALM=1
|
||||||
|
|
||||||
LDFLAGS = -s -L$(TOP)/$(FX_GLIDE_HW)/lib
|
LDFLAGS = -s -L$(TOP)/$(FX_GLIDE_HW)/lib
|
||||||
|
|
||||||
LDLIBS = -lgdi32 -lglide
|
LDLIBS = -lgdi32 -lglide
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -o $@ $(CFLAGS) -c $<
|
$(CC) -o $@ $(CFLAGS) -c $<
|
||||||
%.exe: tlib.o %.o
|
%.exe: tlib.o %.o
|
||||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(error Must specify <filename.exe> to build)
|
$(error Must specify <filename.exe> to build)
|
||||||
|
|||||||
@@ -1,255 +1,255 @@
|
|||||||
3DFX GLIDE Source Code General Public License
|
3DFX GLIDE Source Code General Public License
|
||||||
|
|
||||||
|
|
||||||
1. PREAMBLE
|
1. PREAMBLE
|
||||||
|
|
||||||
This license is for software that provides a 3D graphics application
|
This license is for software that provides a 3D graphics application
|
||||||
program interface (API).The license is intended to offer terms similar
|
program interface (API).The license is intended to offer terms similar
|
||||||
to some standard General Public Licenses designed to foster open
|
to some standard General Public Licenses designed to foster open
|
||||||
standards and unrestricted accessibility to source code. Some of these
|
standards and unrestricted accessibility to source code. Some of these
|
||||||
licenses require that, as a condition of the license of the software,
|
licenses require that, as a condition of the license of the software,
|
||||||
any derivative works (that is, new software which is a work containing
|
any derivative works (that is, new software which is a work containing
|
||||||
the original program or a portion of it) must be available for general
|
the original program or a portion of it) must be available for general
|
||||||
use, without restriction other than for a minor transfer fee, and that
|
use, without restriction other than for a minor transfer fee, and that
|
||||||
the source code for such derivative works must likewise be made
|
the source code for such derivative works must likewise be made
|
||||||
available. The only restriction is that such derivative works must be
|
available. The only restriction is that such derivative works must be
|
||||||
subject to the same General Public License terms as the original work.
|
subject to the same General Public License terms as the original work.
|
||||||
|
|
||||||
This 3dfx GLIDE Source Code General Public License differs from the
|
This 3dfx GLIDE Source Code General Public License differs from the
|
||||||
standard licenses of this type in that it does not require the entire
|
standard licenses of this type in that it does not require the entire
|
||||||
derivative work to be made available under the terms of this license
|
derivative work to be made available under the terms of this license
|
||||||
nor is the recipient required to make available the source code for
|
nor is the recipient required to make available the source code for
|
||||||
the entire derivative work. Rather, the license is limited to only the
|
the entire derivative work. Rather, the license is limited to only the
|
||||||
identifiable portion of the derivative work that is derived from the
|
identifiable portion of the derivative work that is derived from the
|
||||||
licensed software. The precise terms and conditions for copying,
|
licensed software. The precise terms and conditions for copying,
|
||||||
distribution and modification follow.
|
distribution and modification follow.
|
||||||
|
|
||||||
|
|
||||||
2. DEFINITIONS
|
2. DEFINITIONS
|
||||||
|
|
||||||
2.1 This License applies to any program (or other "work") which
|
2.1 This License applies to any program (or other "work") which
|
||||||
contains a notice placed by the copyright holder saying it may be
|
contains a notice placed by the copyright holder saying it may be
|
||||||
distributed under the terms of this 3dfx GLIDE Source Code General
|
distributed under the terms of this 3dfx GLIDE Source Code General
|
||||||
Public License.
|
Public License.
|
||||||
|
|
||||||
2.2 The term "Program" as used in this Agreement refers to 3DFX's
|
2.2 The term "Program" as used in this Agreement refers to 3DFX's
|
||||||
GLIDE source code and object code and any Derivative Work.
|
GLIDE source code and object code and any Derivative Work.
|
||||||
|
|
||||||
2.3 "Derivative Work" means, for the purpose of the License, that
|
2.3 "Derivative Work" means, for the purpose of the License, that
|
||||||
portion of any work that contains the Program or the identifiable
|
portion of any work that contains the Program or the identifiable
|
||||||
portion of a work that is derived from the Program, either verbatim or
|
portion of a work that is derived from the Program, either verbatim or
|
||||||
with modifications and/or translated into another language, and that
|
with modifications and/or translated into another language, and that
|
||||||
performs 3D graphics API operations. It does not include any other
|
performs 3D graphics API operations. It does not include any other
|
||||||
portions of a work.
|
portions of a work.
|
||||||
|
|
||||||
2.4 "Modifications of the Program" means any work, which includes a
|
2.4 "Modifications of the Program" means any work, which includes a
|
||||||
Derivative Work, and includes the whole of such work.
|
Derivative Work, and includes the whole of such work.
|
||||||
|
|
||||||
2.5 "License" means this 3dfx GLIDE Source Code General Public License.
|
2.5 "License" means this 3dfx GLIDE Source Code General Public License.
|
||||||
|
|
||||||
2.6 The "Source Code" for a work means the preferred form of the work
|
2.6 The "Source Code" for a work means the preferred form of the work
|
||||||
for making modifications to it. For an executable work, complete source
|
for making modifications to it. For an executable work, complete source
|
||||||
code means all the source code for all modules it contains, any
|
code means all the source code for all modules it contains, any
|
||||||
associated interface definition files, and the scripts used to control
|
associated interface definition files, and the scripts used to control
|
||||||
compilation and installation of the executable work.
|
compilation and installation of the executable work.
|
||||||
|
|
||||||
2.7 "3dfx" means 3dfx Interactive, Inc.
|
2.7 "3dfx" means 3dfx Interactive, Inc.
|
||||||
|
|
||||||
|
|
||||||
3. LICENSED ACTIVITIES
|
3. LICENSED ACTIVITIES
|
||||||
|
|
||||||
3.1 COPYING - You may copy and distribute verbatim copies of the
|
3.1 COPYING - You may copy and distribute verbatim copies of the
|
||||||
Program's Source Code as you receive it, in any medium, subject to the
|
Program's Source Code as you receive it, in any medium, subject to the
|
||||||
provision of section 3.3 and provided also that:
|
provision of section 3.3 and provided also that:
|
||||||
|
|
||||||
(a) you conspicuously and appropriately publish on each copy
|
(a) you conspicuously and appropriately publish on each copy
|
||||||
an appropriate copyright notice (3dfx Interactive, Inc. 1999), a notice
|
an appropriate copyright notice (3dfx Interactive, Inc. 1999), a notice
|
||||||
that recipients who wish to copy, distribute or modify the Program can
|
that recipients who wish to copy, distribute or modify the Program can
|
||||||
only do so subject to this License, and a disclaimer of warranty as
|
only do so subject to this License, and a disclaimer of warranty as
|
||||||
set forth in section 5;
|
set forth in section 5;
|
||||||
|
|
||||||
(b) keep intact all the notices that refer to this License and
|
(b) keep intact all the notices that refer to this License and
|
||||||
to the absence of any warranty; and
|
to the absence of any warranty; and
|
||||||
|
|
||||||
(c) do not make any use of the GLIDE trademark without the prior
|
(c) do not make any use of the GLIDE trademark without the prior
|
||||||
written permission of 3dfx, and
|
written permission of 3dfx, and
|
||||||
|
|
||||||
(d) give all recipients of the Program a copy of this License
|
(d) give all recipients of the Program a copy of this License
|
||||||
along with the Program or instructions on how to easily receive a copy
|
along with the Program or instructions on how to easily receive a copy
|
||||||
of this License.
|
of this License.
|
||||||
|
|
||||||
|
|
||||||
3.2 MODIFICATION OF THE PROGRAM/DERIVATIVE WORKS - You may modify your
|
3.2 MODIFICATION OF THE PROGRAM/DERIVATIVE WORKS - You may modify your
|
||||||
copy or copies of the Program or any portion of it, and copy and
|
copy or copies of the Program or any portion of it, and copy and
|
||||||
distribute such modifications subject to the provisions of section 3.3
|
distribute such modifications subject to the provisions of section 3.3
|
||||||
and provided that you also meet all of the following conditions:
|
and provided that you also meet all of the following conditions:
|
||||||
|
|
||||||
(a) you conspicuously and appropriately publish on each copy
|
(a) you conspicuously and appropriately publish on each copy
|
||||||
of a Derivative Work an appropriate copyright notice, a notice that
|
of a Derivative Work an appropriate copyright notice, a notice that
|
||||||
recipients who wish to copy, distribute or modify the Derivative Work
|
recipients who wish to copy, distribute or modify the Derivative Work
|
||||||
can only do so subject to this License, and a disclaimer of warranty
|
can only do so subject to this License, and a disclaimer of warranty
|
||||||
as set forth in section 5;
|
as set forth in section 5;
|
||||||
|
|
||||||
(b) keep intact all the notices that refer to this License and
|
(b) keep intact all the notices that refer to this License and
|
||||||
to the absence of any warranty; and
|
to the absence of any warranty; and
|
||||||
|
|
||||||
(c) give all recipients of the Derivative Work a copy of this
|
(c) give all recipients of the Derivative Work a copy of this
|
||||||
License along with the Derivative Work or instructions on how to easily
|
License along with the Derivative Work or instructions on how to easily
|
||||||
receive a copy of this License.
|
receive a copy of this License.
|
||||||
|
|
||||||
(d) You must cause the modified files of the Derivative Work
|
(d) You must cause the modified files of the Derivative Work
|
||||||
to carry prominent notices stating that you changed the files and the
|
to carry prominent notices stating that you changed the files and the
|
||||||
date of any change.
|
date of any change.
|
||||||
|
|
||||||
(e) You must cause any Derivative Work that you distribute or
|
(e) You must cause any Derivative Work that you distribute or
|
||||||
publish to be licensed at no charge to all third parties under the
|
publish to be licensed at no charge to all third parties under the
|
||||||
terms of this License.
|
terms of this License.
|
||||||
|
|
||||||
(f) You do not make any use of the GLIDE trademark without the
|
(f) You do not make any use of the GLIDE trademark without the
|
||||||
prior written permission of 3dfx.
|
prior written permission of 3dfx.
|
||||||
|
|
||||||
(g) If the Derivative Work normally reads commands
|
(g) If the Derivative Work normally reads commands
|
||||||
interactively when run, you must cause it, when started running for
|
interactively when run, you must cause it, when started running for
|
||||||
such interactive use, to print or display an announcement as follows:
|
such interactive use, to print or display an announcement as follows:
|
||||||
|
|
||||||
"COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED THIS
|
"COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED THIS
|
||||||
SOFTWARE IS FREE AND PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
|
SOFTWARE IS FREE AND PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
|
||||||
EITHER EXPRESSED OR IMPLIED. THERE IS NO RIGHT TO USE THE GLIDE
|
EITHER EXPRESSED OR IMPLIED. THERE IS NO RIGHT TO USE THE GLIDE
|
||||||
TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX INTERACTIVE,
|
TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX INTERACTIVE,
|
||||||
INC. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A FULL TEXT OF THE
|
INC. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A FULL TEXT OF THE
|
||||||
DISTRIBUTION AND NON-WARRANTY PROVISIONS (REQUEST COPY FROM
|
DISTRIBUTION AND NON-WARRANTY PROVISIONS (REQUEST COPY FROM
|
||||||
INFO@3DFX.COM)."
|
INFO@3DFX.COM)."
|
||||||
|
|
||||||
(h) The requirements of this section 3.2 do not apply to the
|
(h) The requirements of this section 3.2 do not apply to the
|
||||||
modified work as a whole but only to the Derivative Work. It is not
|
modified work as a whole but only to the Derivative Work. It is not
|
||||||
the intent of this License to claim rights or contest your rights to
|
the intent of this License to claim rights or contest your rights to
|
||||||
work written entirely by you; rather, the intent is to exercise the
|
work written entirely by you; rather, the intent is to exercise the
|
||||||
right to control the distribution of Derivative Works.
|
right to control the distribution of Derivative Works.
|
||||||
|
|
||||||
|
|
||||||
3.3 DISTRIBUTION
|
3.3 DISTRIBUTION
|
||||||
|
|
||||||
(a) All copies of the Program or Derivative Works which are
|
(a) All copies of the Program or Derivative Works which are
|
||||||
distributed must include in the file headers the following language
|
distributed must include in the file headers the following language
|
||||||
verbatim:
|
verbatim:
|
||||||
|
|
||||||
"THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED
|
"THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED
|
||||||
ONLY PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO
|
ONLY PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO
|
||||||
RIGHT TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF
|
RIGHT TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF
|
||||||
3DFX INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM
|
3DFX INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM
|
||||||
THE DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC (info@3dfx.com).
|
THE DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC (info@3dfx.com).
|
||||||
THIS PROGRAM. IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
THIS PROGRAM. IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||||
EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
||||||
FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
||||||
|
|
||||||
USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
||||||
RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS
|
RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS
|
||||||
IN TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
IN TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
||||||
AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
||||||
SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
||||||
THE UNITED STATES.
|
THE UNITED STATES.
|
||||||
|
|
||||||
COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED"
|
COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED"
|
||||||
|
|
||||||
(b) You may distribute the Program or a Derivative Work in
|
(b) You may distribute the Program or a Derivative Work in
|
||||||
object code or executable form under the terms of Sections 3.1 and 3.2
|
object code or executable form under the terms of Sections 3.1 and 3.2
|
||||||
provided that you also do one of the following:
|
provided that you also do one of the following:
|
||||||
|
|
||||||
(1) Accompany it with the complete corresponding
|
(1) Accompany it with the complete corresponding
|
||||||
machine-readable source code, which must be distributed under the
|
machine-readable source code, which must be distributed under the
|
||||||
terms of Sections 3.1 and 3.2; or,
|
terms of Sections 3.1 and 3.2; or,
|
||||||
|
|
||||||
(2) Accompany it with a written offer, valid for at
|
(2) Accompany it with a written offer, valid for at
|
||||||
least three years, to give any third party, for a charge no more than
|
least three years, to give any third party, for a charge no more than
|
||||||
your cost of physically performing source distribution, a complete
|
your cost of physically performing source distribution, a complete
|
||||||
machine-readable copy of the corresponding source code, to be
|
machine-readable copy of the corresponding source code, to be
|
||||||
distributed under the terms of Sections 3.1 and 3.2 on a medium
|
distributed under the terms of Sections 3.1 and 3.2 on a medium
|
||||||
customarily used for software interchange; or,
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
(3) Accompany it with the information you received as
|
(3) Accompany it with the information you received as
|
||||||
to the offer to distribute corresponding source code. (This alternative
|
to the offer to distribute corresponding source code. (This alternative
|
||||||
is allowed only for noncommercial distribution and only if you received
|
is allowed only for noncommercial distribution and only if you received
|
||||||
the program in object code or executable form with such an offer, in
|
the program in object code or executable form with such an offer, in
|
||||||
accord with Subsection 3.3(b)(2) above.)
|
accord with Subsection 3.3(b)(2) above.)
|
||||||
|
|
||||||
(c) The source code distributed need not include anything
|
(c) The source code distributed need not include anything
|
||||||
that is normally distributed (in either source or binary form) with
|
that is normally distributed (in either source or binary form) with
|
||||||
the major components (compiler, kernel, and so on) of the operating
|
the major components (compiler, kernel, and so on) of the operating
|
||||||
system on which the executable runs, unless that component itself
|
system on which the executable runs, unless that component itself
|
||||||
accompanies the executable code.
|
accompanies the executable code.
|
||||||
|
|
||||||
(d) If distribution of executable code or object code is made
|
(d) If distribution of executable code or object code is made
|
||||||
by offering access to copy from a designated place, then offering
|
by offering access to copy from a designated place, then offering
|
||||||
equivalent access to copy the source code from the same place counts
|
equivalent access to copy the source code from the same place counts
|
||||||
as distribution of the source code, even though third parties are not
|
as distribution of the source code, even though third parties are not
|
||||||
compelled to copy the source along with the object code.
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
(e) Each time you redistribute the Program or any Derivative
|
(e) Each time you redistribute the Program or any Derivative
|
||||||
Work, the recipient automatically receives a license from 3dfx and
|
Work, the recipient automatically receives a license from 3dfx and
|
||||||
successor licensors to copy, distribute or modify the Program and
|
successor licensors to copy, distribute or modify the Program and
|
||||||
Derivative Works subject to the terms and conditions of the License.
|
Derivative Works subject to the terms and conditions of the License.
|
||||||
You may not impose any further restrictions on the recipients'
|
You may not impose any further restrictions on the recipients'
|
||||||
exercise of the rights granted herein. You are not responsible for
|
exercise of the rights granted herein. You are not responsible for
|
||||||
enforcing compliance by third parties to this License.
|
enforcing compliance by third parties to this License.
|
||||||
|
|
||||||
(f) You may not make any use of the GLIDE trademark without
|
(f) You may not make any use of the GLIDE trademark without
|
||||||
the prior written permission of 3dfx.
|
the prior written permission of 3dfx.
|
||||||
|
|
||||||
(g) You may not copy, modify, sublicense, or distribute the
|
(g) You may not copy, modify, sublicense, or distribute the
|
||||||
Program or any Derivative Works except as expressly provided under
|
Program or any Derivative Works except as expressly provided under
|
||||||
this License. Any attempt otherwise to copy, modify, sublicense or
|
this License. Any attempt otherwise to copy, modify, sublicense or
|
||||||
distribute the Program or any Derivative Works is void, and will
|
distribute the Program or any Derivative Works is void, and will
|
||||||
automatically terminate your rights under this License. However,
|
automatically terminate your rights under this License. However,
|
||||||
parties who have received copies, or rights, from you under this
|
parties who have received copies, or rights, from you under this
|
||||||
License will not have their licenses terminated so long as such
|
License will not have their licenses terminated so long as such
|
||||||
parties remain in full compliance.
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
|
||||||
4. MISCELLANEOUS
|
4. MISCELLANEOUS
|
||||||
|
|
||||||
4.1 Acceptance of this License is voluntary. By using, modifying or
|
4.1 Acceptance of this License is voluntary. By using, modifying or
|
||||||
distributing the Program or any Derivative Work, you indicate your
|
distributing the Program or any Derivative Work, you indicate your
|
||||||
acceptance of this License to do so, and all its terms and conditions
|
acceptance of this License to do so, and all its terms and conditions
|
||||||
for copying, distributing or modifying the Program or works based on
|
for copying, distributing or modifying the Program or works based on
|
||||||
it. Nothing else grants you permission to modify or distribute the
|
it. Nothing else grants you permission to modify or distribute the
|
||||||
Program or Derivative Works and doing so without acceptance of this
|
Program or Derivative Works and doing so without acceptance of this
|
||||||
License is in violation of the U.S. and international copyright laws.
|
License is in violation of the U.S. and international copyright laws.
|
||||||
|
|
||||||
4.2 If the distribution and/or use of the Program or Derivative Works
|
4.2 If the distribution and/or use of the Program or Derivative Works
|
||||||
is restricted in certain countries either by patents or by copyrighted
|
is restricted in certain countries either by patents or by copyrighted
|
||||||
interfaces, the original copyright holder who places the Program under
|
interfaces, the original copyright holder who places the Program under
|
||||||
this License may add an explicit geographical distribution limitation
|
this License may add an explicit geographical distribution limitation
|
||||||
excluding those countries, so that distribution is permitted only in
|
excluding those countries, so that distribution is permitted only in
|
||||||
or among countries not thus excluded. In such case, this License
|
or among countries not thus excluded. In such case, this License
|
||||||
incorporates the limitation as if written in the body of this License.
|
incorporates the limitation as if written in the body of this License.
|
||||||
|
|
||||||
4.3 This License is to be construed according to the laws of the
|
4.3 This License is to be construed according to the laws of the
|
||||||
State of California and you consent to personal jurisdiction in the
|
State of California and you consent to personal jurisdiction in the
|
||||||
State of California in the event it is necessary to enforce the
|
State of California in the event it is necessary to enforce the
|
||||||
provisions of this License.
|
provisions of this License.
|
||||||
|
|
||||||
|
|
||||||
5. NO WARRANTIES
|
5. NO WARRANTIES
|
||||||
|
|
||||||
5.1 TO THE EXTENT PERMITTED BY APPLICABLE LAW, THERE IS NO WARRANTY
|
5.1 TO THE EXTENT PERMITTED BY APPLICABLE LAW, THERE IS NO WARRANTY
|
||||||
FOR THE PROGRAM. OR DERIVATIVE WORKS THE COPYRIGHT HOLDERS AND/OR
|
FOR THE PROGRAM. OR DERIVATIVE WORKS THE COPYRIGHT HOLDERS AND/OR
|
||||||
OTHER PARTIES PROVIDE THE PROGRAM AND ANY DERIVATIVE WORKS"AS IS"
|
OTHER PARTIES PROVIDE THE PROGRAM AND ANY DERIVATIVE WORKS"AS IS"
|
||||||
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
|
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
|
||||||
AND PERFORMANCE OF THE PROGRAM AND ANY DERIVATIVE WORK IS WITH YOU.
|
AND PERFORMANCE OF THE PROGRAM AND ANY DERIVATIVE WORK IS WITH YOU.
|
||||||
SHOULD THE PROGRAM OR ANY DERIVATIVE WORK PROVE DEFECTIVE, YOU ASSUME
|
SHOULD THE PROGRAM OR ANY DERIVATIVE WORK PROVE DEFECTIVE, YOU ASSUME
|
||||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
5.2 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL 3DFX
|
5.2 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL 3DFX
|
||||||
INTERACTIVE, INC., OR ANY OTHER COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
INTERACTIVE, INC., OR ANY OTHER COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
||||||
WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM OR DERIVATIVE WORKS AS
|
WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM OR DERIVATIVE WORKS AS
|
||||||
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
||||||
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
|
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
|
||||||
INABILITY TO USE THE PROGRAM OR DERIVATIVE WORKS (INCLUDING BUT NOT
|
INABILITY TO USE THE PROGRAM OR DERIVATIVE WORKS (INCLUDING BUT NOT
|
||||||
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
|
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
|
||||||
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM OR
|
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM OR
|
||||||
DERIVATIVE WORKS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
DERIVATIVE WORKS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
||||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
DAMAGES.
|
DAMAGES.
|
||||||
|
|
||||||
|
|||||||
@@ -1,365 +1,365 @@
|
|||||||
/*
|
/*
|
||||||
** THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED ONLY
|
** THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED ONLY
|
||||||
** PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO RIGHT
|
** PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO RIGHT
|
||||||
** TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX
|
** TO USE THE GLIDE TRADEMARK WITHOUT PRIOR WRITTEN PERMISSION OF 3DFX
|
||||||
** INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM THE
|
** INTERACTIVE, INC. A COPY OF THIS LICENSE MAY BE OBTAINED FROM THE
|
||||||
** DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC(info@3dfx.com).
|
** DISTRIBUTOR OR BY CONTACTING 3DFX INTERACTIVE INC(info@3dfx.com).
|
||||||
** THIS PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
** THIS PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||||
** EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
** EXPRESSED OR IMPLIED. SEE THE 3DFX GLIDE GENERAL PUBLIC LICENSE FOR A
|
||||||
** FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
** FULL TEXT OF THE NON-WARRANTY PROVISIONS.
|
||||||
**
|
**
|
||||||
** USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
** USE, DUPLICATION OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO
|
||||||
** RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS IN
|
** RESTRICTIONS AS SET FORTH IN SUBDIVISION (C)(1)(II) OF THE RIGHTS IN
|
||||||
** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013,
|
||||||
** AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
** AND/OR IN SIMILAR OR SUCCESSOR CLAUSES IN THE FAR, DOD OR NASA FAR
|
||||||
** SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
** SUPPLEMENT. UNPUBLISHED RIGHTS RESERVED UNDER THE COPYRIGHT LAWS OF
|
||||||
** THE UNITED STATES.
|
** THE UNITED STATES.
|
||||||
**
|
**
|
||||||
** COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED
|
** COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <3dfx.h>
|
#include <3dfx.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <machine/cpufunc.h>
|
#include <machine/cpufunc.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "fxpci.h"
|
#include "fxpci.h"
|
||||||
#include "pcilib.h"
|
#include "pcilib.h"
|
||||||
|
|
||||||
static const char* pciIdentifyFreeBSD(void);
|
static const char* pciIdentifyFreeBSD(void);
|
||||||
static FxBool pciOutputStringFreeBSD(const char *msg);
|
static FxBool pciOutputStringFreeBSD(const char *msg);
|
||||||
static FxBool pciInitializeFreeBSD(void);
|
static FxBool pciInitializeFreeBSD(void);
|
||||||
static FxBool pciShutdownFreeBSD(void);
|
static FxBool pciShutdownFreeBSD(void);
|
||||||
static FxBool pciMapLinearFreeBSD(FxU32, FxU32 physical_addr, FxU32 *linear_addr,
|
static FxBool pciMapLinearFreeBSD(FxU32, FxU32 physical_addr, FxU32 *linear_addr,
|
||||||
FxU32 *length);
|
FxU32 *length);
|
||||||
static FxBool pciUnmapLinearFreeBSD(FxU32 linear_addr, FxU32 length);
|
static FxBool pciUnmapLinearFreeBSD(FxU32 linear_addr, FxU32 length);
|
||||||
static FxBool pciSetPermissionFreeBSD(const FxU32, const FxU32, const FxBool);
|
static FxBool pciSetPermissionFreeBSD(const FxU32, const FxU32, const FxBool);
|
||||||
static FxU8 pciPortInByteFreeBSD(unsigned short port);
|
static FxU8 pciPortInByteFreeBSD(unsigned short port);
|
||||||
static FxU16 pciPortInWordFreeBSD(unsigned short port);
|
static FxU16 pciPortInWordFreeBSD(unsigned short port);
|
||||||
static FxU32 pciPortInLongFreeBSD(unsigned short port);
|
static FxU32 pciPortInLongFreeBSD(unsigned short port);
|
||||||
static FxBool pciPortOutByteFreeBSD(unsigned short port, FxU8 data);
|
static FxBool pciPortOutByteFreeBSD(unsigned short port, FxU8 data);
|
||||||
static FxBool pciPortOutWordFreeBSD(unsigned short port, FxU16 data);
|
static FxBool pciPortOutWordFreeBSD(unsigned short port, FxU16 data);
|
||||||
static FxBool pciPortOutLongFreeBSD(unsigned short port, FxU32 data);
|
static FxBool pciPortOutLongFreeBSD(unsigned short port, FxU32 data);
|
||||||
static FxBool pciMsrGetFreeBSD(MSRInfo *, MSRInfo *);
|
static FxBool pciMsrGetFreeBSD(MSRInfo *, MSRInfo *);
|
||||||
static FxBool pciMsrSetFreeBSD(MSRInfo *, MSRInfo *);
|
static FxBool pciMsrSetFreeBSD(MSRInfo *, MSRInfo *);
|
||||||
static FxBool pciSetPassThroughBaseFreeBSD(FxU32 *, FxU32);
|
static FxBool pciSetPassThroughBaseFreeBSD(FxU32 *, FxU32);
|
||||||
|
|
||||||
const FxPlatformIOProcs ioProcsFreeBSD = {
|
const FxPlatformIOProcs ioProcsFreeBSD = {
|
||||||
pciInitializeFreeBSD,
|
pciInitializeFreeBSD,
|
||||||
pciShutdownFreeBSD,
|
pciShutdownFreeBSD,
|
||||||
pciIdentifyFreeBSD,
|
pciIdentifyFreeBSD,
|
||||||
|
|
||||||
pciPortInByteFreeBSD,
|
pciPortInByteFreeBSD,
|
||||||
pciPortInWordFreeBSD,
|
pciPortInWordFreeBSD,
|
||||||
pciPortInLongFreeBSD,
|
pciPortInLongFreeBSD,
|
||||||
|
|
||||||
pciPortOutByteFreeBSD,
|
pciPortOutByteFreeBSD,
|
||||||
pciPortOutWordFreeBSD,
|
pciPortOutWordFreeBSD,
|
||||||
pciPortOutLongFreeBSD,
|
pciPortOutLongFreeBSD,
|
||||||
|
|
||||||
pciMapLinearFreeBSD,
|
pciMapLinearFreeBSD,
|
||||||
pciUnmapLinearFreeBSD,
|
pciUnmapLinearFreeBSD,
|
||||||
pciSetPermissionFreeBSD,
|
pciSetPermissionFreeBSD,
|
||||||
|
|
||||||
pciMsrGetFreeBSD,
|
pciMsrGetFreeBSD,
|
||||||
pciMsrSetFreeBSD,
|
pciMsrSetFreeBSD,
|
||||||
|
|
||||||
pciOutputStringFreeBSD,
|
pciOutputStringFreeBSD,
|
||||||
pciSetPassThroughBaseFreeBSD
|
pciSetPassThroughBaseFreeBSD
|
||||||
};
|
};
|
||||||
|
|
||||||
const FxU32 PCI_VENDOR_ID_FREEBSD = 0x0;
|
const FxU32 PCI_VENDOR_ID_FREEBSD = 0x0;
|
||||||
const FxU32 PCI_DEVICE_ID_FREEBSD = 0x2;
|
const FxU32 PCI_DEVICE_ID_FREEBSD = 0x2;
|
||||||
const FxU32 PCI_COMMAND_FREEBSD = 0x4;
|
const FxU32 PCI_COMMAND_FREEBSD = 0x4;
|
||||||
const FxU32 PCI_BASE_ADDRESS_0_FREEBSD = 0x10;
|
const FxU32 PCI_BASE_ADDRESS_0_FREEBSD = 0x10;
|
||||||
const FxU32 SST1_PCI_INIT_ENABLE_FREEBSD = 0x40;
|
const FxU32 SST1_PCI_INIT_ENABLE_FREEBSD = 0x40;
|
||||||
const FxU32 SST1_PCI_BUS_SNOOP0_FREEBSD = 0x44;
|
const FxU32 SST1_PCI_BUS_SNOOP0_FREEBSD = 0x44;
|
||||||
const FxU32 SST1_PCI_BUS_SNOOP1_FREEBSD = 0x48;
|
const FxU32 SST1_PCI_BUS_SNOOP1_FREEBSD = 0x48;
|
||||||
|
|
||||||
static int freebsdDevFd=-1;
|
static int freebsdDevFd=-1;
|
||||||
static int freebsdIoFd=-1;
|
static int freebsdIoFd=-1;
|
||||||
|
|
||||||
struct pioData {
|
struct pioData {
|
||||||
short port;
|
short port;
|
||||||
short size;
|
short size;
|
||||||
int device;
|
int device;
|
||||||
void *value;
|
void *value;
|
||||||
};
|
};
|
||||||
|
|
||||||
FxBool
|
FxBool
|
||||||
pciPlatformInit(void)
|
pciPlatformInit(void)
|
||||||
{
|
{
|
||||||
gCurPlatformIO = &ioProcsFreeBSD;
|
gCurPlatformIO = &ioProcsFreeBSD;
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FxBool
|
FxBool
|
||||||
hasDev3DfxLinux(void)
|
hasDev3DfxLinux(void)
|
||||||
{
|
{
|
||||||
if (freebsdDevFd==-1) return FXFALSE;
|
if (freebsdDevFd==-1) return FXFALSE;
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FxU32
|
FxU32
|
||||||
pciFetchRegisterLinux(FxU32 cmd, FxU32 size, FxU32 device)
|
pciFetchRegisterLinux(FxU32 cmd, FxU32 size, FxU32 device)
|
||||||
{
|
{
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
char cval;
|
char cval;
|
||||||
short sval;
|
short sval;
|
||||||
int ival;
|
int ival;
|
||||||
|
|
||||||
if (freebsdDevFd==-1) return -1;
|
if (freebsdDevFd==-1) return -1;
|
||||||
desc.port=cmd;
|
desc.port=cmd;
|
||||||
desc.size=size;
|
desc.size=size;
|
||||||
desc.device=device;
|
desc.device=device;
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
desc.value=&cval;
|
desc.value=&cval;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
desc.value=&sval;
|
desc.value=&sval;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
desc.value=&ival;
|
desc.value=&ival;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (ioctl(freebsdDevFd, _IOR('3', 3, sizeof(struct pioData)), &desc)==-1)
|
if (ioctl(freebsdDevFd, _IOR('3', 3, sizeof(struct pioData)), &desc)==-1)
|
||||||
return 0;
|
return 0;
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
return cval;
|
return cval;
|
||||||
case 2:
|
case 2:
|
||||||
return sval;
|
return sval;
|
||||||
case 4:
|
case 4:
|
||||||
return ival;
|
return ival;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FxBool
|
FxBool
|
||||||
pciUpdateRegisterLinux(FxU32 cmd, FxU32 data, FxU32 size, FxU32 device)
|
pciUpdateRegisterLinux(FxU32 cmd, FxU32 data, FxU32 size, FxU32 device)
|
||||||
{
|
{
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
|
|
||||||
if (freebsdDevFd==-1) return -1;
|
if (freebsdDevFd==-1) return -1;
|
||||||
desc.port=cmd;
|
desc.port=cmd;
|
||||||
desc.size=size;
|
desc.size=size;
|
||||||
desc.device=device;
|
desc.device=device;
|
||||||
desc.value=&data;
|
desc.value=&data;
|
||||||
if (ioctl(freebsdDevFd, _IOW('3', 4, sizeof(struct pioData)), &desc)==-1)
|
if (ioctl(freebsdDevFd, _IOW('3', 4, sizeof(struct pioData)), &desc)==-1)
|
||||||
return FXFALSE;
|
return FXFALSE;
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
getNumDevicesLinux(void)
|
getNumDevicesLinux(void)
|
||||||
{
|
{
|
||||||
if (freebsdDevFd==-1) return -1;
|
if (freebsdDevFd==-1) return -1;
|
||||||
return ioctl(freebsdDevFd, _IO('3', 2));
|
return ioctl(freebsdDevFd, _IO('3', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char*
|
static const char*
|
||||||
pciIdentifyFreeBSD(void)
|
pciIdentifyFreeBSD(void)
|
||||||
{
|
{
|
||||||
return "fxPCI for FreeBSD";
|
return "fxPCI for FreeBSD";
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciOutputStringFreeBSD(const char *msg)
|
pciOutputStringFreeBSD(const char *msg)
|
||||||
{
|
{
|
||||||
printf(msg);
|
printf(msg);
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciInitializeFreeBSD(void)
|
pciInitializeFreeBSD(void)
|
||||||
{
|
{
|
||||||
if (geteuid()) freebsdDevFd=open("/dev/3dfx", O_RDWR, 0);
|
if (geteuid()) freebsdDevFd=open("/dev/3dfx", O_RDWR, 0);
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
freebsdIoFd=open("/dev/io", O_RDWR, 0);
|
freebsdIoFd=open("/dev/io", O_RDWR, 0);
|
||||||
if (freebsdIoFd<0) {
|
if (freebsdIoFd<0) {
|
||||||
pciErrorCode = PCI_ERR_NO_IO_PERM;
|
pciErrorCode = PCI_ERR_NO_IO_PERM;
|
||||||
return FXFALSE;
|
return FXFALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciShutdownFreeBSD(void)
|
pciShutdownFreeBSD(void)
|
||||||
{
|
{
|
||||||
if (freebsdDevFd!=-1) close(freebsdDevFd);
|
if (freebsdDevFd!=-1) close(freebsdDevFd);
|
||||||
freebsdDevFd=-1;
|
freebsdDevFd=-1;
|
||||||
if (freebsdIoFd!=-1) close(freebsdIoFd);
|
if (freebsdIoFd!=-1) close(freebsdIoFd);
|
||||||
freebsdIoFd=-1;
|
freebsdIoFd=-1;
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciMapLinearFreeBSD(FxU32 bus, FxU32 physical_addr,
|
pciMapLinearFreeBSD(FxU32 bus, FxU32 physical_addr,
|
||||||
FxU32 *linear_addr, FxU32 *length)
|
FxU32 *linear_addr, FxU32 *length)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
if (freebsdDevFd!=-1) {
|
if (freebsdDevFd!=-1) {
|
||||||
fd=freebsdDevFd;
|
fd=freebsdDevFd;
|
||||||
} else {
|
} else {
|
||||||
if ((fd=open("/dev/mem", O_RDWR))<0) {
|
if ((fd=open("/dev/mem", O_RDWR))<0) {
|
||||||
pciErrorCode=PCI_ERR_NO_MEM_PERM;
|
pciErrorCode=PCI_ERR_NO_MEM_PERM;
|
||||||
return FXFALSE;
|
return FXFALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (((*linear_addr)=(FxU32)mmap(0, *length, PROT_READ|PROT_WRITE,
|
if (((*linear_addr)=(FxU32)mmap(0, *length, PROT_READ|PROT_WRITE,
|
||||||
MAP_SHARED, fd, physical_addr))<0) {
|
MAP_SHARED, fd, physical_addr))<0) {
|
||||||
if (fd!=freebsdDevFd) close(fd);
|
if (fd!=freebsdDevFd) close(fd);
|
||||||
return FXFALSE;
|
return FXFALSE;
|
||||||
}
|
}
|
||||||
if (fd!=freebsdDevFd) close(fd);
|
if (fd!=freebsdDevFd) close(fd);
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciUnmapLinearFreeBSD( FxU32 linear_addr, FxU32 length ) {
|
pciUnmapLinearFreeBSD( FxU32 linear_addr, FxU32 length ) {
|
||||||
munmap((void*)linear_addr, length);
|
munmap((void*)linear_addr, length);
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciSetPermissionFreeBSD(const FxU32 addrBase, const FxU32 addrLen,
|
pciSetPermissionFreeBSD(const FxU32 addrBase, const FxU32 addrLen,
|
||||||
const FxBool writePermP)
|
const FxBool writePermP)
|
||||||
{
|
{
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxU8
|
static FxU8
|
||||||
pciPortInByteFreeBSD(unsigned short port)
|
pciPortInByteFreeBSD(unsigned short port)
|
||||||
{
|
{
|
||||||
char tmp;
|
char tmp;
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
|
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
tmp=inb(port);
|
tmp=inb(port);
|
||||||
/* fprintf(stderr, "Read byte at %x got %d\n", port, tmp); */
|
/* fprintf(stderr, "Read byte at %x got %d\n", port, tmp); */
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
desc.port=port;
|
desc.port=port;
|
||||||
desc.size=sizeof(tmp);
|
desc.size=sizeof(tmp);
|
||||||
desc.value=&tmp;
|
desc.value=&tmp;
|
||||||
/* fprintf(stderr, "Read byte desc at %x tmp at %x\n", &desc, &tmp); */
|
/* fprintf(stderr, "Read byte desc at %x tmp at %x\n", &desc, &tmp); */
|
||||||
ioctl(freebsdDevFd, _IOR(0, 0, sizeof(struct pioData)), &desc);
|
ioctl(freebsdDevFd, _IOR(0, 0, sizeof(struct pioData)), &desc);
|
||||||
/* fprintf(stderr, "Got byte %d versus %d\n", tmp, inb(port)); */
|
/* fprintf(stderr, "Got byte %d versus %d\n", tmp, inb(port)); */
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxU16
|
static FxU16
|
||||||
pciPortInWordFreeBSD(unsigned short port)
|
pciPortInWordFreeBSD(unsigned short port)
|
||||||
{
|
{
|
||||||
short tmp;
|
short tmp;
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
|
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
tmp=inw(port);
|
tmp=inw(port);
|
||||||
/* fprintf(stderr, "Read word at %x got %x\n", port, tmp); */
|
/* fprintf(stderr, "Read word at %x got %x\n", port, tmp); */
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
desc.port=port;
|
desc.port=port;
|
||||||
desc.size=sizeof(tmp);
|
desc.size=sizeof(tmp);
|
||||||
desc.value=&tmp;
|
desc.value=&tmp;
|
||||||
/* fprintf(stderr, "Read word desc at %x tmp at %x\n", &desc, &tmp); */
|
/* fprintf(stderr, "Read word desc at %x tmp at %x\n", &desc, &tmp); */
|
||||||
ioctl(freebsdDevFd, _IOR(0, 0, sizeof(struct pioData)), &desc);
|
ioctl(freebsdDevFd, _IOR(0, 0, sizeof(struct pioData)), &desc);
|
||||||
/* fprintf(stderr, "Got word %d versus %d\n", tmp, inw(port)); */
|
/* fprintf(stderr, "Got word %d versus %d\n", tmp, inw(port)); */
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxU32
|
static FxU32
|
||||||
pciPortInLongFreeBSD(unsigned short port)
|
pciPortInLongFreeBSD(unsigned short port)
|
||||||
{
|
{
|
||||||
int tmp;
|
int tmp;
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
|
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
tmp=inl(port);
|
tmp=inl(port);
|
||||||
/* fprintf(stderr, "Read long at %x got %x\n", port, tmp); */
|
/* fprintf(stderr, "Read long at %x got %x\n", port, tmp); */
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
desc.port=port;
|
desc.port=port;
|
||||||
desc.size=sizeof(tmp);
|
desc.size=sizeof(tmp);
|
||||||
desc.value=&tmp;
|
desc.value=&tmp;
|
||||||
/* fprintf(stderr, "Read long desc at %x tmp at %x\n", &desc, &tmp); */
|
/* fprintf(stderr, "Read long desc at %x tmp at %x\n", &desc, &tmp); */
|
||||||
ioctl(freebsdDevFd, _IOR(0, 0, sizeof(struct pioData)), &desc);
|
ioctl(freebsdDevFd, _IOR(0, 0, sizeof(struct pioData)), &desc);
|
||||||
/* fprintf(stderr, "Got long %x versus %x\n", tmp, inl(port)); */
|
/* fprintf(stderr, "Got long %x versus %x\n", tmp, inl(port)); */
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciPortOutByteFreeBSD(unsigned short port, FxU8 data)
|
pciPortOutByteFreeBSD(unsigned short port, FxU8 data)
|
||||||
{
|
{
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
/* fprintf(stderr, "write byte=%d desc at %x data at %x\n", data,
|
/* fprintf(stderr, "write byte=%d desc at %x data at %x\n", data,
|
||||||
&desc, &data); */
|
&desc, &data); */
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
outb(port, data);
|
outb(port, data);
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
desc.port=port;
|
desc.port=port;
|
||||||
desc.size=sizeof(data);
|
desc.size=sizeof(data);
|
||||||
desc.value=&data;
|
desc.value=&data;
|
||||||
return ioctl(freebsdDevFd, _IOW(0, 1, sizeof(struct pioData)), &desc)!=-1;
|
return ioctl(freebsdDevFd, _IOW(0, 1, sizeof(struct pioData)), &desc)!=-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciPortOutWordFreeBSD(unsigned short port, FxU16 data)
|
pciPortOutWordFreeBSD(unsigned short port, FxU16 data)
|
||||||
{
|
{
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
/* fprintf(stderr, "write word=%x to port=%x desc at %x data at %x\n",
|
/* fprintf(stderr, "write word=%x to port=%x desc at %x data at %x\n",
|
||||||
data, port, &desc, &data); */
|
data, port, &desc, &data); */
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
outw(port, data);
|
outw(port, data);
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
desc.port=port;
|
desc.port=port;
|
||||||
desc.size=sizeof(data);
|
desc.size=sizeof(data);
|
||||||
desc.value=&data;
|
desc.value=&data;
|
||||||
return ioctl(freebsdDevFd, _IOW(0, 1, sizeof(struct pioData)), &desc)!=-1;
|
return ioctl(freebsdDevFd, _IOW(0, 1, sizeof(struct pioData)), &desc)!=-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciPortOutLongFreeBSD(unsigned short port, FxU32 data)
|
pciPortOutLongFreeBSD(unsigned short port, FxU32 data)
|
||||||
{
|
{
|
||||||
struct pioData desc;
|
struct pioData desc;
|
||||||
/* fprintf(stderr, "write long=%x to port=%x desc at %x data at %x\n",
|
/* fprintf(stderr, "write long=%x to port=%x desc at %x data at %x\n",
|
||||||
data, port, &desc, &data); */
|
data, port, &desc, &data); */
|
||||||
if (freebsdDevFd==-1) {
|
if (freebsdDevFd==-1) {
|
||||||
outl(port, data);
|
outl(port, data);
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
desc.port=port;
|
desc.port=port;
|
||||||
desc.size=sizeof(data);
|
desc.size=sizeof(data);
|
||||||
desc.value=&data;
|
desc.value=&data;
|
||||||
return ioctl(freebsdDevFd, _IOW(0, 1, sizeof(struct pioData)), &desc)!=-1;
|
return ioctl(freebsdDevFd, _IOW(0, 1, sizeof(struct pioData)), &desc)!=-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciMsrGetFreeBSD(MSRInfo *in, MSRInfo *out)
|
pciMsrGetFreeBSD(MSRInfo *in, MSRInfo *out)
|
||||||
{
|
{
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciMsrSetFreeBSD(MSRInfo *in, MSRInfo *out)
|
pciMsrSetFreeBSD(MSRInfo *in, MSRInfo *out)
|
||||||
{
|
{
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FxBool
|
static FxBool
|
||||||
pciSetPassThroughBaseFreeBSD(FxU32 *baseAddr, FxU32 baseAddrLen)
|
pciSetPassThroughBaseFreeBSD(FxU32 *baseAddr, FxU32 baseAddrLen)
|
||||||
{
|
{
|
||||||
return FXTRUE;
|
return FXTRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user