1 /*
2 * This file contains the exported interface of the rocket driver to
3 * its configuration program.
4 */
5
6 struct rocket_config {
7 int line;
8 int flags;
9 int closing_wait;
10 int close_delay;
11 int port;
12 int reserved[32];
13 };
14
15 struct rocket_ports {
16 int tty_major;
17 int callout_major;
18 int port_bitmap[4];
19 int reserved[32];
20 };
21
22 /*
23 * Rocketport flags
24 */
25 #define ROCKET_CALLOUT_NOHUP 0x00000001
26 #define ROCKET_FORCE_CD 0x00000002
27 #define ROCKET_HUP_NOTIFY 0x00000004
28 #define ROCKET_SPLIT_TERMIOS 0x00000008
29 #define ROCKET_SPD_MASK 0x00000070
30 #define ROCKET_SPD_HI 0x00000010 /* Use 56000 instead of 38400 bps */
31 #define ROCKET_SPD_VHI 0x00000020 /* Use 115200 instead of 38400 bps*/
32 #define ROCKET_SPD_SHI 0x00000030 /* Use 230400 instead of 38400 bps*/
33 #define ROCKET_SPD_WARP 0x00000040 /* Use 460800 instead of 38400 bps*/
34 #define ROCKET_SAK 0x00000080
35 #define ROCKET_SESSION_LOCKOUT 0x00000100
36 #define ROCKET_PGRP_LOCKOUT 0x00000200
37
38 #define ROCKET_FLAGS 0x000003FF
39
40 #define ROCKET_USR_MASK 0x0071 /* Legal flags that non-privileged
41 * users can set or reset */
42
43 /*
44 * For closing_wait and closing_wait2
45 */
46 #define ROCKET_CLOSING_WAIT_NONE 65535
47 #define ROCKET_CLOSING_WAIT_INF 0
48
49 /*
50 * Rocketport ioctls -- "RP"
51 */
52 #define RCKP_GET_STRUCT 0x00525001
53 #define RCKP_GET_CONFIG 0x00525002
54 #define RCKP_SET_CONFIG 0x00525003
55 #define RCKP_GET_PORTS 0x00525004
56
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.