mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
tty: Use the generic RS485 ioctl on CRIS
Use the new general RS485 Linux data structure (introduced by Alan with
commit number c26c56c0f4) in the Cris
architecture too (currently, Cris still uses the old private data
structure instead of the new one).
Signed-off-by: Claudio Scordino <[email protected]>
Tested-by: Hinko Kocevar <[email protected]>
Tested-by: Janez Cufer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f786ddd285
commit
6fd1af4cf9
5 changed files with 66 additions and 29 deletions
|
|
@ -74,8 +74,9 @@
|
|||
#define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */
|
||||
#define FIOQSIZE 0x5460
|
||||
|
||||
#define TIOCSERSETRS485 0x5461 /* enable rs-485 */
|
||||
#define TIOCSERWRRS485 0x5462 /* write rs-485 */
|
||||
#define TIOCSERSETRS485 0x5461 /* enable rs-485 (deprecated) */
|
||||
#define TIOCSERWRRS485 0x5462 /* write rs-485 */
|
||||
#define TIOCSRS485 0x5463 /* enable rs-485 */
|
||||
|
||||
/* Used for packet mode */
|
||||
#define TIOCPKT_DATA 0
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
/* RS-485 structures */
|
||||
|
||||
/* RS-485 support */
|
||||
/* Used with ioctl() TIOCSERSETRS485 */
|
||||
/* Used with ioctl() TIOCSERSETRS485 for backward compatibility!
|
||||
* XXX: Do not use it for new code!
|
||||
*/
|
||||
struct rs485_control {
|
||||
unsigned short rts_on_send;
|
||||
unsigned short rts_after_sent;
|
||||
unsigned long delay_rts_before_send;
|
||||
unsigned short enabled;
|
||||
#ifdef __KERNEL__
|
||||
int disable_serial_loopback;
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Used with ioctl() TIOCSERWRRS485 */
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <asm/termbits.h>
|
||||
#include <asm/ioctls.h>
|
||||
#include <asm/rs485.h>
|
||||
#include <linux/serial.h>
|
||||
|
||||
struct winsize {
|
||||
unsigned short ws_row;
|
||||
|
|
|
|||
Loading…
Reference in a new issue