From f06a81663f7beaabdc24d3d23fb1028da3f8dc56 Mon Sep 17 00:00:00 2001 From: Aleksandr Rybalko Date: Mon, 5 May 2014 21:29:56 +0000 Subject: [PATCH] Define a new method for probing vt(4) driver before attach it at early stage. Sponsored by: The FreeBSD Foundation --- sys/dev/vt/vt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index caab70908fd..fb768e98091 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. */