Source-Changes archive

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

CVS commit: src/sys/dev/wsfb



Module Name:    src
Committed By:   macallan
Date:           Sat Apr  7 03:41:27 UTC 2007

Added Files:
        src/sys/dev/wsfb: files.wsfb genfb.c genfbvar.h pci_genfb.c

Log Message:
add genfb, a generic framebuffer console driver that's configured via
device properties - all it needs is width and height in pixels, stride in
bytes, depth in bits and the framebuffer address.
Features:
- unaccelerated fb console with colours and virtual consoles
- split into console handling and bus frontend
- so far there is only a PCI bus frontend which allows to mmap BARs belonging
  to the graphics controller, others should be easy to add.

TODO:
- find an opaque way to change the palette ( probably pass a function
  pointer as property ) since this would need to call some firmware interface
  which is pretty much always MD
- find a clean way to mmap the framebuffer, just returning the physical
  address works on macppc but not on other architectures. Problem is, that
  we cannot rely on the address being a bus address - on macppc it is,
  but for instance on sparc64 it's not.


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/sys/dev/wsfb/files.wsfb src/sys/dev/wsfb/genfb.c \
    src/sys/dev/wsfb/genfbvar.h src/sys/dev/wsfb/pci_genfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index