diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-07-17 07:05:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:11 -0400 |
commit | 623e71b035cb5271028500720b3622ba76db42bb (patch) | |
tree | 651cd606c57b1e1322f92e0406d744a2b341da7e /include | |
parent | 317b3c2167f5326a7de30a1abe50c9897da7a0e3 (diff) |
fbcon: allow fbcon to use the primary display driver
Allow fbcon to select the primary display adapter using the
fb_is_primary_device() arch-specific helper. If a a primary adapter is
detected, fbcon will unbind the old adapter from the VT layer, then rebind
using the new adapter. This requires that bind_/unbind_con_driver() be made
public.
Because this feature may produce unexpected behavior (from the user's POV),
this must be explicitly enabled in Kconfig.
[akpm@linux-foundation.org: export unbind_con_driver]
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/vt_kern.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index d961635d0e61..0d034d89ee8a 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h | |||
@@ -75,6 +75,10 @@ int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc); | |||
75 | int vt_waitactive(int vt); | 75 | int vt_waitactive(int vt); |
76 | void change_console(struct vc_data *new_vc); | 76 | void change_console(struct vc_data *new_vc); |
77 | void reset_vc(struct vc_data *vc); | 77 | void reset_vc(struct vc_data *vc); |
78 | extern int bind_con_driver(const struct consw *csw, int first, int last, | ||
79 | int deflt); | ||
80 | extern int unbind_con_driver(const struct consw *csw, int first, int last, | ||
81 | int deflt); | ||
78 | 82 | ||
79 | /* | 83 | /* |
80 | * vc_screen.c shares this temporary buffer with the console write code so that | 84 | * vc_screen.c shares this temporary buffer with the console write code so that |