diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-08-18 20:02:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-08-18 20:02:59 +0000 |
commit | d8a6b2508d19a028506f1028b66d6c2162f5b865 (patch) | |
tree | e7bea31207a9a2c323968f95a4b8ecec9206b9fb /sys/arch/hp300/conf | |
parent | 10bf584eedef89396c2517839d033fced9385366 (diff) |
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.
Diffstat (limited to 'sys/arch/hp300/conf')
-rw-r--r-- | sys/arch/hp300/conf/files.hp300 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/hp300/conf/files.hp300 b/sys/arch/hp300/conf/files.hp300 index 68ad296b964..de89cc0fec4 100644 --- a/sys/arch/hp300/conf/files.hp300 +++ b/sys/arch/hp300/conf/files.hp300 @@ -1,4 +1,4 @@ -# $OpenBSD: files.hp300,v 1.33 2010/06/29 20:30:32 guenther Exp $ +# $OpenBSD: files.hp300,v 1.34 2011/08/18 20:02:57 miod Exp $ # $NetBSD: files.hp300,v 1.28 1997/05/12 08:23:28 thorpej Exp $ # # hp300-specific configuration info @@ -69,6 +69,8 @@ file arch/hp300/hp300/wscons_machdep.c wsdisplay # # Frame buffer devices # +file arch/hp300/dev/sti_machdep.c sti + define diofb define diofb_mono file arch/hp300/dev/diofb.c diofb | diofb_mono @@ -93,6 +95,9 @@ attach rbox at intio with rbox_intio attach rbox at dio with rbox_dio file arch/hp300/dev/rbox.c rbox needs-flag +attach sti at dio with sti_dio +file arch/hp300/dev/sti_dio.c sti_dio + device topcat: wsemuldisplaydev, diofb, rasops8 attach topcat at intio with topcat_intio attach topcat at dio with topcat_dio |