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

Linux/Unix编程

开发平台:

Unix_Linux

  1. #define NULL 0
  2. typedef unsigned int size_t; 
  3. struct screen_info {
  4. unsigned char  orig_x; /* 0x00 */
  5. unsigned char  orig_y; /* 0x01 */
  6. unsigned short dontuse1; /* 0x02 -- EXT_MEM_K sits here */
  7. unsigned short orig_video_page; /* 0x04 */
  8. unsigned char  orig_video_mode; /* 0x06 */
  9. unsigned char  orig_video_cols; /* 0x07 */
  10. unsigned short unused2; /* 0x08 */
  11. unsigned short orig_video_ega_bx; /* 0x0a */
  12. unsigned short unused3; /* 0x0c */
  13. unsigned char  orig_video_lines; /* 0x0e */
  14. unsigned char  orig_video_isVGA; /* 0x0f */
  15. unsigned short orig_video_points; /* 0x10 */
  16. /* VESA graphic mode -- linear frame buffer */
  17. unsigned short lfb_width; /* 0x12 */
  18. unsigned short lfb_height; /* 0x14 */
  19. unsigned short lfb_depth; /* 0x16 */
  20. unsigned long  lfb_base; /* 0x18 */
  21. unsigned long  lfb_size; /* 0x1c */
  22. unsigned short dontuse2, dontuse3; /* 0x20 -- CL_MAGIC and CL_OFFSET here */
  23. unsigned short lfb_linelength; /* 0x24 */
  24. unsigned char  red_size; /* 0x26 */
  25. unsigned char  red_pos; /* 0x27 */
  26. unsigned char  green_size; /* 0x28 */
  27. unsigned char  green_pos; /* 0x29 */
  28. unsigned char  blue_size; /* 0x2a */
  29. unsigned char  blue_pos; /* 0x2b */
  30. unsigned char  rsvd_size; /* 0x2c */
  31. unsigned char  rsvd_pos; /* 0x2d */
  32. unsigned short vesapm_seg; /* 0x2e */
  33. unsigned short vesapm_off; /* 0x30 */
  34. unsigned short pages; /* 0x32 */
  35. /* 0x34 -- 0x3f reserved for future expansion */
  36. };