Changeset cd62f7a in rtems


Ignore:
Timestamp:
Jul 24, 2009, 1:28:44 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
24399ad
Parents:
8daaa65e
Message:

2009-07-24 Roxana Leontie <roxana.leontie@…>

  • console/fb_vga.c: divided fb_screeninfo structure into fb_var_screeninfo and fb_fix_screeninfo; same with get_screen_info
Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    r8daaa65e rcd62f7a  
     12009-07-24      Roxana Leontie <roxana.leontie@gmail.com>
     2
     3        * console/fb_vga.c: divided fb_screeninfo structure into
     4        fb_var_screeninfo and fb_fix_screeninfo; same with get_screen_info
     5
    162009-07-21      Roxana Leontie <roxana.leontie@gmail.com>
    27
  • c/src/lib/libbsp/i386/pc386/console/fb_vga.c

    r8daaa65e rcd62f7a  
    2929
    3030/* screen information for the VGA driver */
    31 static struct fb_screeninfo fb_info =
     31static struct fb_var_screeninfo fb_var =
    3232{
    3333   640, 480,                     /* screen size x, y  */
    34    4,                            /* bits per pixel    */
    35    80,                           /* chars per line    */
     34   4                             /* bits per pixel    */
     35};
     36
     37static struct fb_fix_screeninfo fb_fix =
     38{
    3639   (volatile char *)0xA0000,     /* buffer pointer    */
    3740   0x10000,                      /* buffer size       */
    3841   FB_TYPE_VGA_PLANES,           /* type of dsplay    */
    39         FB_VISUAL_PSEUDOCOLOR         /* color scheme used */
     42   FB_VISUAL_PSEUDOCOLOR,        /* color scheme used */
     43   80                            /* chars per line    */
    4044};
    4145
     
    131135}
    132136
    133 static int get_screen_info( struct fb_screeninfo *info )
    134 {
    135   *info = fb_info;
     137static int get_fix_screen_info( struct fb_fix_screeninfo *info )
     138{
     139  *info = fb_fix;
     140  return 0;
     141}
     142
     143static int get_var_screen_info( struct fb_var_screeninfo *info )
     144{
     145  *info = fb_var;
    136146  return 0;
    137147}
     
    184194   {
    185195      case FBIOGET_FSCREENINFO:
    186       args->ioctl_return =  get_screen_info( args->buffer );
     196      args->ioctl_return =  get_fix_screen_info( args->buffer );
     197      break;
     198      case FBIOGET_VSCREENINFO:
     199      args->ioctl_return =  get_var_screen_info( args->buffer );
     200      break;
     201      case FBIOPUT_VSCREENINFO:
     202      /* not implemented yet*/
    187203      break;
    188204      case FBIOGETCMAP:
Note: See TracChangeset for help on using the changeset viewer.