Rev 1328 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1316 | 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 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
9 | * |
||
10 | * http://www.sssup.it |
||
11 | * http://retis.sssup.it |
||
12 | * http://shark.sssup.it |
||
13 | */ |
||
14 | |||
15 | /* |
||
16 | * Copyright (C) 2000 Paolo Gai, Luca Abeni |
||
17 | * |
||
18 | * This program is free software; you can redistribute it and/or modify |
||
19 | * it under the terms of the GNU General Public License as published by |
||
20 | * the Free Software Foundation; either version 2 of the License, or |
||
21 | * (at your option) any later version. |
||
22 | * |
||
23 | * This program is distributed in the hope that it will be useful, |
||
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
26 | * GNU General Public License for more details. |
||
27 | * |
||
28 | * You should have received a copy of the GNU General Public License |
||
29 | * along with this program; if not, write to the Free Software |
||
30 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
31 | * |
||
32 | */ |
||
33 | |||
34 | #include "kernel/kern.h" |
||
35 | #include "drivers/keyb.h" |
||
1325 | giacomo | 36 | #include "drivers/shark_linuxc26.h" |
37 | #include "drivers/shark_pci26.h" |
||
1327 | giacomo | 38 | #include "drivers/shark_fb26.h" |
1330 | giacomo | 39 | #include "drivers/grx_fb.h" |
1316 | giacomo | 40 | |
1327 | giacomo | 41 | extern int FB26_init(); |
1316 | giacomo | 42 | |
43 | int main (int argc, char *argv[]) |
||
44 | { |
||
1330 | giacomo | 45 | unsigned long long i; |
1323 | giacomo | 46 | |
1325 | giacomo | 47 | LINUXC26_register_module(); |
48 | PCI26_init(); |
||
1324 | giacomo | 49 | |
1327 | giacomo | 50 | FB26_init(); |
1326 | giacomo | 51 | |
1327 | giacomo | 52 | FB26_open(0); |
1326 | giacomo | 53 | |
1330 | giacomo | 54 | for (i=0;i<1000000000;i++); |
1328 | giacomo | 55 | |
1330 | giacomo | 56 | FB26_setmode(0,"800x600-16"); |
57 | |||
58 | /* Works only with 16 bpp mode */ |
||
59 | grx_fb_init(0); |
||
60 | |||
61 | grx_line(0,0,799,599,0xFFFF); |
||
62 | |||
63 | grx_rect(200,200,300,300,0xFF00); |
||
64 | |||
65 | grx_box(150,250,350,400,0xFFFF); |
||
66 | |||
67 | grx_circle(600,600,100,0x00FF); |
||
68 | |||
69 | for (i=0;i<10000000000;i++); |
||
1327 | giacomo | 70 | |
71 | FB26_close(0); |
||
72 | |||
1316 | giacomo | 73 | return 0; |
1323 | giacomo | 74 | |
1316 | giacomo | 75 | } |