aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_serial.c
diff options
context:
space:
mode:
authorreinelt <>2004-05-28 13:51:42 +0000
committerreinelt <>2004-05-28 13:51:42 +0000
commit640f6efc46a03643d99938c0b220547c3d3f33eb (patch)
tree22b61be8f2463853557dccb6649e0f6d054cdf55 /drv_generic_serial.c
parent1e39731c43c5db31f4335f5cd077c785d9c86651 (diff)
downloadlcd4linux-640f6efc46a03643d99938c0b220547c3d3f33eb.tar.gz
[lcd4linux @ 2004-05-28 13:51:41 by reinelt]
ported driver for Beckmann+Egle Mini-Terminals added 'flags' parameter to serial_init()
Diffstat (limited to 'drv_generic_serial.c')
-rw-r--r--drv_generic_serial.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drv_generic_serial.c b/drv_generic_serial.c
index 91db7b7..c60c18f 100644
--- a/drv_generic_serial.c
+++ b/drv_generic_serial.c
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_serial.c,v 1.8 2004/03/03 04:44:16 reinelt Exp $
+/* $Id: drv_generic_serial.c,v 1.9 2004/05/28 13:51:42 reinelt Exp $
*
* generic driver helper for serial and usbserial displays
*
@@ -23,6 +23,11 @@
*
*
* $Log: drv_generic_serial.c,v $
+ * Revision 1.9 2004/05/28 13:51:42 reinelt
+ *
+ * ported driver for Beckmann+Egle Mini-Terminals
+ * added 'flags' parameter to serial_init()
+ *
* Revision 1.8 2004/03/03 04:44:16 reinelt
* changes (cosmetics?) to the big patch from Martin
* hash patch un-applied
@@ -242,7 +247,7 @@ static pid_t drv_generic_serial_unlock_port (char *Port)
}
-int drv_generic_serial_open (char *section, char *driver)
+int drv_generic_serial_open (char *section, char *driver, unsigned int flags)
{
int i, fd;
pid_t pid;
@@ -295,6 +300,7 @@ int drv_generic_serial_open (char *section, char *driver)
}
cfmakeraw(&portset);
+ portset.c_cflag |= flags;
cfsetospeed(&portset, Speed);
if (tcsetattr(fd, TCSANOW, &portset)==-1) {
error ("%s: tcsetattr(%s) failed: %s", Driver, Port, strerror(errno));