Skip to content

Commit 999156a

Browse files
ribaldagregkh
authored andcommitted
sparc/uapi: Add definition of TIOC[SG]RS485
Commit: e676253 (serial/8250: Add support for RS485 IOCTLs), adds support for RS485 ioctls for 825_core on all the archs. Unfortunaltely the definition of TIOCSRS485 and TIOCGRS485 was missing on the ioctls.h file Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8e63aee commit 999156a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/sparc/include/uapi/asm/ioctls.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */
2525
#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */
2626
#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */
27+
#define TIOCGRS485 _IOR('T', 0x41, struct serial_rs485)
28+
#define TIOCSRS485 _IOWR('T', 0x42, struct serial_rs485)
2729

2830
/* Note that all the ioctls that are not available in Linux have a
2931
* double underscore on the front to: a) avoid some programs to

0 commit comments

Comments
 (0)