summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorray <ray@FreeBSD.org>2014-05-05 21:29:56 +0000
committerray <ray@FreeBSD.org>2014-05-05 21:29:56 +0000
commit53e0a1c2d01e2ea80514d04ab74198e733bf32e7 (patch)
treec37926657fb230e14b5defc312519f8bcbcb3871
parentae6dc5415bf4a931da56ce38d9e740a29b2ed190 (diff)
downloadFreeBSD-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.h3
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. */
OpenPOWER on IntegriCloud