11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
24 * All Rights Reserved
25 *
26 */
27
28 /*
29 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 */
32
33 #ifndef _SYS_TIUSER_H
34 #define _SYS_TIUSER_H
35
36 #pragma ident "%Z%%M% %I% %E% SMI"
37
38 #include <sys/types.h>
39 /*
40 * The following include file has declarations needed by both the kernel
41 * level transport providers and the user level library.
42 */
43 #include <sys/tpicommon.h>
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49
50 /*
51 * The following are the events returned by t_look
52 */
53 #define T_LISTEN 0x0001 /* connection indication received */
54 #define T_CONNECT 0x0002 /* connect confirmation received */
55 #define T_DATA 0x0004 /* normal data received */
56 #define T_EXDATA 0x0008 /* expedited data received */
57 #define T_DISCONNECT 0x0010 /* disconnect received */
58 #define T_ERROR 0x0020 /* fatal error occurred */
59 #define T_UDERR 0x0040 /* data gram error indication */
60 #define T_ORDREL 0x0080 /* orderly release indication */
61 #define T_EVENTS 0x00ff /* event mask */
62
63 /*
64 * Flags for data primitives.
65 */
66 #define T_MORE 0x001 /* more data */
67 #define T_EXPEDITED 0x002 /* expedited data */
68
69
70 /*
71 * protocol specific service limits
72 */
73
74 struct t_info {
75 t_scalar_t addr; /* size of protocol address */
76 t_scalar_t options; /* size of protocol options */
77 t_scalar_t tsdu; /* size of max transport service data unit */
78 t_scalar_t etsdu; /* size of max expedited tsdu */
|
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
24 * All Rights Reserved
25 *
26 */
27
28 /*
29 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 * Copyright 2014 Gary Mills
32 */
33
34 #ifndef _SYS_TIUSER_H
35 #define _SYS_TIUSER_H
36
37 #include <sys/types.h>
38 /*
39 * The following include file has declarations needed by both the kernel
40 * level transport providers and the user level library.
41 */
42 #include <sys/tpicommon.h>
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47
48
49 /*
50 * The following are the events returned by t_look
51 */
52 #define T_LISTEN 0x0001 /* connection indication received */
53 #define T_CONNECT 0x0002 /* connect confirmation received */
54 #define T_DATA 0x0004 /* normal data received */
55 #define T_EXDATA 0x0008 /* expedited data received */
56 #define T_DISCONNECT 0x0010 /* disconnect received */
57 #define T_UDERR 0x0040 /* data gram error indication */
58 #define T_ORDREL 0x0080 /* orderly release indication */
59 #define T_EVENTS 0x00ff /* event mask */
60
61 /*
62 * Flags for data primitives.
63 */
64 #define T_MORE 0x001 /* more data */
65 #define T_EXPEDITED 0x002 /* expedited data */
66
67
68 /*
69 * protocol specific service limits
70 */
71
72 struct t_info {
73 t_scalar_t addr; /* size of protocol address */
74 t_scalar_t options; /* size of protocol options */
75 t_scalar_t tsdu; /* size of max transport service data unit */
76 t_scalar_t etsdu; /* size of max expedited tsdu */
|