* better
[mascara-docs.git] / i386 / linux-2.3.21 / include / asm-ppc / vc_ioctl.h
blob3d8b884b902d212102b165e4b8c4287ba705e930
1 #ifndef _LINUX_VC_IOCTL_H
2 #define _LINUX_VC_IOCTL_H
4 struct vc_mode {
5 int height;
6 int width;
7 int depth;
8 int pitch;
9 int mode;
10 char name[32];
11 unsigned long fb_address;
12 unsigned long cmap_adr_address;
13 unsigned long cmap_data_address;
14 unsigned long disp_reg_address;
17 #define VC_GETMODE 0x7667
18 #define VC_SETMODE 0x7668
19 #define VC_INQMODE 0x7669
21 #define VC_SETCMAP 0x766a
22 #define VC_GETCMAP 0x766b
24 #define VC_POWERMODE 0x766c
26 /* Values for the argument to the VC_POWERMODE ioctl */
27 #define VC_POWERMODE_INQUIRY (-1)
28 #define VESA_NO_BLANKING 0
29 #define VESA_VSYNC_SUSPEND 1
30 #define VESA_HSYNC_SUSPEND 2
31 #define VESA_POWERDOWN 3
33 #ifdef __KERNEL__
34 extern int console_getmode(struct vc_mode *);
35 extern int console_setmode(struct vc_mode *, int);
36 extern int console_setcmap(int, unsigned char *, unsigned char *,
37 unsigned char *);
38 extern int console_powermode(int);
39 extern struct vc_mode display_info;
40 extern struct fb_info *console_fb_info;
41 #endif
43 #endif /* _LINUX_VC_IOCTL_H */