diff options
Diffstat (limited to 'sys/arch/sgi/xbow/odyssey.c')
-rw-r--r-- | sys/arch/sgi/xbow/odyssey.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/sys/arch/sgi/xbow/odyssey.c b/sys/arch/sgi/xbow/odyssey.c index 1255f4269f0..5289b24fe7d 100644 --- a/sys/arch/sgi/xbow/odyssey.c +++ b/sys/arch/sgi/xbow/odyssey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: odyssey.c,v 1.8 2013/10/20 20:07:24 miod Exp $ */ +/* $OpenBSD: odyssey.c,v 1.9 2013/10/21 10:36:18 miod Exp $ */ /* * Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org> * @@ -129,7 +129,8 @@ int odyssey_alloc_screen(void *, const struct wsscreen_descr *, void **, void odyssey_free_screen(void *, void *); int odyssey_show_screen(void *, void *, int, void (*)(void *, int, int), void *); -void odyssey_burner(void *, u_int, u_int); +int odyssey_load_font(void *, void *, struct wsdisplay_font *); +int odyssey_list_font(void *, struct wsdisplay_font *); static struct odyssey_screen odyssey_consdata; static struct odyssey_softc odyssey_cons_sc; @@ -144,7 +145,8 @@ struct wsdisplay_accessops odyssey_accessops = { .alloc_screen = odyssey_alloc_screen, .free_screen = odyssey_free_screen, .show_screen = odyssey_show_screen, - .burn_screen = odyssey_burner + .load_font = odyssey_load_font, + .list_font = odyssey_list_font }; const struct wsscreen_descr *odyssey_scrlist[] = { @@ -692,9 +694,20 @@ odyssey_show_screen(void *v, void *cookie, int waitok, return (0); } -void -odyssey_burner(void *v, u_int on, u_int flags) +int +odyssey_load_font(void *v, void *emulcookie, struct wsdisplay_font *font) +{ + struct odyssey_screen *screen = (struct odyssey_screen *)v; + + return rasops_load_font(&screen->ri, emulcookie, font); +} + +int +odyssey_list_font(void *v, struct wsdisplay_font *font) { + struct odyssey_screen *screen = (struct odyssey_screen *)v; + + return rasops_list_font(&screen->ri, font); } /* |