summaryrefslogtreecommitdiffstats
path: root/include/linux/rocket.h
blob: 2019d4d35bbd095bde33bf9ea8eb274de83bbae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * This file contains the exported interface of the rocket driver to
 * its configuration program.
 */

struct rocket_config {
	int	line;
	int	flags;
	int	closing_wait;
	int	close_delay;
	int	port;
	int	reserved[32];
};

struct rocket_ports {
	int	tty_major;
	int	callout_major;
	int	port_bitmap[4];
	int	reserved[32];
};

/*
 * Rocketport flags
 */
#define ROCKET_CALLOUT_NOHUP    0x00000001
#define ROCKET_FORCE_CD		0x00000002
#define ROCKET_HUP_NOTIFY	0x00000004
#define ROCKET_SPLIT_TERMIOS	0x00000008
#define ROCKET_SPD_MASK		0x00000070
#define ROCKET_SPD_HI		0x00000010 /* Use 56000 instead of 38400 bps */
#define ROCKET_SPD_VHI		0x00000020 /* Use 115200 instead of 38400 bps*/
#define ROCKET_SPD_SHI		0x00000030 /* Use 230400 instead of 38400 bps*/
#define ROCKET_SPD_WARP	        0x00000040 /* Use 460800 instead of 38400 bps*/
#define ROCKET_SAK		0x00000080
#define ROCKET_SESSION_LOCKOUT	0x00000100
#define ROCKET_PGRP_LOCKOUT	0x00000200
	
#define ROCKET_FLAGS		0x000003FF

#define ROCKET_USR_MASK 0x0071	/* Legal flags that non-privileged
				 * users can set or reset */

/*
 * For closing_wait and closing_wait2
 */
#define ROCKET_CLOSING_WAIT_NONE	65535
#define ROCKET_CLOSING_WAIT_INF		0

/*
 * Rocketport ioctls -- "RP"
 */
#define RCKP_GET_STRUCT		0x00525001
#define RCKP_GET_CONFIG		0x00525002
#define RCKP_SET_CONFIG		0x00525003
#define RCKP_GET_PORTS		0x00525004