Subject: Re: half-baked SFB patch
To: None <port-pmax@NetBSD.ORG>
From: Michael L. Hitch <mhitch@lightning.oscs.montana.edu>
List: port-pmax
Date: 03/19/1998 23:10:26
On Mar 18, 5:04pm, Jonathan Stone wrote:
>
> ...The following patch, for sys/arch/pmax/dev/sfb.c, may not even
> compile, but if it does, it should get the correct screen size on the
> PMAGB-BB and other variants.
>
> The kernel will probably need additional work to get the console size
> correct, but it'd be very helpful to know if this is approximately
> right.
Almost, but isn't fb_height the vertical size of the framebuffer, and
fb_width the horizontal width?
I also think that fi_pixelsize and fi_linebytes probably need to be
calculated. Also, the offset values used for positioning the cursor
in bt459.c need to be adjusted depending upon the display size.
> + fi->fi_type.fb_height = (h_setup & 0x01ff) << 2;
> + fi->fi_type.fb_width = (v_setup & 0x07ff);
Michael
--
Michael L. Hitch mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University Bozeman, MT USA