And I would like to thank Jean-Marc DURO for pointing me to a cheap 382
for sale less than an hour drive from $DAYJOB, after I had given up
trying to get a 362 or 382 to make sure OpenBSD would correctly support
the frame buffer on these models.

Miod

> CVSROOT:      /cvs
> Module name:  src
> Changes by:   m...@cvs.openbsd.org    2011/08/18 14:02:58
> 
> Modified files:
>       share/man/man4 : sti.4 
>       share/man/man4/man4.hp300: dio.4 
>       sys/arch/hp300/conf: files.hp300 
>       sys/arch/hp300/dev: dio.c diodevs diofbreg.h sti_sgc.c 
>       sys/arch/hp300/hp300: wscons_machdep.c 
>       sys/arch/hp300/stand: Makefile.inc 
>       sys/arch/hp300/stand/cdboot: cdboot.c conf.c 
>       sys/arch/hp300/stand/common: autoconf.c dca.c hpib.c if_le.c 
>                                    ite.c ite_sti.c ite_tc.c scsi.c 
>                                    version.c 
>       sys/arch/hp300/stand/include: device.h itevar.h samachdep.h 
>       sys/arch/hp300/stand/mkboot: mkboot.c 
>       sys/arch/hp300/stand/uboot: conf.c netio.c uboot.c 
>       sys/conf       : files 
>       sys/dev/ic     : sti.c 
> Added files:
>       sys/arch/hp300/dev: sti_dio.c sti_machdep.c sti_machdep.h 
> Removed files:
>       sys/arch/hp300/stand/include: grfreg.h 
> 
> Log message:
> So, it turns out that models 362 and 382 built-in frame buffer only shows up
> in DIO-II space, as a fat device spanning four select codes (i.e. 16MB of
> memory). This is way too much for an at-most 2 Mpixel 8bit frame buffer, and
> it turns out that this is because the device provides both a regular DIO-II
> frame buffer (spanning two select codes) and a regular STI frame buffer
> (spanning the other two select codes).
> This commit introduces a straightforward sti@dio attachment to get a working
> sti(4) and wsdisplay(4) in a ridiculously small number of lines; however
> the console code needs some changes to avoid duplicating globals.
> 
> While there, add sti@dio support for the bootblocks, and I couldn't help
> myself but clean the most rotten parts of them, and try to have them reuse
> various files in sys/arch/hp300/dev instead of rolling their outdated ones.
> 
> Tested on a real 382 with the low-resolution frame buffer:
> sti0 at dio0 scode 132: rev 8.02;129, ID 0x27134CB440A00499
> sti0: 382V, 2048x512 frame buffer, 640x480x8 display
> sti0: 8x16 font type 1, 16 bpc, charset 0-255
> wsdisplay0 at sti0 mux 1: console (std, vt100 emulation)
> 
> Boot blocks updates tested on DIO-II 425t (serial/glass console), SGC 425e
> (serial/glass console) and 382 (serial/glass console). And will be tested
> on SGC 425t soon as well.

Reply via email to