Port-hp300 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: HP 9000/332 support?



I wrote:

> (an old topic)
> cmhanson@ wrote:
 :
> > Another issue I've noticed is that the HP 98343A video card is
> > recognized as 1024x400@4bpp instead of 512x400@4bpp, so upon
> > switch from the secondary booter to the kernel, wscons text is
> > compressed and difficult to read. It might be necessary to
> > special-case the 98343A for this if its ROM is returning the
> > wrong data.
> 
> I've got 98543 DIO-II board via ebay so I'll check this issue soon
> on my 380.
> 
> Note there was the similar discussion here back in 2013:
>  https://mail-index.netbsd.org/port-hp300/2013/09/30/msg000088.html

There was a patch to handle 1bpp 98542 topcat (512x400)
 https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000086.html

---
Index: diofb.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hp300/dev/diofb.c,v
retrieving revision 1.3
diff -u -r1.3 diofb.c
--- diofb.c	18 Feb 2011 19:15:43 -0000	1.3
+++ diofb.c	27 Sep 2013 23:11:55 -0000
@@ -146,6 +146,14 @@
 	if (fb->dheight > fb->fbheight)
 		fb->dheight = fb->fbheight;
 
+	/*
+	 * Some monochrome displays, such as the HP332 internal video
+	 * appear to return a display width of 1024 instead of 512.
+	 */
+	if (fbr->num_planes == 1 && fb->dheight == 400)
+		if (fb->dwidth == 1024)
+			fb->dwidth = 512;
+
 	fb->planes = fbr->num_planes;
 	if (fb->planes > 8)
 		fb->planes = 8;
---

Maybe we need the simliar 1024 -> 512 adjustment on not only 1bpp 98542
but also 4bpp 98543 with dheight==400?

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index