355a2878fa
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!
16 lines
553 B
Plaintext
16 lines
553 B
Plaintext
# $NetBSD: files.wsfb,v 1.11 2019/07/26 10:48:45 rin Exp $
|
|
|
|
#
|
|
# wsdisplay framebuffer drivers
|
|
#
|
|
|
|
# some generic flags that drivers may or may not honour
|
|
defflag opt_wsfb.h WSFB_FAKE_VGA_FB # allow mmap(0xa0000)
|
|
defflag opt_wsfb.h WSFB_ALLOW_OTHERS # allow to mmap() foreign ranges
|
|
|
|
# a generic framebuffer console
|
|
define genfb: rasops1, rasops2, rasops4, rasops8, rasops15, rasops16, rasops24, rasops32, vcons, edid
|
|
device genfb: genfb, wsemuldisplaydev, drm, splash
|
|
file dev/wsfb/genfb.c genfb needs-flag
|
|
defflag opt_genfb.h GENFB_DEBUG GENFB_SHADOWFB
|