Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30326
b: refs/heads/master
c: 13ae664
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jun 26, 2006
1 parent 4a7a0b0 commit 3b8bcb0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6db4063c5b72b46e9793b0f141a7a3984ac6facf
refs/heads/master: 13ae66458971b4967350765a8bfaf2a636442e5f
17 changes: 17 additions & 0 deletions trunk/drivers/char/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ config HW_CONSOLE
depends on VT && !S390 && !UML
default y

config VT_HW_CONSOLE_BINDING
bool "Support for binding and unbinding console drivers"
depends on HW_CONSOLE
default n
---help---
The virtual terminal is the device that interacts with the physical
terminal through console drivers. On these systems, at least one
console driver is loaded. In other configurations, additional console
drivers may be enabled, such as the framebuffer console. If more than
1 console driver is enabled, setting this to 'y' will allow you to
select the console driver that will serve as the backend for the
virtual terminals.

See <file:Documentation/console/console.txt> for more
information. For framebuffer console users, please refer to
<file:Documentation/fb/fbcon.txt>.

config SERIAL_NONSTANDARD
bool "Non-standard serial port support"
---help---
Expand Down
43 changes: 27 additions & 16 deletions trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2691,22 +2691,6 @@ int __init vty_init(void)

static struct class *vtconsole_class;

static int con_is_graphics(const struct consw *csw, int first, int last)
{
int i, retval = 0;

for (i = first; i <= last; i++) {
struct vc_data *vc = vc_cons[i].d;

if (vc && vc->vc_mode == KD_GRAPHICS) {
retval = 1;
break;
}
}

return retval;
}

static int bind_con_driver(const struct consw *csw, int first, int last,
int deflt)
{
Expand Down Expand Up @@ -2808,6 +2792,23 @@ static int bind_con_driver(const struct consw *csw, int first, int last,
return retval;
};

#ifdef CONFIG_VT_HW_CONSOLE_BINDING
static int con_is_graphics(const struct consw *csw, int first, int last)
{
int i, retval = 0;

for (i = first; i <= last; i++) {
struct vc_data *vc = vc_cons[i].d;

if (vc && vc->vc_mode == KD_GRAPHICS) {
retval = 1;
break;
}
}

return retval;
}

static int unbind_con_driver(const struct consw *csw, int first, int last,
int deflt)
{
Expand Down Expand Up @@ -2984,6 +2985,16 @@ static int vt_unbind(struct con_driver *con)
err:
return 0;
}
#else
static inline int vt_bind(struct con_driver *con)
{
return 0;
}
static inline int vt_unbind(struct con_driver *con)
{
return 0;
}
#endif /* CONFIG_VT_HW_CONSOLE_BINDING */

static ssize_t store_bind(struct class_device *class_device,
const char *buf, size_t count)
Expand Down

0 comments on commit 3b8bcb0

Please sign in to comment.