1 // Copyright 2016 The Fuchsia Authors
2 //
3 // Use of this source code is governed by a MIT-style
4 // license that can be found in the LICENSE file or at
5 // https://opensource.org/licenses/MIT
6 
7 #pragma once
8 
9 #include <dev/display.h>
10 #include <err.h>
11 #include <zircon/compiler.h>
12 #include <zircon/types.h>
13 
14 __BEGIN_CDECLS
15 
16 zx_status_t udisplay_init(void);
17 zx_status_t udisplay_set_display_info(struct display_info* display);
18 zx_status_t udisplay_bind_gfxconsole(void);
19 
20 __END_CDECLS
21 
22 #ifdef __cplusplus
23 
24 #include <fbl/ref_ptr.h>
25 
26 class VmObject;
27 zx_status_t udisplay_set_framebuffer(fbl::RefPtr<VmObject> vmo);
28 void udisplay_clear_framebuffer_vmo(void);
29 
30 #endif
31