wsfb raster console driver added to current
Rin Okuyama <[email protected]> Fri, 26 Jul 2019 20:32:04 +0900
| Newsgroups | gmane.os.netbsd.ports.mac68k |
|---|---|
| Message-ID | <[email protected]> |
Hi all! I just added genfb(4) driver for mac68k, which provides modern raster console with wsfb API. ANSI colors as well as graphic-base applications such as Xorg 1.20 and mlterm-fb work fine like on other ports. That driver is now provided in separate kernel config files, WSFB and WSFBSBC, that correspond to GENERIC and GENERICSBC, respectively. Note that for 8 depth (256 color) mode, graphic-base application requires colormap callback, which is currently supported for some internal graphic adapters, and only tested on Civic (Quadra AV). I'm glad if you can tell whether it works or not on your machines. Thanks, rin -------- Forwarded Message -------- Subject: CVS commit: src Date: Fri, 26 Jul 2019 10:48:45 +0000 From: Rin Okuyama <[email protected]> Reply-To: [email protected] To: [email protected] Module Name: src Committed By: rin Date: Fri Jul 26 10:48:45 UTC 2019 Modified Files: src/share/man/man4: genfb.4 src/sys/arch/mac68k/conf: files.mac68k src/sys/arch/mac68k/dev: grf_subr.c grfvar.h maccons.c src/sys/arch/mac68k/mac68k: conf.c machdep.c src/sys/arch/mac68k/obio: grf_obio.c src/sys/dev/rasops: rasops.c src/sys/dev/wsfb: files.wsfb Added Files: src/sys/arch/mac68k/conf: WSFB WSFB.common WSFBSBC src/sys/arch/mac68k/dev: genfb_grfbus.c src/sys/arch/mac68k/obio: grf_obioreg.h Log Message: Add genfb(4) driver for mac68k grfbus. 1, 2, 4, 8, 15, and 32 color-depths are supported. ANSI colors on console are functional for depth >= 4. Graphic applications based on wsfb API should work, provided they can correctly handle fbi_fboffset and your color depth. wsfb driver of Xorg 1.20 and mlterm-fb (framebuffer version of x11/mlterm) work fine for depth == 1 || depth >= 8. For depth == 8 (256 colors), graphic applications require colormap callback, which is currently supported for some internal graphic adapters, and only Civic (found on Quadra AV series) was tested. Register definition and its usage are taken from Linux. You can easily support other adapters if Linux supports that. Have fun, and any problem reports are welcomed! To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/genfb.4 cvs rdiff -u -r0 -r1.1 src/sys/arch/mac68k/conf/WSFB \ src/sys/arch/mac68k/conf/WSFB.common src/sys/arch/mac68k/conf/WSFBSBC cvs rdiff -u -r1.128 -r1.129 src/sys/arch/mac68k/conf/files.mac68k cvs rdiff -u -r0 -r1.1 src/sys/arch/mac68k/dev/genfb_grfbus.c cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mac68k/dev/grf_subr.c cvs rdiff -u -r1.31 -r1.32 src/sys/arch/mac68k/dev/grfvar.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mac68k/dev/maccons.c cvs rdiff -u -r1.63 -r1.64 src/sys/arch/mac68k/mac68k/conf.c cvs rdiff -u -r1.352 -r1.353 src/sys/arch/mac68k/mac68k/machdep.c cvs rdiff -u -r1.58 -r1.59 src/sys/arch/mac68k/obio/grf_obio.c cvs rdiff -u -r0 -r1.1 src/sys/arch/mac68k/obio/grf_obioreg.h cvs rdiff -u -r1.90 -r1.91 src/sys/dev/rasops/rasops.c cvs rdiff -u -r1.10 -r1.11 src/sys/dev/wsfb/files.wsfb Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.