Commit Graph

76 Commits

Author SHA1 Message Date
Alexandre Julliard 0617b490b3 ntdll: Add partial implementation for IOCTL_SERIAL_GET_PROPERTIES.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 21:05:01 +02:00
Alexandre Julliard 2ae84d5240 Avoid using Windows includes that are already handled in wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:19:00 +01:00
Julien D'ascenzio 257850e7ec ntdll: Correct space/mark parity.
When CMSPAR is defined, the space and mark parity is reversed: the flag PARODD isn't set correctly.

Signed-off-by: Julien D'ascenzio <Julien.Dascenzio@paratronic.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-04 19:04:29 +01:00
Alexandre Julliard e77873da73 server: Implement IOCTL_SERIAL_GET_WAIT_MASK as an ioctl on the server side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 14:11:15 +02:00
Alexandre Julliard b7b9c4eaa6 server: Implement IOCTL_SERIAL_SET_WAIT_MASK as an ioctl on the server side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 14:11:14 +02:00
Alexandre Julliard 84e97cf604 server: Implement IOCTL_SERIAL_SET_TIMEOUTS as an ioctl on the server side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 13:04:20 +02:00
Alexandre Julliard a682420b58 server: Implement IOCTL_SERIAL_GET_TIMEOUTS as an ioctl on the server side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 13:04:20 +02:00
Francois Gouget ca1545cf17 ntdll: Remove unneeded NONAMELESSXXX directives. 2015-03-16 15:04:50 +09:00
Uwe Bonnes 2148248976 ntdll: Add more serial speed settings. 2015-02-13 18:20:33 +09:00
Dmitry Timoshkov a890d0f030 server: Make it possible for WaitCommEvent to detect recursive requests. 2013-11-13 11:21:28 +01:00
Dmitry Timoshkov 3b429e88ff server: Add support for pending write flag to the serial device. 2013-10-25 13:36:01 +02:00
Dmitry Timoshkov a63be0823a ntdll: Make set_line_control() for a serial device print slightly more informative messages. 2013-09-26 10:46:56 +02:00
Dmitry Timoshkov a20b07c558 ntdll: Make asynchronous WaitCommEvent report correct number of bytes returned. 2013-09-26 10:46:54 +02:00
Dmitry Timoshkov f031c676c1 server: Add a serial event mask change counter. 2013-09-10 11:18:57 +02:00
Alexandre Julliard f21961cc14 ntdll: Add a configure check for the tcdrain function.
Also remove the tcgetattr check that is no longer used.
2013-09-05 13:18:21 +02:00
Dmitry Timoshkov c25776a981 ntdll: Avoid a needless goto. 2013-09-03 16:58:19 +02:00
Dmitry Timoshkov 52d1080544 ntdll: Properly set flag which indicates buffer empty state. 2013-08-29 11:21:11 +02:00
Dmitry Timoshkov f4f5d06df4 ntdll: Stop waiting for COM-port events if the device handle gets closed. 2013-08-28 11:36:23 +02:00
Dmitry Timoshkov b299d4d4f8 ntdll: Add a trace for transmitter's buffer empty flag. 2013-08-28 11:36:01 +02:00
Dmitry Timoshkov d21b05b06d ntdll: Properly test line status register for TIOCSER_TEMT bit. 2013-08-27 21:30:03 +02:00
Dmitry Timoshkov e3dcdadaca ntdll: Fallback to ioctl(TIOCOUTQ) if ioctl(TIOCSERGETLSR) fails.
Most Linux USB-serial drivers don't support TIOCSERGETLSR.
2013-08-27 21:30:03 +02:00
Dmitry Timoshkov 1202c14e6e ntdll: Ignore ioctl(TIOCGICOUNT) failures.
Most USB-serial Linux drivers don't support it.
2013-08-27 21:30:03 +02:00
Alexandre Julliard f7161ebe89 ntdll: Don't use TIOCGICOUNT if we don't have linux/serial.h to define the necessary struct. 2013-07-29 21:08:02 +02:00
Alexandre Julliard af59e6f1b7 configure: Get rid of the check for strings.h. 2013-01-09 12:25:14 +01:00
Uwe Bonnes 89c2a4c596 ntdll: Generate a single EV_TXEMPTY when the TX buffer turns empty. 2011-10-14 20:26:44 +02:00
Alexandre Julliard 4d7ad03c3c ntdll: Use the more portable cfsetospeed() function to set serial baud rate. 2010-10-08 11:56:46 +02:00
Ken Thomases 85f32011cd ntdll: Fix set_baud_rate for high rates for non-Linux (bad copy/paste). 2010-07-06 19:28:27 +02:00
Alexandre Julliard 3b67ad9bd4 ntdll: Fix the NtCreateEvent prototype.
It takes an event type, not a manual reset flag.
2010-01-18 20:34:54 +01:00
Alexandre Julliard 72241b5d47 ntdll: Make sure that serial ioctl calls fail on non-serial handles. 2009-09-10 11:06:01 +02:00
Mike Kaplinskiy 3f232785d3 ntdll: Remember to set the iosb status if using a worker thread for serial wait. 2009-09-08 12:12:28 +02:00
Michael Stefaniuc d2f6f56873 ntdll: Remove superfluous pointer casts. 2009-03-23 12:40:53 +01:00
Francois Gouget 96848a0605 Remove spaces before '\n's. 2009-03-09 12:05:58 +01:00
G. Paul Ziemba df05a90a3f ntdll: Clear IEXTEN when clearing ICANON. 2009-01-07 14:21:03 +01:00
Pavel Troller 0f6b925bdc ntdll: Fix serial.c for linux-2.6.28. 2009-01-04 14:59:55 +01:00
Andrew Talbot e198b4eb84 ntdll: Remove a superfluous semicolon. 2008-12-24 19:59:27 +01:00
Wolfgang Walter a24f10b511 ntdll: Fix set_XOff and set_XOn. 2008-12-22 14:21:07 +01:00
Alexandre Julliard d1b3d484f7 server: Add functions for conversions between server object handles and pointer-style handles. 2008-12-08 16:05:17 +01:00
Francois Gouget e723395617 ntdll: Remove WINAPI on static functions where not needed. 2008-11-28 12:54:32 +01:00
Alexandre Julliard 03fbe01632 ntdll: Ignore failures to retrieve serial status for events we are not interested in.
Based on a patch by Valentine Sinitsyn.
2008-05-07 21:10:39 +02:00
Alexandre Julliard b1ace4490e ntdll: Always set VTIME to 0 to avoid blocking, don't try to set it from the comm timeouts. 2008-05-07 20:17:32 +02:00
Austin English 05faae7b5a Spelling fixes. 2008-04-09 12:07:39 +02:00
Eric Pouech 2ea3dd12b1 ntdll: Fixed getting the RTS status from line, and now using sane default values for all (compilation/system) cases. 2008-01-22 12:58:14 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Alexandre Julliard 0a2fda7020 ntdll: Restore typecast that is really needed. 2008-01-15 20:36:48 +01:00
Andrew Talbot 00981b580a ntdll: Remove unneeded casts. 2008-01-14 13:10:00 +01:00
Michael Stefaniuc 0ecf2edca0 ntdll: Remove duplicate includes. 2007-11-19 13:54:09 +01:00
Tom Brus fa4304f06e ntdll: Serial/COM code misinterpreted XON/XOFF direction. 2007-10-29 13:58:51 +01:00
Michael Stefaniuc b8880e1640 ntdll: Remove a break after a break. Found by Smatch. 2007-07-26 11:51:05 +02:00
Michael Stefaniuc 0f14b3a574 ntdll: Don't produce unreachable code during conditional compilation. Found by Smatch. 2007-07-19 11:57:23 +02:00
Andrew Talbot 61cb830b9b ntdll: Constify some variables. 2007-06-26 12:56:50 +02:00