* WARNING: These flags are no longer used and have been superceded by the
  *         TTY_PORT_ flags in the iflags field (and not userspace-visible)
  */
+#ifndef _KERNEL_
 #define ASYNCB_INITIALIZED     31 /* Serial port was initialized */
 #define ASYNCB_SUSPENDED       30 /* Serial port is suspended */
 #define ASYNCB_NORMAL_ACTIVE   29 /* Normal device is active */
 #define ASYNCB_SHARE_IRQ       24 /* for multifunction cards, no longer used */
 #define ASYNCB_CONS_FLOW       23 /* flow control for console  */
 #define ASYNCB_FIRST_KERNEL    22
+#endif
 
 /* Masks */
 #define ASYNC_HUP_NOTIFY       (1U << ASYNCB_HUP_NOTIFY)
 #define ASYNC_SPD_WARP         (ASYNC_SPD_HI|ASYNC_SPD_SHI)
 #define ASYNC_SPD_MASK         (ASYNC_SPD_HI|ASYNC_SPD_VHI|ASYNC_SPD_SHI)
 
+#ifndef _KERNEL_
 /* These flags are no longer used (and were always masked from userspace) */
 #define ASYNC_INITIALIZED      (1U << ASYNCB_INITIALIZED)
 #define ASYNC_NORMAL_ACTIVE    (1U << ASYNCB_NORMAL_ACTIVE)
 #define ASYNC_SHARE_IRQ                (1U << ASYNCB_SHARE_IRQ)
 #define ASYNC_CONS_FLOW                (1U << ASYNCB_CONS_FLOW)
 #define ASYNC_INTERNAL_FLAGS   (~((1U << ASYNCB_FIRST_KERNEL) - 1))
+#endif
 
 #endif