open-src/driver/xf86-video-i740/COPYING
changeset 705 24ca414edbff
parent 387 5ce4f3ae3e65
equal deleted inserted replaced
704:f9b973ecc909 705:24ca414edbff
     1 *************************************************************************
       
     2 
       
     3 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
       
     4 All Rights Reserved.
       
     5 
       
     6 Permission is hereby granted, free of charge, to any person obtaining a
       
     7 copy of this software and associated documentation files (the
       
     8 "Software"), to deal in the Software without restriction, including
       
     9 without limitation the rights to use, copy, modify, merge, publish,
       
    10 distribute, sub license, and/or sell copies of the Software, and to
       
    11 permit persons to whom the Software is furnished to do so, subject to
       
    12 the following conditions:
       
    13 
       
    14 The above copyright notice and this permission notice (including the
       
    15 next paragraph) shall be included in all copies or substantial portions
       
    16 of the Software.
       
    17 
       
    18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
       
    19 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
    20 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
       
    21 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
       
    22 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
       
    23 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
    24 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
    25 
       
    26 *************************************************************************
       
    27 *************************************************************************
       
    28 
       
    29 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
       
    30 All Rights Reserved.
       
    31 
       
    32 Permission is hereby granted, free of charge, to any person obtaining a
       
    33 copy of this software and associated documentation files (the
       
    34 "Software"), to deal in the Software without restriction, including
       
    35 without limitation the rights to use, copy, modify, merge, publish,
       
    36 distribute, sub license, and/or sell copies of the Software, and to
       
    37 permit persons to whom the Software is furnished to do so, subject to
       
    38 the following conditions:
       
    39 
       
    40 The above copyright notice and this permission notice (including the
       
    41 next paragraph) shall be included in all copies or substantial portions
       
    42 of the Software.
       
    43 
       
    44 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
       
    45 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
    46 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
       
    47 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
       
    48 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
       
    49 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
    50 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
    51 
       
    52 *************************************************************************
       
    53 *************************************************************************
       
    54 
       
    55 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
     1 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
    56 All Rights Reserved.
     2 All Rights Reserved.
    57 
     3 
    58 Permission is hereby granted, free of charge, to any person obtaining a
     4 Permission is hereby granted, free of charge, to any person obtaining a
    59 copy of this software and associated documentation files (the
     5 copy of this software and associated documentation files (the
    75 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    21 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    76 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    22 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    77 
    23 
    78 *************************************************************************
    24 *************************************************************************
    79 
    25 
    80  * Copyright 2001 by Patrick LERDA
    26 Copyright 2001 by Patrick LERDA
    81  *
    27 Portions Copyright by Stephen Blackheath
    82  * Permission to use, copy, modify, distribute, and sell this software and its
       
    83  * documentation for any purpose is hereby granted without fee, provided that
       
    84  * the above copyright notice appear in all copies and that both that
       
    85  * copyright notice and this permission notice appear in supporting
       
    86  * documentation, and that the name of Patrick LERDA not be used in
       
    87  * advertising or publicity pertaining to distribution of the software without
       
    88  * specific, written prior permission.  Patrick LERDA makes no representations
       
    89  * about the suitability of this software for any purpose.  It is provided
       
    90  * "as is" without express or implied warranty.
       
    91  *
       
    92  * PATRICK LERDA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
       
    93  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
       
    94  * EVENT SHALL PATRICK LERDA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
       
    95  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
       
    96  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
       
    97  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    98  * PERFORMANCE OF THIS SOFTWARE.
       
    99  *
       
   100  * Authors:  Patrick LERDA
       
   101  
       
   102 
    28 
   103  * Copyright 2001 by Patrick LERDA
    29 Permission to use, copy, modify, distribute, and sell this software and its
   104  *
    30 documentation for any purpose is hereby granted without fee, provided that
   105  * Permission to use, copy, modify, distribute, and sell this software and its
    31 the above copyright notice appear in all copies and that both that
   106  * documentation for any purpose is hereby granted without fee, provided that
    32 copyright notice and this permission notice appear in supporting
   107  * the above copyright notice appear in all copies and that both that
    33 documentation, and that the name of Patrick LERDA not be used in
   108  * copyright notice and this permission notice appear in supporting
    34 advertising or publicity pertaining to distribution of the software without
   109  * documentation, and that the name of Patrick LERDA not be used in
    35 specific, written prior permission.  Patrick LERDA makes no representations
   110  * advertising or publicity pertaining to distribution of the software without
    36 about the suitability of this software for any purpose.  It is provided
   111  * specific, written prior permission.  Patrick LERDA makes no representations
    37 "as is" without express or implied warranty.
   112  * about the suitability of this software for any purpose.  It is provided
       
   113  * "as is" without express or implied warranty.
       
   114  *
       
   115  * PATRICK LERDA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
       
   116  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
       
   117  * EVENT SHALL PATRICK LERDA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
       
   118  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
       
   119  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
       
   120  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
   121  * PERFORMANCE OF THIS SOFTWARE.
       
   122  *
       
   123  * Authors:  Patrick LERDA
       
   124  
       
   125 *************************************************************************
       
   126 
    38 
   127 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
    39 PATRICK LERDA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
   128 All Rights Reserved.
    40 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
   129 
    41 EVENT SHALL PATRICK LERDA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
   130 Permission is hereby granted, free of charge, to any person obtaining a
    42 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
   131 copy of this software and associated documentation files (the
    43 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
   132 "Software"), to deal in the Software without restriction, including
    44 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   133 without limitation the rights to use, copy, modify, merge, publish,
    45 PERFORMANCE OF THIS SOFTWARE.
   134 distribute, sub license, and/or sell copies of the Software, and to
       
   135 permit persons to whom the Software is furnished to do so, subject to
       
   136 the following conditions:
       
   137 
       
   138 The above copyright notice and this permission notice (including the
       
   139 next paragraph) shall be included in all copies or substantial portions
       
   140 of the Software.
       
   141 
       
   142 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
       
   143 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
   144 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
       
   145 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
       
   146 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
       
   147 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
   148 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
   149 
    46 
   150 *************************************************************************
    47 *************************************************************************
   151 
    48 
   152  * Copyright 2001 by Patrick LERDA
    49 Copyright 2007 George Sapountzis
   153  *
       
   154  * Permission to use, copy, modify, distribute, and sell this software and its
       
   155  * documentation for any purpose is hereby granted without fee, provided that
       
   156  * the above copyright notice appear in all copies and that both that
       
   157  * copyright notice and this permission notice appear in supporting
       
   158  * documentation, and that the name of Patrick LERDA not be used in
       
   159  * advertising or publicity pertaining to distribution of the software without
       
   160  * specific, written prior permission.  Patrick LERDA makes no representations
       
   161  * about the suitability of this software for any purpose.  It is provided
       
   162  * "as is" without express or implied warranty.
       
   163  *
       
   164  * PATRICK LERDA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
       
   165  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
       
   166  * EVENT SHALL PATRICK LERDA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
       
   167  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
       
   168  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
       
   169  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
   170  * PERFORMANCE OF THIS SOFTWARE.
       
   171  *
       
   172  * Authors:  Patrick LERDA
       
   173  
       
   174 *************************************************************************
       
   175 
       
   176 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
       
   177 All Rights Reserved.
       
   178 
    50 
   179 Permission is hereby granted, free of charge, to any person obtaining a
    51 Permission is hereby granted, free of charge, to any person obtaining a
   180 copy of this software and associated documentation files (the
    52 copy of this software and associated documentation files (the "Software"),
   181 "Software"), to deal in the Software without restriction, including
    53 to deal in the Software without restriction, including without limitation
   182 without limitation the rights to use, copy, modify, merge, publish,
    54 the rights to use, copy, modify, merge, publish, distribute, sublicense,
   183 distribute, sub license, and/or sell copies of the Software, and to
    55 and/or sell copies of the Software, and to permit persons to whom the
   184 permit persons to whom the Software is furnished to do so, subject to
    56 Software is furnished to do so, subject to the following conditions:
   185 the following conditions:
       
   186 
    57 
   187 The above copyright notice and this permission notice (including the
    58 The above copyright notice and this permission notice (including the next
   188 next paragraph) shall be included in all copies or substantial portions
    59 paragraph) shall be included in all copies or substantial portions of the
   189 of the Software.
    60 Software.
   190 
    61 
   191 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    62 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   192 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    63 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   193 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
    64 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
   194 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
    65 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   195 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    66 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   196 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    67 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   197 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    68 SOFTWARE.
   198 
       
   199 *************************************************************************
       
   200 *************************************************************************
       
   201 
       
   202 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
       
   203 All Rights Reserved.
       
   204 
       
   205 Permission is hereby granted, free of charge, to any person obtaining a
       
   206 copy of this software and associated documentation files (the
       
   207 "Software"), to deal in the Software without restriction, including
       
   208 without limitation the rights to use, copy, modify, merge, publish,
       
   209 distribute, sub license, and/or sell copies of the Software, and to
       
   210 permit persons to whom the Software is furnished to do so, subject to
       
   211 the following conditions:
       
   212 
       
   213 The above copyright notice and this permission notice (including the
       
   214 next paragraph) shall be included in all copies or substantial portions
       
   215 of the Software.
       
   216 
       
   217 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
       
   218 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
   219 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
       
   220 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
       
   221 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
       
   222 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
   223 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
   224 
       
   225 *************************************************************************
       
   226 *************************************************************************
       
   227 
       
   228 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
       
   229 All Rights Reserved.
       
   230 
       
   231 Permission is hereby granted, free of charge, to any person obtaining a
       
   232 copy of this software and associated documentation files (the
       
   233 "Software"), to deal in the Software without restriction, including
       
   234 without limitation the rights to use, copy, modify, merge, publish,
       
   235 distribute, sub license, and/or sell copies of the Software, and to
       
   236 permit persons to whom the Software is furnished to do so, subject to
       
   237 the following conditions:
       
   238 
       
   239 The above copyright notice and this permission notice (including the
       
   240 next paragraph) shall be included in all copies or substantial portions
       
   241 of the Software.
       
   242 
       
   243 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
       
   244 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
   245 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
       
   246 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
       
   247 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
       
   248 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
   249 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
   250 
       
   251 *************************************************************************
       
   252 
       
   253  * Copyright 2001 by Patrick LERDA
       
   254  * Portions Copyright by Stephen Blackheath
       
   255  *
       
   256  * Permission to use, copy, modify, distribute, and sell this software and its
       
   257  * documentation for any purpose is hereby granted without fee, provided that
       
   258  * the above copyright notice appear in all copies and that both that
       
   259  * copyright notice and this permission notice appear in supporting
       
   260  * documentation, and that the name of Patrick LERDA not be used in
       
   261  * advertising or publicity pertaining to distribution of the software without
       
   262  * specific, written prior permission.  Patrick LERDA makes no representations
       
   263  * about the suitability of this software for any purpose.  It is provided
       
   264  * "as is" without express or implied warranty.
       
   265  *
       
   266  * PATRICK LERDA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
       
   267  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
       
   268  * EVENT SHALL PATRICK LERDA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
       
   269  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
       
   270  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
       
   271  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
   272  * PERFORMANCE OF THIS SOFTWARE.
       
   273  *
       
   274  * Authors:  Patrick LERDA
       
   275  *           with modifications by Stephen Blackheath (Aug 2002)
       
   276  *          
       
   277  * REVISION HISTORY:
       
   278  *   December 2001 - Patrick LERDA's original i740fb project on SourceForge.
       
   279  *   27 August 2002 - Patrick's version would run for an hour or two on my
       
   280  *     machine, then the screen would go blank (no signal to monitor) and for
       
   281  *     some reason I sometimes couldn't even log in through the network.  I had
       
   282  *     to re-boot my machine.  This version fixes that and makes a few other
       
   283  *     unnecessary tweaks.  I am not certain, but I think the problem is that
       
   284  *     Patrick's code was reading a value from XRX register 0xD0, and or'ing
       
   285  *     with 0x10.  When I removed this from the main loop, it became reliable.
       
   286  *     I suspect the hardware (whether just my cheap clone board only I'm not
       
   287  *     sure) was sometimes returning bogus values, which were then programmed
       
   288  *     back in - but I never checked this.  This register is related to
       
   289  *     powering on or off certain subsystems of the i740 chip, so that might
       
   290  *     explain the blank screen.  - Stephen Blackheath
       
   291  *   3 September 2002 - Added software scaling in the situation where the
       
   292  *     screen size is smaller than the original video size, since scaling down
       
   293  *     is not supported by the hardware.  The implementation of this is not
       
   294  *     quite complete.
       
   295  *   12 September 2002 - Better software scaling with some averaging, giving a
       
   296  *     nicer picture.