summaryrefslogtreecommitdiffstats
path: root/include/linux/generic_serial.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-04-25 14:07:02 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-25 14:07:02 +0100
commitf2999e4ea41d6ec6252d3b6d275b40d468a3c07e (patch)
tree376e4053b8472e9cf307920154463fdf4f28ed7d /include/linux/generic_serial.h
parent25478bb26f2be1504112b764047105811a52c3cb (diff)
Export only the appropriate GS_xxx flags to userspace from generic_serial.h
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/generic_serial.h')
-rw-r--r--include/linux/generic_serial.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/generic_serial.h b/include/linux/generic_serial.h
index 652611a4bdc..e2538456195 100644
--- a/include/linux/generic_serial.h
+++ b/include/linux/generic_serial.h
@@ -12,6 +12,7 @@
#ifndef GENERIC_SERIAL_H
#define GENERIC_SERIAL_H
+#ifdef __KERNEL__
#include <linux/mutex.h>
struct real_driver {
@@ -54,6 +55,7 @@ struct gs_port {
spinlock_t driver_lock;
};
+#endif /* __KERNEL__ */
/* Flags */
/* Warning: serial.h defines some ASYNC_ flags, they say they are "only"
@@ -75,7 +77,7 @@ struct gs_port {
#define GS_DEBUG_FLOW 0x00000020
#define GS_DEBUG_WRITE 0x00000040
-
+#ifdef __KERNEL__
void gs_put_char(struct tty_struct *tty, unsigned char ch);
int gs_write(struct tty_struct *tty,
const unsigned char *buf, int count);
@@ -94,5 +96,5 @@ int gs_init_port(struct gs_port *port);
int gs_setserial(struct gs_port *port, struct serial_struct __user *sp);
int gs_getserial(struct gs_port *port, struct serial_struct __user *sp);
void gs_got_break(struct gs_port *port);
-
+#endif /* __KERNEL__ */
#endif