File: fbtools.h

package info (click to toggle)
fbi 2.07-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,240 kB
  • ctags: 2,357
  • sloc: ansic: 17,896; sh: 59; makefile: 33; perl: 12
file content (23 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define FB_ACTIVE    0
#define FB_REL_REQ   1
#define FB_INACTIVE  2
#define FB_ACQ_REQ   3

/* info about videomode - yes I know, quick & dirty... */
extern struct fb_fix_screeninfo   fb_fix;
extern struct fb_var_screeninfo   fb_var;
extern unsigned char             *fb_mem;
extern int			  fb_mem_offset;
extern int                        fb_switch_state;

/* init + cleanup */
int fb_probe(void);
int  fb_init(char *device, char *mode, int vt);
void fb_cleanup(void);
void fb_catch_exit_signals(void);
void fb_memset(void *addr, int c, size_t len);

/* console switching */
int  fb_switch_init(void);
void fb_switch_release(void);
void fb_switch_acquire(void);