CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2013/10/20 15:24:01

Modified files:
        sys/dev/ic     : vga.c 
        sys/dev/rasops : rasops.c rasops.h 
        sys/dev/wscons : wsdisplay.c wsdisplayvar.h 
        sys/dev/wsfont : wsfont.c wsfont.h 

Log message:
No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into the
wsdisplay softc. Instead, since the knowledge about available fonts lies in
the parent driver itself, introduce a list_font wsdisplay_accessop which
queries a font index, suitable to use within the WSDISPLAYIO_LSFONT ioctl.

With this in place:
- there is no global wsdisplay limit on the number of fonts loaded. Such a
limit will be enforced by the display drivers themselves.
- built-in kernel fonts will now appear in the list of fonts.

Grow a list_font accesop for rasops, which relies upon wsfont_enum(), which
is turned into something useful (and abortable if you do not need to iterate
further). Not used by any rasops driver yet.

Reply via email to