summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/udl.c')
-rw-r--r--sys/dev/usb/udl.c24
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)
{