diff options
author | Aleksandr Rybalko <ray@FreeBSD.org> | 2014-02-06 15:12:44 +0000 |
---|---|---|
committer | Aleksandr Rybalko <ray@FreeBSD.org> | 2014-02-06 15:12:44 +0000 |
commit | 9e497e7b044dcc9195f1d13903ddce7f8f057727 (patch) | |
tree | b69f299c6508d439e70b6563437fedc2616dca80 /sys/dev/vt/vt.h | |
parent | 0205ddeb44c1561d467a6afd411aa4f0f23a5f93 (diff) | |
download | src-9e497e7b044dcc9195f1d13903ddce7f8f057727.tar.gz src-9e497e7b044dcc9195f1d13903ddce7f8f057727.zip |
Add two new vt(9) driver methods: vd_drawrect and vd_setpixel.
Implement vd_drawrect and vd_setpixel for vt_fb driver.
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=261552
Diffstat (limited to 'sys/dev/vt/vt.h')
-rw-r--r-- | sys/dev/vt/vt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index 85614177772d..9f175b8d3fe8 100644 --- a/sys/dev/vt/vt.h +++ b/sys/dev/vt/vt.h @@ -287,6 +287,9 @@ typedef void vd_putchar_t(struct vt_device *vd, term_char_t, 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 *); +typedef void vd_drawrect_t(struct vt_device *, int, int, int, int, int, + term_color_t); +typedef void vd_setpixel_t(struct vt_device *, int, int, term_color_t); struct vt_driver { /* Console attachment. */ @@ -295,6 +298,8 @@ struct vt_driver { /* Drawing. */ vd_blank_t *vd_blank; vd_bitbltchr_t *vd_bitbltchr; + vd_drawrect_t *vd_drawrect; + vd_setpixel_t *vd_setpixel; /* Framebuffer ioctls, if present. */ vd_fb_ioctl_t *vd_fb_ioctl; |