Florian Pose
ee55c20e28
Fixed mail address; limited lines to 78 characters; removed $Id$.
2024-02-01 15:15:41 +01:00
Bjarne von Horn
2e071ad680
Remove EtherCAT copyright notice.
2024-02-01 09:18:26 +01:00
Bjarne von Horn
879a0b0278
Remove 2.6 conditionals in tty
2024-02-01 09:12:55 +01:00
Bjarne von Horn
73e6ea9ce6
support out-of-tree build
...
by replacing `src` variable in Kbuild files.
2023-09-11 11:43:39 +02:00
Per Noergaard Christensen
3678a69c38
tty: fixups for kernels 5.14 and 5.15
...
alloc_tty_driver was deprecated by tty_alloc_driver in commit 7f0bc6a68ed9
(TTY: pass flags to alloc_tty_driver) in 2012 but first in kernel
v5.15 it has been dropped (56ec5880a28e). Switch to tty_alloc_driver
when using kernels >= v5.15
As of v5.15, the put_tty_driver alias has been dropped in favor of
directly calling tty_driver_kref_put (9f90a4ddef4e). Switch to
tty_driver_kref_put when using kernels >= v5.15
As from v5.14 the write_room (03b3b1a2405c) and
chars_in_buffer (fff4ef17a940) methods' return type changed from int
to unsigned int in struct tty_operations. This has impact on
ec_tty_write_room() and ec_tty_chars_in_buffer().
2023-07-17 17:56:25 +02:00
Florian Pose
9ac57fa55d
Merge branch 'v6.1-fixups' into 'master'
...
tty/module.c: fixups for linux >= v6.1
See merge request etherlab.org/ethercat!68
(cherry picked from commit f8c9ec6e48 )
bbb16b87 tty/module.c: adapt signature of ->set_termios method to v6.1
d39b4a59 tty/module.c: include proper header for INIT_C_CC definition
2023-05-25 14:26:30 +00:00
Kale Yuzik
abdefcedf2
Implement fix for kernel error when opening TTY device file on kernel 3.7.0 or greater
...
Error message: "tty_init_dev: ttyEC driver does not set tty->port. This would crash the kernel. Fix the driver!"
2021-06-30 08:48:54 -06:00
Nicola Fontana
82399a9239
Revive 'make distcheck'
2021-06-22 14:43:07 +00:00
Nicola Fontana
60dd78485c
Do not include AC_CONFIG_FILES in BUILT_SOURCES
...
BUILT_SOURCES is used to trigger early generation of files in the `make`
process to workaround dependency problems:
https://www.gnu.org/software/automake/manual/html_node/Sources.html
AC_CONFIG_FILES are generated by `configure`, so they are already
present in the file system even before `make` is called. Furthermore,
AC_CONFIG_FILES already properly handle dist and clean targets, so no
need to add them to EXTRA_DIST or DISTCLEANFILES:
https://www.gnu.org/software/automake/manual/html_node/Requirements.html
2021-05-22 08:25:26 +02:00
Florian Pose
6ad16e7e67
Added kernel-specific handling for init_timer/setup_timer and
...
access_ok() for ec_tty module and example.
Closes #2 .
2021-04-09 12:26:08 +02:00
Florian Pose
b87076135e
Use Git for version detection and tools.
2021-03-17 14:51:35 +01:00
Florian Pose
b6cace3df1
Support changed tty_prepare_flip_string() interface from kernel 3.9.
2016-10-18 10:20:21 +02:00
Florian Pose
a2da5180b8
TTY: termios structure was included in 'struct tty' with kernel 3.7.
2013-02-12 11:52:03 +01:00
Florian Pose
f601bbf249
TTY ioctl() file parameter was dropped in kernel 2.6.39.
2013-02-12 11:34:54 +01:00
Florian Pose
b0b7e6fde4
Removed trailing spaces.
2012-09-06 20:22:24 +02:00
Florian Pose
bd56747e3e
Removed whitespace.
2012-07-13 10:42:31 +02:00
Florian Pose
f739694670
Improved compiling on 2.6.34 (thanks to Malcolm Lewis).
2010-10-25 16:45:33 +02:00
Florian Pose
aba214160a
Removed TIOCSSERIAL because it doesn't make sense for virtual tty interfaces.
2010-04-20 11:21:43 +02:00
Florian Pose
6e06798fb2
Use kernel's modules_install target, instead of building our own. Attention:
...
Module installation directories have changed!
2010-02-23 17:37:02 +01:00
Florian Pose
69da1f1cb2
Improved handling and installation of the modules' symbol versions.
2010-02-16 15:08:54 +01:00
Florian Pose
94485eeec1
Replaced deprecated init_MUTEX in tty code.
2010-02-16 11:16:05 +01:00
Florian Pose
1b1f62c0af
Allow multiple open() calls to tty devices.
2010-02-02 14:10:52 +01:00
Florian Pose
f42953a87a
Minor change.
2010-01-26 16:43:08 +01:00
Florian Pose
c6bf2d73fc
Pass initial cflag to device-specific implementation in constructor.
2010-01-25 18:32:45 +01:00
Florian Pose
d910657cf8
Callback set via own structure.
2010-01-25 17:42:07 +01:00
Florian Pose
4d00c17e05
Sorted methods.
2010-01-25 16:15:56 +01:00
Florian Pose
018507a22e
Implemented setting of baud rate, data frame and RTS/CTS.
2010-01-22 14:10:18 +01:00
Florian Pose
127ad90aa7
Request initial configuration on tty open.
2010-01-22 11:02:04 +01:00
Florian Pose
a98da94149
Passing tty cflag to serial implementation.
2010-01-21 17:53:40 +01:00
Florian Pose
f6c0de7723
Basic configuration for tty.
2010-01-21 16:41:41 +01:00
Florian Pose
386ba8b8ee
Implemented tty put_char and break_ctl callbacks for kernels newer than 2.6.26
...
or 2.6.27, respectively.
2010-01-08 10:34:29 +01:00
Florian Pose
2a728db130
Added README to dist.
2009-12-09 14:40:35 +01:00
Florian Pose
06bad71e6b
Implemented reading direction of tty driver.
2009-12-09 12:42:28 +01:00
Florian Pose
6dbc77cd62
Send direction works!
2009-12-02 15:38:10 +01:00
Florian Pose
e2279c8715
Removed semaphore header.
2009-12-01 22:19:13 +01:00
Florian Pose
efb02691c1
TTY open and close.
2009-12-01 22:16:50 +01:00
Florian Pose
e5bcaeefcd
Use own PFX for printk.
2009-12-01 22:03:50 +01:00
Florian Pose
866c82a4a8
Interface management.
2009-12-01 21:45:45 +01:00
Florian Pose
fdad28ad05
Register a TTY driver with one device.
2009-12-01 17:35:33 +01:00
Florian Pose
40943a197d
Base files for new TTY driver.
2009-11-30 18:02:29 +01:00