vc_ioctl.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef _LINUX_VC_IOCTL_H
  2. #define _LINUX_VC_IOCTL_H
  3. /*
  4.  * This program is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU General Public License
  6.  * as published by the Free Software Foundation; either version
  7.  * 2 of the License, or (at your option) any later version.
  8.  */
  9. struct vc_mode {
  10. int height;
  11. int width;
  12. int depth;
  13. int pitch;
  14. int mode;
  15. char name[32];
  16. unsigned long fb_address;
  17. unsigned long cmap_adr_address;
  18. unsigned long cmap_data_address;
  19. unsigned long disp_reg_address;
  20. };
  21. #define VC_GETMODE 0x7667
  22. #define VC_SETMODE 0x7668
  23. #define VC_INQMODE 0x7669
  24. #define VC_SETCMAP      0x766a
  25. #define VC_GETCMAP      0x766b
  26. #define VC_POWERMODE 0x766c
  27. /* Values for the argument to the VC_POWERMODE ioctl */
  28. #define VC_POWERMODE_INQUIRY (-1)
  29. #define VESA_NO_BLANKING 0
  30. #define VESA_VSYNC_SUSPEND 1
  31. #define VESA_HSYNC_SUSPEND 2
  32. #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
  42. #endif /* _LINUX_VC_IOCTL_H */