annotate TVout/fbset/fbset.h @ 12820:48294a6def86

synchronizoation
author paszczi
date Wed, 14 Jul 2004 18:29:42 +0000
parents 3b5f5d1c5041
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 * Linux Frame Buffer Device Configuration
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 * © Copyright 1995-1998 by Geert Uytterhoeven
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 * (Geert.Uytterhoeven@cs.kuleuven.ac.be)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 * --------------------------------------------------------------------------
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 * This file is subject to the terms and conditions of the GNU General Public
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 * License. See the file COPYING in the main directory of the Linux
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 * distribution for more details.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 #include <stdio.h>
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 #include <sys/types.h>
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 #ifdef __GLIBC__
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 #include <asm/types.h>
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 #define VERSION "Linux Frame Buffer Device Configuration " \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 "Version 2.1 (23/06/1999)\n" \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 "(C) Copyright 1995-1999 by Geert Uytterhoeven\n"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 #define LOW (0)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 #define HIGH (1)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 #define FALSE (0)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 #define TRUE (1)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 struct color {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 unsigned int length;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 unsigned int offset;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 struct VideoMode {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 struct VideoMode *next;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 const char *name;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 /* geometry */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 __u32 xres;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 __u32 yres;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 __u32 vxres;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 __u32 vyres;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 __u32 depth;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 __u32 nonstd;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 /* acceleration */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 __u32 accel_flags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 /* timings */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 __u32 pixclock;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 __u32 left;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 __u32 right;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 __u32 upper;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 __u32 lower;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 __u32 hslen;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 __u32 vslen;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 /* flags */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 unsigned hsync : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 unsigned vsync : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 unsigned csync : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 unsigned gsync : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 unsigned extsync : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 unsigned bcast : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 unsigned laced : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 unsigned dblscan : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 unsigned grayscale : 1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 /* scanrates */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 double drate;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 double hrate;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 double vrate;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 /* RGB entries */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 struct color red, green, blue, transp;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 extern FILE *yyin;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 extern int line;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 extern const char *Opt_modedb;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 extern int yyparse(void);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 extern void Die(const char *fmt, ...) __attribute__ ((noreturn));
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 extern void AddVideoMode(const struct VideoMode *vmode);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 extern void makeRGBA(struct VideoMode *vmode, const char* opt);