summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/console-termios.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-16 12:58:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-19 07:52:33 +0200
commit55e0be36069942e0343e406615a3b1744cf7d6b3 (patch)
treea260825ed4914c1e96683924bfaa04a00bc50e8b /c/src/lib/libbsp/shared/console-termios.c
parentlibtests/devfs: Use printk() (diff)
downloadrtems-55e0be36069942e0343e406615a3b1744cf7d6b3.tar.bz2
termios: Use IMFS nodes for new Termios devices
This makes the new Termios devices independent of device major/minor numbers. It enables BSP independent Termios device drivers which may reside in the cpukit domain. These drivers require an IMFS and do not work with the device file system. However, the device file system should go away in the future.
Diffstat (limited to 'c/src/lib/libbsp/shared/console-termios.c')
-rw-r--r--c/src/lib/libbsp/shared/console-termios.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/shared/console-termios.c b/c/src/lib/libbsp/shared/console-termios.c
index f57b06ce0c..1e755d91c9 100644
--- a/c/src/lib/libbsp/shared/console-termios.c
+++ b/c/src/lib/libbsp/shared/console-termios.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2014, 2016 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -21,7 +21,11 @@ rtems_device_driver console_open(
void *arg
)
{
- return rtems_termios_device_open( major, minor, arg );
+ (void) major;
+ (void) minor;
+ (void) arg;
+
+ return RTEMS_INTERNAL_ERROR;
}
rtems_device_driver console_close(
@@ -32,8 +36,9 @@ rtems_device_driver console_close(
{
(void) major;
(void) minor;
+ (void) arg;
- return rtems_termios_device_close( arg );
+ return RTEMS_INTERNAL_ERROR;
}
rtems_device_driver console_read(
@@ -44,8 +49,9 @@ rtems_device_driver console_read(
{
(void) major;
(void) minor;
+ (void) arg;
- return rtems_termios_read( arg );
+ return RTEMS_INTERNAL_ERROR;
}
rtems_device_driver console_write(
@@ -56,8 +62,9 @@ rtems_device_driver console_write(
{
(void) major;
(void) minor;
+ (void) arg;
- return rtems_termios_write( arg );
+ return RTEMS_INTERNAL_ERROR;
}
rtems_device_driver console_control(
@@ -68,6 +75,7 @@ rtems_device_driver console_control(
{
(void) major;
(void) minor;
+ (void) arg;
- return rtems_termios_ioctl( arg );
+ return RTEMS_INTERNAL_ERROR;
}