diff options
author | Bastian Stender <bst@pengutronix.de> | 2017-02-28 15:31:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-28 15:52:35 +0100 |
commit | b4f55fcf355a4d0ac456445a5f42f259f2812b57 (patch) | |
tree | 5fa0f1945aac9a1d850271a59b474c8218565b93 /include/console.h | |
parent | 123357079882de948f5f42a15c1af21a26130af2 (diff) | |
download | barebox-b4f55fcf355a4d0ac456445a5f42f259f2812b57.tar.gz barebox-b4f55fcf355a4d0ac456445a5f42f259f2812b57.tar.xz |
console: expose consoles in devfs
This enables displaying text on e.g. a framebuffer console by issueing
echo -o /dev/fbconsole0 abc123
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index a1ebc8581b..126c2e8aa3 100644 --- a/include/console.h +++ b/include/console.h @@ -61,6 +61,9 @@ struct console_device { unsigned int baudrate_param; const char *linux_console_name; + + struct cdev devfs; + struct file_operations fops; }; int console_register(struct console_device *cdev); |