1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/xf4bpp/xf4bpp.h,v 1.9 2003/11/03 05:11:57 tsi Exp $ */
|
---|
2 |
|
---|
3 | #ifndef __XF4BPP_H__
|
---|
4 | #define __XF4BPP_H__
|
---|
5 |
|
---|
6 |
|
---|
7 | #include "windowstr.h"
|
---|
8 | #include "gcstruct.h"
|
---|
9 | #include "colormapst.h"
|
---|
10 | #include <X11/fonts/fontstruct.h>
|
---|
11 | #ifndef PixelType
|
---|
12 | #define PixelType CARD32
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | /* ppcArea.c */
|
---|
16 | void xf4bppFillArea(
|
---|
17 | WindowPtr,
|
---|
18 | int,
|
---|
19 | BoxPtr,
|
---|
20 | GCPtr
|
---|
21 | );
|
---|
22 |
|
---|
23 | /* ppcBStore.c */
|
---|
24 | void xf4bppSaveAreas(
|
---|
25 | PixmapPtr,
|
---|
26 | RegionPtr,
|
---|
27 | int,
|
---|
28 | int,
|
---|
29 | WindowPtr
|
---|
30 | );
|
---|
31 | void xf4bppRestoreAreas(
|
---|
32 | PixmapPtr,
|
---|
33 | RegionPtr,
|
---|
34 | int,
|
---|
35 | int,
|
---|
36 | WindowPtr
|
---|
37 | );
|
---|
38 |
|
---|
39 | /* ppcClip.c */
|
---|
40 | void xf4bppDestroyClip(
|
---|
41 | GCPtr
|
---|
42 | );
|
---|
43 | void xf4bppChangeClip(
|
---|
44 | GCPtr,
|
---|
45 | int,
|
---|
46 | pointer,
|
---|
47 | int
|
---|
48 | );
|
---|
49 | void xf4bppCopyClip(
|
---|
50 | GCPtr,
|
---|
51 | GCPtr
|
---|
52 | );
|
---|
53 |
|
---|
54 | /* ppcCpArea.c */
|
---|
55 | RegionPtr xf4bppCopyArea(
|
---|
56 | DrawablePtr,
|
---|
57 | DrawablePtr,
|
---|
58 | GCPtr,
|
---|
59 | int,
|
---|
60 | int,
|
---|
61 | int,
|
---|
62 | int,
|
---|
63 | int,
|
---|
64 | int
|
---|
65 | );
|
---|
66 |
|
---|
67 | /* ppcDepth.c */
|
---|
68 | Bool xf4bppDepthOK(
|
---|
69 | DrawablePtr,
|
---|
70 | int
|
---|
71 | );
|
---|
72 |
|
---|
73 | /* ppcFillRct.c */
|
---|
74 | void xf4bppPolyFillRect(
|
---|
75 | DrawablePtr,
|
---|
76 | GCPtr,
|
---|
77 | int,
|
---|
78 | xRectangle *
|
---|
79 | );
|
---|
80 |
|
---|
81 | /* ppcWindowFS.c */
|
---|
82 | void xf4bppSolidWindowFS(
|
---|
83 | DrawablePtr,
|
---|
84 | GCPtr,
|
---|
85 | int,
|
---|
86 | DDXPointPtr,
|
---|
87 | int *,
|
---|
88 | int
|
---|
89 | );
|
---|
90 | void xf4bppStippleWindowFS(
|
---|
91 | DrawablePtr,
|
---|
92 | GCPtr,
|
---|
93 | int,
|
---|
94 | DDXPointPtr,
|
---|
95 | int *,
|
---|
96 | int
|
---|
97 | );
|
---|
98 | void xf4bppOpStippleWindowFS(
|
---|
99 | DrawablePtr,
|
---|
100 | GCPtr,
|
---|
101 | int,
|
---|
102 | DDXPointPtr,
|
---|
103 | int *,
|
---|
104 | int
|
---|
105 | );
|
---|
106 | void xf4bppTileWindowFS(
|
---|
107 | DrawablePtr,
|
---|
108 | GCPtr,
|
---|
109 | int,
|
---|
110 | DDXPointPtr,
|
---|
111 | int *,
|
---|
112 | int
|
---|
113 | );
|
---|
114 |
|
---|
115 | /* xf4bppPixmapFS.c */
|
---|
116 | void xf4bppSolidPixmapFS(
|
---|
117 | DrawablePtr,
|
---|
118 | GCPtr,
|
---|
119 | int,
|
---|
120 | DDXPointPtr,
|
---|
121 | int *,
|
---|
122 | int
|
---|
123 | );
|
---|
124 | void xf4bppStipplePixmapFS(
|
---|
125 | DrawablePtr,
|
---|
126 | GCPtr,
|
---|
127 | int,
|
---|
128 | DDXPointPtr,
|
---|
129 | int *,
|
---|
130 | int
|
---|
131 | );
|
---|
132 | void xf4bppOpStipplePixmapFS(
|
---|
133 | DrawablePtr,
|
---|
134 | GCPtr,
|
---|
135 | int,
|
---|
136 | DDXPointPtr,
|
---|
137 | int *,
|
---|
138 | int
|
---|
139 | );
|
---|
140 | void xf4bppTilePixmapFS(
|
---|
141 | DrawablePtr,
|
---|
142 | GCPtr,
|
---|
143 | int,
|
---|
144 | DDXPointPtr,
|
---|
145 | int *,
|
---|
146 | int
|
---|
147 | );
|
---|
148 |
|
---|
149 | /* ppcGC.c */
|
---|
150 | Bool xf4bppCreateGC(
|
---|
151 | GCPtr
|
---|
152 | );
|
---|
153 | void xf4bppDestroyGC(
|
---|
154 | GC *
|
---|
155 | );
|
---|
156 | void xf4bppValidateGC(
|
---|
157 | GCPtr,
|
---|
158 | unsigned long,
|
---|
159 | DrawablePtr
|
---|
160 | );
|
---|
161 |
|
---|
162 | /* ppcGetSp.c */
|
---|
163 | void xf4bppGetSpans(
|
---|
164 | DrawablePtr,
|
---|
165 | int,
|
---|
166 | DDXPointPtr,
|
---|
167 | int *,
|
---|
168 | int,
|
---|
169 | char *
|
---|
170 | );
|
---|
171 |
|
---|
172 | /* ppcImg.c */
|
---|
173 | void xf4bppGetImage(
|
---|
174 | DrawablePtr,
|
---|
175 | int,
|
---|
176 | int,
|
---|
177 | int,
|
---|
178 | int,
|
---|
179 | unsigned int,
|
---|
180 | unsigned long,
|
---|
181 | char *
|
---|
182 | );
|
---|
183 |
|
---|
184 | /* ppcLine.c */
|
---|
185 | void xf4bppScrnZeroLine(
|
---|
186 | DrawablePtr,
|
---|
187 | GCPtr,
|
---|
188 | int,
|
---|
189 | int,
|
---|
190 | DDXPointPtr
|
---|
191 | );
|
---|
192 | void xf4bppScrnZeroDash(
|
---|
193 | DrawablePtr,
|
---|
194 | GCPtr,
|
---|
195 | int,
|
---|
196 | int,
|
---|
197 | DDXPointPtr
|
---|
198 | );
|
---|
199 | void xf4bppScrnZeroSegs(
|
---|
200 | DrawablePtr,
|
---|
201 | GCPtr,
|
---|
202 | int,
|
---|
203 | xSegment *
|
---|
204 | );
|
---|
205 |
|
---|
206 | /* ppcPixmap.c */
|
---|
207 | PixmapPtr xf4bppCreatePixmap(
|
---|
208 | ScreenPtr,
|
---|
209 | int,
|
---|
210 | int,
|
---|
211 | int
|
---|
212 | );
|
---|
213 | PixmapPtr xf4bppCopyPixmap(
|
---|
214 | PixmapPtr
|
---|
215 | );
|
---|
216 |
|
---|
217 | /* ppcPntWin.c */
|
---|
218 | void xf4bppPaintWindow(
|
---|
219 | WindowPtr,
|
---|
220 | RegionPtr,
|
---|
221 | int
|
---|
222 | );
|
---|
223 |
|
---|
224 | /* ppcPolyPnt.c */
|
---|
225 | void xf4bppPolyPoint(
|
---|
226 | DrawablePtr,
|
---|
227 | GCPtr,
|
---|
228 | int,
|
---|
229 | int,
|
---|
230 | xPoint *
|
---|
231 | );
|
---|
232 |
|
---|
233 | /* ppcPolyRec.c */
|
---|
234 | void xf4bppPolyRectangle(
|
---|
235 | DrawablePtr,
|
---|
236 | GCPtr,
|
---|
237 | int,
|
---|
238 | xRectangle *
|
---|
239 | );
|
---|
240 |
|
---|
241 | /* ppcQuery.c */
|
---|
242 | void xf4bppQueryBestSize(
|
---|
243 | int,
|
---|
244 | unsigned short *,
|
---|
245 | unsigned short *,
|
---|
246 | ScreenPtr
|
---|
247 | );
|
---|
248 |
|
---|
249 | /* ppcRslvC.c */
|
---|
250 | void xf4bppResolveColor(
|
---|
251 | unsigned short *,
|
---|
252 | unsigned short *,
|
---|
253 | unsigned short *,
|
---|
254 | VisualPtr
|
---|
255 | );
|
---|
256 | Bool xf4bppInitializeColormap(
|
---|
257 | ColormapPtr
|
---|
258 | );
|
---|
259 |
|
---|
260 | /* ppcSetSp.c */
|
---|
261 | void xf4bppSetSpans(
|
---|
262 | DrawablePtr,
|
---|
263 | GCPtr,
|
---|
264 | char *,
|
---|
265 | DDXPointPtr,
|
---|
266 | int *,
|
---|
267 | int,
|
---|
268 | int
|
---|
269 | );
|
---|
270 |
|
---|
271 | /* ppcWindow.c */
|
---|
272 | void xf4bppCopyWindow(
|
---|
273 | WindowPtr,
|
---|
274 | DDXPointRec,
|
---|
275 | RegionPtr
|
---|
276 | );
|
---|
277 | Bool xf4bppPositionWindow(
|
---|
278 | WindowPtr,
|
---|
279 | int,
|
---|
280 | int
|
---|
281 | );
|
---|
282 | Bool xf4bppUnrealizeWindow(
|
---|
283 | WindowPtr,
|
---|
284 | int,
|
---|
285 | int
|
---|
286 | );
|
---|
287 | Bool xf4bppDestroyWindow(
|
---|
288 | WindowPtr
|
---|
289 | );
|
---|
290 | Bool xf4bppCreateWindowForXYhardware(
|
---|
291 | WindowPtr
|
---|
292 | );
|
---|
293 |
|
---|
294 | /* emulOpStip.c */
|
---|
295 | void xf4bppOpaqueStipple(
|
---|
296 | WindowPtr,
|
---|
297 | PixmapPtr,
|
---|
298 | unsigned long int,
|
---|
299 | unsigned long int,
|
---|
300 | int,
|
---|
301 | unsigned long int,
|
---|
302 | int,
|
---|
303 | int,
|
---|
304 | int,
|
---|
305 | int,
|
---|
306 | int,
|
---|
307 | int
|
---|
308 | );
|
---|
309 |
|
---|
310 | /* emulRepAre.c */
|
---|
311 | void xf4bppReplicateArea(
|
---|
312 | WindowPtr,
|
---|
313 | int,
|
---|
314 | int,
|
---|
315 | int,
|
---|
316 | int,
|
---|
317 | int,
|
---|
318 | int,
|
---|
319 | int
|
---|
320 | );
|
---|
321 |
|
---|
322 | /* emulTile.c */
|
---|
323 | void xf4bppTileRect(
|
---|
324 | WindowPtr,
|
---|
325 | PixmapPtr,
|
---|
326 | const int,
|
---|
327 | const unsigned long int,
|
---|
328 | int,
|
---|
329 | int,
|
---|
330 | int,
|
---|
331 | int,
|
---|
332 | int,
|
---|
333 | int
|
---|
334 | );
|
---|
335 |
|
---|
336 | /* vgaGC.c */
|
---|
337 | Mask xf4bppChangeWindowGC(
|
---|
338 | GCPtr,
|
---|
339 | Mask
|
---|
340 | );
|
---|
341 |
|
---|
342 | /* vgaBitBlt.c */
|
---|
343 | void xf4bppBitBlt(
|
---|
344 | WindowPtr,
|
---|
345 | int,
|
---|
346 | int,
|
---|
347 | int,
|
---|
348 | int,
|
---|
349 | int,
|
---|
350 | int,
|
---|
351 | int,
|
---|
352 | int
|
---|
353 | );
|
---|
354 |
|
---|
355 | /* vgaImages.c */
|
---|
356 | void xf4bppDrawColorImage(
|
---|
357 | WindowPtr,
|
---|
358 | int,
|
---|
359 | int,
|
---|
360 | int,
|
---|
361 | int,
|
---|
362 | unsigned char *,
|
---|
363 | int,
|
---|
364 | const int,
|
---|
365 | const unsigned long int
|
---|
366 | );
|
---|
367 | void xf4bppReadColorImage(
|
---|
368 | WindowPtr,
|
---|
369 | int,
|
---|
370 | int,
|
---|
371 | int,
|
---|
372 | int,
|
---|
373 | unsigned char *,
|
---|
374 | int
|
---|
375 | );
|
---|
376 |
|
---|
377 | /* vgaLine.c */
|
---|
378 | void xf4bppHorzLine(
|
---|
379 | WindowPtr,
|
---|
380 | unsigned long int,
|
---|
381 | int,
|
---|
382 | unsigned long int,
|
---|
383 | int,
|
---|
384 | int,
|
---|
385 | int
|
---|
386 | );
|
---|
387 | void xf4bppVertLine(
|
---|
388 | WindowPtr,
|
---|
389 | unsigned long int,
|
---|
390 | int,
|
---|
391 | unsigned long int,
|
---|
392 | int,
|
---|
393 | int,
|
---|
394 | int
|
---|
395 | );
|
---|
396 | void xf4bppBresLine(
|
---|
397 | WindowPtr,
|
---|
398 | unsigned long int,
|
---|
399 | int,
|
---|
400 | unsigned long int,
|
---|
401 | int,
|
---|
402 | int,
|
---|
403 | int,
|
---|
404 | int,
|
---|
405 | int,
|
---|
406 | int,
|
---|
407 | int,
|
---|
408 | int,
|
---|
409 | unsigned long int
|
---|
410 | );
|
---|
411 |
|
---|
412 | /* vgaStipple.c */
|
---|
413 | void xf4bppFillStipple(
|
---|
414 | WindowPtr,
|
---|
415 | const PixmapPtr,
|
---|
416 | unsigned long int,
|
---|
417 | const int,
|
---|
418 | unsigned long int,
|
---|
419 | int,
|
---|
420 | int,
|
---|
421 | int,
|
---|
422 | int,
|
---|
423 | const int,
|
---|
424 | const int
|
---|
425 | );
|
---|
426 |
|
---|
427 | /* vgaSolid.c */
|
---|
428 | void xf4bppFillSolid(
|
---|
429 | WindowPtr,
|
---|
430 | unsigned long int,
|
---|
431 | const int,
|
---|
432 | unsigned long int,
|
---|
433 | int,
|
---|
434 | const int,
|
---|
435 | int,
|
---|
436 | const int
|
---|
437 | );
|
---|
438 |
|
---|
439 | /* offscreen.c */
|
---|
440 | void xf4bppOffBitBlt(
|
---|
441 | WindowPtr,
|
---|
442 | const int,
|
---|
443 | const int,
|
---|
444 | int,
|
---|
445 | int,
|
---|
446 | int,
|
---|
447 | int,
|
---|
448 | int,
|
---|
449 | int
|
---|
450 | );
|
---|
451 | void xf4bppOffDrawColorImage(
|
---|
452 | WindowPtr,
|
---|
453 | int,
|
---|
454 | int,
|
---|
455 | int,
|
---|
456 | int,
|
---|
457 | unsigned char *,
|
---|
458 | int,
|
---|
459 | const int,
|
---|
460 | const unsigned long int
|
---|
461 | );
|
---|
462 | void xf4bppOffReadColorImage(
|
---|
463 | WindowPtr,
|
---|
464 | int,
|
---|
465 | int,
|
---|
466 | int,
|
---|
467 | int,
|
---|
468 | unsigned char *,
|
---|
469 | int
|
---|
470 | );
|
---|
471 | void xf4bppOffFillSolid(
|
---|
472 | WindowPtr,
|
---|
473 | unsigned long int,
|
---|
474 | const int,
|
---|
475 | unsigned long int,
|
---|
476 | int,
|
---|
477 | const int,
|
---|
478 | int,
|
---|
479 | const int
|
---|
480 | );
|
---|
481 | void xf4bppOffDrawMonoImage(
|
---|
482 | WindowPtr,
|
---|
483 | unsigned char *,
|
---|
484 | int,
|
---|
485 | int,
|
---|
486 | int,
|
---|
487 | int,
|
---|
488 | unsigned long int,
|
---|
489 | int,
|
---|
490 | unsigned long int
|
---|
491 | );
|
---|
492 | void xf4bppOffFillStipple(
|
---|
493 | WindowPtr,
|
---|
494 | const PixmapPtr,
|
---|
495 | unsigned long int,
|
---|
496 | const int,
|
---|
497 | unsigned long int,
|
---|
498 | int,
|
---|
499 | int,
|
---|
500 | int,
|
---|
501 | int,
|
---|
502 | const int,
|
---|
503 | const int
|
---|
504 | );
|
---|
505 |
|
---|
506 | /* mfbimggblt.c */
|
---|
507 | void xf4bppImageGlyphBlt(
|
---|
508 | DrawablePtr,
|
---|
509 | GCPtr,
|
---|
510 | int,
|
---|
511 | int,
|
---|
512 | unsigned int,
|
---|
513 | CharInfoPtr *,
|
---|
514 | pointer
|
---|
515 | );
|
---|
516 |
|
---|
517 | /* wm3.c */
|
---|
518 | int wm3_set_regs(
|
---|
519 | GC *
|
---|
520 | );
|
---|
521 |
|
---|
522 | /* ppcIO.c */
|
---|
523 | void xf4bppNeverCalled(
|
---|
524 | void
|
---|
525 | );
|
---|
526 | Bool xf4bppScreenInit(
|
---|
527 | ScreenPtr,
|
---|
528 | pointer,
|
---|
529 | int,
|
---|
530 | int,
|
---|
531 | int,
|
---|
532 | int,
|
---|
533 | int
|
---|
534 | );
|
---|
535 |
|
---|
536 | /* mfbfillarc.c */
|
---|
537 | void xf4bppPolyFillArc(
|
---|
538 | DrawablePtr,
|
---|
539 | GCPtr,
|
---|
540 | int,
|
---|
541 | xArc *
|
---|
542 | );
|
---|
543 |
|
---|
544 | /* mfbzerarc.c */
|
---|
545 | void xf4bppZeroPolyArc(
|
---|
546 | DrawablePtr,
|
---|
547 | GCPtr,
|
---|
548 | int,
|
---|
549 | xArc *
|
---|
550 | );
|
---|
551 |
|
---|
552 | /* mfbline.c */
|
---|
553 | void xf4bppSegmentSS (
|
---|
554 | DrawablePtr,
|
---|
555 | GCPtr,
|
---|
556 | int,
|
---|
557 | xSegment *
|
---|
558 | );
|
---|
559 | void xf4bppLineSS (
|
---|
560 | DrawablePtr,
|
---|
561 | GCPtr,
|
---|
562 | int,
|
---|
563 | int,
|
---|
564 | DDXPointPtr
|
---|
565 | );
|
---|
566 | void xf4bppSegmentSD (
|
---|
567 | DrawablePtr,
|
---|
568 | GCPtr,
|
---|
569 | int,
|
---|
570 | xSegment *
|
---|
571 | );
|
---|
572 | void xf4bppLineSD (
|
---|
573 | DrawablePtr,
|
---|
574 | GCPtr,
|
---|
575 | int,
|
---|
576 | int,
|
---|
577 | DDXPointPtr
|
---|
578 | );
|
---|
579 |
|
---|
580 | /* mfbbres.c */
|
---|
581 | void xf4bppBresS(
|
---|
582 | PixelType *,
|
---|
583 | int,
|
---|
584 | int,
|
---|
585 | int,
|
---|
586 | int,
|
---|
587 | int,
|
---|
588 | int,
|
---|
589 | int,
|
---|
590 | int,
|
---|
591 | int,
|
---|
592 | int
|
---|
593 | );
|
---|
594 |
|
---|
595 | /* mfbbresd.c */
|
---|
596 | void xf4bppBresD(
|
---|
597 | DrawablePtr,
|
---|
598 | int, int,
|
---|
599 | int *,
|
---|
600 | unsigned char *,
|
---|
601 | int,
|
---|
602 | int *,
|
---|
603 | int,
|
---|
604 | PixelType *,
|
---|
605 | int, int, int, int, int, int,
|
---|
606 | int, int,
|
---|
607 | int, int
|
---|
608 | );
|
---|
609 |
|
---|
610 | /* mfbhrzvert.c */
|
---|
611 | void xf4bppHorzS(
|
---|
612 | PixelType *,
|
---|
613 | int,
|
---|
614 | int,
|
---|
615 | int,
|
---|
616 | int
|
---|
617 | );
|
---|
618 | void xf4bppVertS(
|
---|
619 | PixelType *,
|
---|
620 | int,
|
---|
621 | int,
|
---|
622 | int,
|
---|
623 | int
|
---|
624 | );
|
---|
625 |
|
---|
626 | #ifdef PC98_EGC
|
---|
627 |
|
---|
628 | /* egc_asm.s */
|
---|
629 | unsigned char getbits_x(
|
---|
630 | int,
|
---|
631 | unsigned int,
|
---|
632 | pointer,
|
---|
633 | unsigned int
|
---|
634 | );
|
---|
635 | void wcopyr(
|
---|
636 | pointer,
|
---|
637 | pointer,
|
---|
638 | int,
|
---|
639 | pointer
|
---|
640 | );
|
---|
641 | void wcopyl(
|
---|
642 | pointer,
|
---|
643 | pointer,
|
---|
644 | int,
|
---|
645 | pointer
|
---|
646 | );
|
---|
647 | unsigned long int read8Z(
|
---|
648 | pointer
|
---|
649 | );
|
---|
650 |
|
---|
651 | #endif /* PC98_EGC */
|
---|
652 |
|
---|
653 | #endif /* __XF4BPP_H__ */
|
---|