aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vt/vt.h
diff options
context:
space:
mode:
authorAleksandr Rybalko <ray@FreeBSD.org>2013-12-23 18:09:10 +0000
committerAleksandr Rybalko <ray@FreeBSD.org>2013-12-23 18:09:10 +0000
commit7a1a32c4ef277b98b9164496091f7d50f203fb81 (patch)
tree8096d9fdebc1dab4523716b5f83ba8d7bb6ff9ec /sys/dev/vt/vt.h
parentddc31191a463cda5957cb5b2bf606738c074576a (diff)
Notes
Diffstat (limited to 'sys/dev/vt/vt.h')
-rw-r--r--sys/dev/vt/vt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index 9c1eb1ef5ceb2..1bfd821170612 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -40,6 +40,7 @@
#include <sys/_mutex.h>
#include <sys/callout.h>
#include <sys/condvar.h>
+#include <sys/conf.h>
#include <sys/consio.h>
#include <sys/kbio.h>
#include <sys/mouse.h>
@@ -282,6 +283,9 @@ typedef void vd_bitbltchr_t(struct vt_device *vd, const uint8_t *src,
unsigned int width, unsigned int height, term_color_t fg, term_color_t bg);
typedef void vd_putchar_t(struct vt_device *vd, term_char_t,
vt_axis_t top, vt_axis_t left, term_color_t fg, term_color_t bg);
+typedef int vd_fb_ioctl_t(struct vt_device *, u_long, caddr_t, struct thread *);
+typedef int vd_fb_mmap_t(struct vt_device *, vm_ooffset_t, vm_paddr_t *, int,
+ vm_memattr_t *);
struct vt_driver {
/* Console attachment. */
@@ -291,6 +295,12 @@ struct vt_driver {
vd_blank_t *vd_blank;
vd_bitbltchr_t *vd_bitbltchr;
+ /* Framebuffer ioctls, if present. */
+ vd_fb_ioctl_t *vd_fb_ioctl;
+
+ /* Framebuffer mmap, if present. */
+ vd_fb_mmap_t *vd_fb_mmap;
+
/* Text mode operation. */
vd_putchar_t *vd_putchar;