diff options
author | ray <ray@FreeBSD.org> | 2014-05-05 21:29:56 +0000 |
---|---|---|
committer | ray <ray@FreeBSD.org> | 2014-05-05 21:29:56 +0000 |
commit | 53e0a1c2d01e2ea80514d04ab74198e733bf32e7 (patch) | |
tree | c37926657fb230e14b5defc312519f8bcbcb3871 | |
parent | ae6dc5415bf4a931da56ce38d9e740a29b2ed190 (diff) | |
download | FreeBSD-src-53e0a1c2d01e2ea80514d04ab74198e733bf32e7.zip FreeBSD-src-53e0a1c2d01e2ea80514d04ab74198e733bf32e7.tar.gz |
Define a new method for probing vt(4) driver before attach it at early stage.
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/dev/vt/vt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index caab709..fb768e9 100644 --- a/sys/dev/vt/vt.h +++ b/sys/dev/vt/vt.h @@ -277,6 +277,7 @@ struct vt_window { */ typedef int vd_init_t(struct vt_device *vd); +typedef int vd_probe_t(struct vt_device *vd); typedef void vd_postswitch_t(struct vt_device *vd); typedef void vd_blank_t(struct vt_device *vd, term_color_t color); typedef void vd_bitbltchr_t(struct vt_device *vd, const uint8_t *src, @@ -295,7 +296,9 @@ typedef void vd_drawrect_t(struct vt_device *, int, int, int, int, int, typedef void vd_setpixel_t(struct vt_device *, int, int, term_color_t); struct vt_driver { + char vd_name[16]; /* Console attachment. */ + vd_probe_t *vd_probe; vd_init_t *vd_init; /* Drawing. */ |