File: /usr/src/linux/include/asm-ppc/vc_ioctl.h

1     /*
2      * BK Id: SCCS/s.vc_ioctl.h 1.5 05/17/01 18:14:26 cort
3      */
4     #ifndef _LINUX_VC_IOCTL_H
5     #define _LINUX_VC_IOCTL_H
6     
7     struct vc_mode {
8     	int	height;
9     	int	width;
10     	int	depth;
11     	int	pitch;
12     	int	mode;
13     	char	name[32];
14     	unsigned long fb_address;
15     	unsigned long cmap_adr_address;
16     	unsigned long cmap_data_address;
17     	unsigned long disp_reg_address;
18     };
19     
20     #define VC_GETMODE	0x7667
21     #define VC_SETMODE	0x7668
22     #define VC_INQMODE	0x7669
23     
24     #define VC_SETCMAP      0x766a
25     #define VC_GETCMAP      0x766b
26     
27     #define VC_POWERMODE	0x766c
28     
29     /* Values for the argument to the VC_POWERMODE ioctl */
30     #define VC_POWERMODE_INQUIRY	(-1)
31     #define VESA_NO_BLANKING	0
32     #define VESA_VSYNC_SUSPEND	1
33     #define VESA_HSYNC_SUSPEND	2
34     #define VESA_POWERDOWN		3
35     
36     #ifdef __KERNEL__
37     extern int console_getmode(struct vc_mode *);
38     extern int console_setmode(struct vc_mode *, int);
39     extern int console_setcmap(int, unsigned char *, unsigned char *,
40     			   unsigned char *);
41     extern int console_powermode(int);
42     extern struct vc_mode display_info;
43     extern struct fb_info *console_fb_info;
44     #endif
45     
46     #endif /* _LINUX_VC_IOCTL_H */
47