1 #ifndef _LINUX_VC_IOCTL_H
2 #define _LINUX_VC_IOCTL_H
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.
18 unsigned long fb_address;
19 unsigned long cmap_adr_address;
20 unsigned long cmap_data_address;
21 unsigned long disp_reg_address;
24 #define VC_GETMODE 0x7667
25 #define VC_SETMODE 0x7668
26 #define VC_INQMODE 0x7669
28 #define VC_SETCMAP 0x766a
29 #define VC_GETCMAP 0x766b
31 #define VC_POWERMODE 0x766c
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
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 *,
45 extern int console_powermode(int);
46 extern struct vc_mode display_info;
47 extern struct fb_info *console_fb_info;
50 #endif /* _LINUX_VC_IOCTL_H */