diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-16 12:58:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-19 07:52:33 +0200 |
commit | 55e0be36069942e0343e406615a3b1744cf7d6b3 (patch) | |
tree | a260825ed4914c1e96683924bfaa04a00bc50e8b /c/src/lib/libbsp/shared/console-termios.c | |
parent | libtests/devfs: Use printk() (diff) | |
download | rtems-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.c | 20 |
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; } |