cleanup
[linux-2.4.git] / include / asm-ppc64 / vc_ioctl.h
1 #ifndef _LINUX_VC_IOCTL_H
2 #define _LINUX_VC_IOCTL_H
3
4 /*
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version
8  * 2 of the License, or (at your option) any later version.
9  */
10
11 struct vc_mode {
12         int     height;
13         int     width;
14         int     depth;
15         int     pitch;
16         int     mode;
17         char    name[32];
18         unsigned long fb_address;
19         unsigned long cmap_adr_address;
20         unsigned long cmap_data_address;
21         unsigned long disp_reg_address;
22 };
23
24 #define VC_GETMODE      0x7667
25 #define VC_SETMODE      0x7668
26 #define VC_INQMODE      0x7669
27
28 #define VC_SETCMAP      0x766a
29 #define VC_GETCMAP      0x766b
30
31 #define VC_POWERMODE    0x766c
32
33 /* Values for the argument to the VC_POWERMODE ioctl */
34 #define VC_POWERMODE_INQUIRY    (-1)
35 #define VESA_NO_BLANKING        0
36 #define VESA_VSYNC_SUSPEND      1
37 #define VESA_HSYNC_SUSPEND      2
38 #define VESA_POWERDOWN          3
39
40 #ifdef __KERNEL__
41 extern int console_getmode(struct vc_mode *);
42 extern int console_setmode(struct vc_mode *, int);
43 extern int console_setcmap(int, unsigned char *, unsigned char *,
44                            unsigned char *);
45 extern int console_powermode(int);
46 extern struct vc_mode display_info;
47 extern struct fb_info *console_fb_info;
48 #endif
49
50 #endif /* _LINUX_VC_IOCTL_H */