Rev 484 | Rev 531 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
471 | giacomo | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Giacomo Guidi <giacomo@gandalf.sssup.it> |
||
10 | * |
||
11 | * |
||
12 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
13 | * |
||
14 | * http://www.sssup.it |
||
15 | * http://retis.sssup.it |
||
16 | * http://shark.sssup.it |
||
17 | */ |
||
18 | |||
19 | /* Glue Layer Header Linux Frame Buffer 2.6 Driver*/ |
||
20 | |||
21 | #ifndef __SHARK_FB26__ |
||
22 | #define __SHARK_FB26__ |
||
23 | |||
24 | /* Init the FB 2.6 Driver */ |
||
484 | giacomo | 25 | int FB26_init(); |
471 | giacomo | 26 | |
484 | giacomo | 27 | /* Open FB */ |
471 | giacomo | 28 | int FB26_open(int num); |
29 | |||
30 | /* Close the FB */ |
||
31 | int FB26_close(int num); |
||
32 | |||
484 | giacomo | 33 | /* Set mode */ |
34 | int FB26_setmode(int num, unsigned char *modeopt); |
||
35 | |||
529 | giacomo | 36 | /* Use old GRX library to draw */ |
37 | int FB26_use_grx(int num); |
||
38 | |||
39 | /* GRX emulation under FrameBuffer */ |
||
40 | |||
41 | void grx_plot(WORD x, WORD y, DWORD color); |
||
42 | DWORD grx_getpixel(WORD x, WORD y); |
||
43 | void grx_getimage(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
||
44 | void grx_putimage(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
||
45 | void grx_box(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color); |
||
46 | void grx_rect(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color); |
||
47 | void grx_line(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color); |
||
48 | void grx_text(char *text, WORD x, WORD y, DWORD fg, DWORD bg); |
||
49 | void grx_circle(WORD x, WORD y, WORD r, DWORD col); |
||
50 | void grx_disc(WORD x, WORD y, WORD r, DWORD col); |
||
51 | |||
471 | giacomo | 52 | #endif |
53 |