diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-21 10:36:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-21 10:36:27 +0000 |
commit | 22a7a58bc34bd99e322e4e872add0cd82855128a (patch) | |
tree | 3571a1fe1f892c698c714629e9ccd90e1fc13156 /sys/dev/usb/udl.c | |
parent | ceead45789cad670a4e79b8e53502af204c5f1ad (diff) |
Add load_font and list_font accessops to all rasops-based wsdisplay drivers.
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting
up a new font.
Diffstat (limited to 'sys/dev/usb/udl.c')
-rw-r--r-- | sys/dev/usb/udl.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c index b26c2398dc8..cf00953178a 100644 --- a/sys/dev/usb/udl.c +++ b/sys/dev/usb/udl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.c,v 1.77 2013/10/20 20:07:31 miod Exp $ */ +/* $OpenBSD: udl.c,v 1.78 2013/10/21 10:36:26 miod Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -85,6 +85,8 @@ int udl_alloc_screen(void *, const struct wsscreen_descr *, void udl_free_screen(void *, void *); int udl_show_screen(void *, void *, int, void (*)(void *, int, int), void *); +int udl_load_font(void *, void *, struct wsdisplay_font *); +int udl_list_font(void *, struct wsdisplay_font *); void udl_burner(void *, u_int, u_int); int udl_copycols(void *, int, int, int, int); @@ -217,6 +219,8 @@ struct wsdisplay_accessops udl_accessops = { .alloc_screen = udl_alloc_screen, .free_screen = udl_free_screen, .show_screen = udl_show_screen, + .load_font = udl_load_font, + .list_font = udl_list_font, .burn_screen = udl_burner }; @@ -695,6 +699,24 @@ udl_show_screen(void *v, void *cookie, int waitok, return (0); } +int +udl_load_font(void *v, void *emulcookie, struct wsdisplay_font *font) +{ + struct udl_softc *sc = v; + struct rasops_info *ri = &sc->sc_ri; + + return rasops_load_font(ri, emulcookie, font); +} + +int +udl_list_font(void *v, struct wsdisplay_font *font) +{ + struct udl_softc *sc = v; + struct rasops_info *ri = &sc->sc_ri; + + return rasops_list_font(ri, font); +} + void udl_burner(void *v, u_int on, u_int flags) { |