|
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. |
|
56 All Rights Reserved. |
|
57 |
|
58 Permission is hereby granted, free of charge, to any person obtaining a |
|
59 copy of this software and associated documentation files (the |
|
60 "Software"), to deal in the Software without restriction, including |
|
61 without limitation the rights to use, copy, modify, merge, publish, |
|
62 distribute, sub license, and/or sell copies of the Software, and to |
|
63 permit persons to whom the Software is furnished to do so, subject to |
|
64 the following conditions: |
|
65 |
|
66 The above copyright notice and this permission notice (including the |
|
67 next paragraph) shall be included in all copies or substantial portions |
|
68 of the Software. |
|
69 |
|
70 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
71 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
72 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
|
73 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR |
|
74 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
75 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
76 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
77 |
|
78 ************************************************************************* |
|
79 |
|
80 * Copyright 2001 by Patrick LERDA |
|
81 * |
|
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 |
|
103 * Copyright 2001 by Patrick LERDA |
|
104 * |
|
105 * Permission to use, copy, modify, distribute, and sell this software and its |
|
106 * documentation for any purpose is hereby granted without fee, provided that |
|
107 * the above copyright notice appear in all copies and that both that |
|
108 * copyright notice and this permission notice appear in supporting |
|
109 * documentation, and that the name of Patrick LERDA not be used in |
|
110 * advertising or publicity pertaining to distribution of the software without |
|
111 * specific, written prior permission. Patrick LERDA makes no representations |
|
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 |
|
127 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. |
|
128 All Rights Reserved. |
|
129 |
|
130 Permission is hereby granted, free of charge, to any person obtaining a |
|
131 copy of this software and associated documentation files (the |
|
132 "Software"), to deal in the Software without restriction, including |
|
133 without limitation the rights to use, copy, modify, merge, publish, |
|
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 |
|
150 ************************************************************************* |
|
151 |
|
152 * Copyright 2001 by Patrick LERDA |
|
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 |
|
179 Permission is hereby granted, free of charge, to any person obtaining a |
|
180 copy of this software and associated documentation files (the |
|
181 "Software"), to deal in the Software without restriction, including |
|
182 without limitation the rights to use, copy, modify, merge, publish, |
|
183 distribute, sub license, and/or sell copies of the Software, and to |
|
184 permit persons to whom the Software is furnished to do so, subject to |
|
185 the following conditions: |
|
186 |
|
187 The above copyright notice and this permission notice (including the |
|
188 next paragraph) shall be included in all copies or substantial portions |
|
189 of the Software. |
|
190 |
|
191 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
192 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
193 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
|
194 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR |
|
195 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
196 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
197 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 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. |