This is what I found in savagefb.c

static struct fb_var_screeninfo __devinitdata savagefb_var800x600x8 = {
        accel_flags:    FB_ACCELF_TEXT,
        xres:           800,
        yres:           600,
        xres_virtual:   800,
        yres_virtual:   30000,
        bits_per_pixel: 8,
        pixclock:       25000,
        left_margin:    88,
        right_margin:   40,
        upper_margin:   23,
        lower_margin:   1,
        hsync_len:      128,
        vsync_len:      4,
        sync:           FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
        vmode:          FB_VMODE_NONINTERLACED
};

This structure is assigned at 2 different places -


savagefb_var = &savagefb_var800x600x8;   <------  HERE

...

unsigned char cr6b = VGArCR( 0x6b );
int panelX = (VGArSEQ (0x61) +
                    ((VGArSEQ (0x66) & 0x02) << 7) + 1) * 8;

.....

 if (panelX == 800)
        savagefb_var = &savagefb_var800x600x8;   <----- AND HERE
else if (panelX == 1024)
        savagefb_var = &savagefb_var1024x768x8;
else if (panelX == 1280)
        savagefb_var = &savagefb_var1280x1024x8;



I suppose one would have to create another structure for 640x480 with
appropriate values?   I am afraid to make any modifications since I have no
experience with coding drivers!!

Sumit




----- Original Message -----
From: "Denis Oliver Kropp" <[EMAIL PROTECTED]>
To: "Sumit Birla" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 08, 2003 10:52 AM
Subject: [directfb-users] Re: Fw: Re: savagefb on IBM T23 (supersavage
MX/IX)


> Quoting Sumit Birla ([EMAIL PROTECTED]):
> >  Has anyone figured out the correct syntax for passing parameters to the
> > savagefb?  I have tried numerous combinations, but the framebuffer
always
> > starts up with 800x600 resolution.  I would like to set it to 640x480.
>
> There are no paramaters for the default resolution.
> Search for "... = &...800x600..." in savagefb.c,
> I'm not really sure what the rest of the line looks like.
> However, such a parameter is a high priority TOOD.
>
> --
> Best regards,
>   Denis Oliver Kropp
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
>
>                             Convergence GmbH
>
>
> --
> Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
> "unsubscribe directfb-users" as subject.
>



-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to