From 65483f807d166aba3d26420dcb75ca6f48f26199 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 Jun 2013 14:22:28 +0200 Subject: termios: SMP support --- cpukit/libcsupport/include/rtems/termiostypes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpukit/libcsupport/include/rtems/termiostypes.h') 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 -- cgit v1.2.3