-
Notifications
You must be signed in to change notification settings - Fork 0
/
vfb2.h
40 lines (30 loc) · 794 Bytes
/
vfb2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _LINUX_VFB2_H
#define _LINUX_VFB2_H
#include <asm/types.h>
#include <linux/fb.h>
#define VFB2_16BPP_NO_TRANSP 0
#define VFB2_16BPP_TRANSP 1
struct vfb2_mode {
__u32 xres;
__u32 yres;
__u32 bpp;
__u32 visual;
__u8 transp_mode;
__u8 reserved[3];
};
#ifdef __KERNEL__
struct vfb2_init {
__u32 vmem_len;
struct vfb2_mode *mode_table;
int (*vfb2_ioctl)(unsigned int cmd, unsigned long arg,
int table_index);
void *private;
};
extern int vfb2_register(struct vfb2_init *init);
extern void vfb2_unregister(int table_index);
extern int vfb2_current_mode(int table_index);
extern void *vfb2_videomemory(int table_index);
extern struct fb_info *vfb2_fb_info(int table_index);
extern void *vfb2_private(int table_index);
#endif /* __KERNEL__ */
#endif /* _LINUX_VFB2_H */