diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-10 14:22:28 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-12 16:12:50 +0200 |
commit | 65483f807d166aba3d26420dcb75ca6f48f26199 (patch) | |
tree | a19ffa0a323688f4998a8b095d887337d6edbd7e /cpukit/libcsupport/include/rtems/termiostypes.h | |
parent | termios: Notify driver about inactive transmit (diff) | |
download | rtems-65483f807d166aba3d26420dcb75ca6f48f26199.tar.bz2 |
termios: SMP support
Diffstat (limited to 'cpukit/libcsupport/include/rtems/termiostypes.h')
-rw-r--r-- | cpukit/libcsupport/include/rtems/termiostypes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h index 89a997a09e..4f691919bf 100644 --- a/cpukit/libcsupport/include/rtems/termiostypes.h +++ b/cpukit/libcsupport/include/rtems/termiostypes.h @@ -140,6 +140,8 @@ struct rtems_termios_tty { struct ttywakeup tty_snd; struct ttywakeup tty_rcv; int tty_rcvwakeup; + + rtems_interrupt_lock interrupt_lock; }; struct rtems_termios_linesw { @@ -231,6 +233,12 @@ int rtems_termios_set_initial_baud( rtems_termios_baud_t baud ); +#define rtems_termios_interrupt_lock_acquire(tty, level) \ + rtems_interrupt_lock_acquire(&tty->interrupt_lock, level) + +#define rtems_termios_interrupt_lock_release(tty, level) \ + rtems_interrupt_lock_release(&tty->interrupt_lock, level) + #ifdef __cplusplus } #endif |