uts: make emu10k non-verbose
[unleashed.git] / include / sys / xti_osi.h
blob184f3ef277a90a61f6d1338a2e418c3b48680628
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1996-1998 Sun Microsystems, Inc. */
23 /* All Rights Reserved */
26 #ifndef _SYS_XTI_OSI_H
27 #define _SYS_XTI_OSI_H
29 #pragma ident "%Z%%M% %I% %E% SMI"
31 #include <sys/types.h>
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
37 #if !defined(_XPG5)
40 * SPECIFIC ISO OPTION AND MANAGEMENT PARAMETERS
42 * Note:
43 * Unfortunately, XTI specification test assertions require exposing in
44 * headers options that are not implemented. They also require exposing
45 * Internet and OSI related options as part of inclusion of <xti.h>
51 * Definitions of ISO transport classes
54 #define T_CLASS0 0
55 #define T_CLASS1 1
56 #define T_CLASS2 2
57 #define T_CLASS3 3
58 #define T_CLASS4 4
62 * Definition of the priorities
65 #define T_PRITOP 0
66 #define T_PRIHIGH 1
67 #define T_PRIMID 2
68 #define T_PRILOW 3
69 #define T_PRIDFLT 4
72 * Definitions of the protection levels
75 #define T_NOPROTECT 1
76 #define T_PASSIVEPROTECT 2
77 #define T_ACTIVEPROTECT 4
80 * Default values for the length of TPDUs
81 * Note: Sigh ! This obsolete constant required according to XTI test
82 * assertions.
85 #define T_LTPDUDFLT 128 /* define obsolete in XPG4 */
88 * rate structure
91 struct rate {
92 t_scalar_t targetvalue; /* target value */
93 t_scalar_t minacceptvalue; /* value of minimum */
94 /* acceptable quality */
98 * reqvalue structure
101 struct reqvalue {
102 struct rate called; /* called rate */
103 struct rate calling; /* calling rate */
107 * thrpt structure
110 struct thrpt {
111 struct reqvalue maxthrpt; /* maximum throughput */
112 struct reqvalue avgthrpt; /* average throughput */
116 * transdel structure
119 struct transdel {
120 struct reqvalue maxdel; /* maximum transit delay */
121 struct reqvalue avgdel; /* average throughput */
125 * Protocol Levels
128 #define ISO_TP 0x0100
131 * Options for Quality of Service and Expedited Data (ISO 8072:1986)
134 #define TCO_THROUGHPUT 0x0001
135 #define TCO_TRANSDEL 0x0002
136 #define TCO_RESERRORRATE 0x0003
137 #define TCO_TRANSFFAILPROB 0x0004
138 #define TCO_ESTFAILPROB 0x0005
139 #define TCO_RELFAILPROB 0x0006
140 #define TCO_ESTDELAY 0x0007
141 #define TCO_RELDELAY 0x0008
142 #define TCO_CONNRESIL 0x0009
143 #define TCO_PROTECTION 0x000a
144 #define TCO_PRIORITY 0x000b
145 #define TCO_EXPD 0x000c
147 #define TCL_TRANSDEL 0x000d
148 #define TCL_RESERRORRATE TCO_RESERRORRATE
149 #define TCL_PROTECTION TCO_PROTECTION
150 #define TCL_PRIORITY TCO_PRIORITY
154 * Management Options
157 #define TCO_LTPDU 0x0100
158 #define TCO_ACKTIME 0x0200
159 #define TCO_REASTIME 0x0300
160 #define TCO_EXTFORM 0x0400
161 #define TCO_FLOWCTRL 0x0500
162 #define TCO_CHECKSUM 0x0600
163 #define TCO_NETEXP 0x0700
164 #define TCO_NETRECPTCF 0x0800
165 #define TCO_PREFCLASS 0x0900
166 #define TCO_ALTCLASS1 0x0a00
167 #define TCO_ALTCLASS2 0x0b00
168 #define TCO_ALTCLASS3 0x0c00
169 #define TCO_ALTCLASS4 0x0d00
171 #define TCL_CHECKSUM TCO_CHECKSUM
173 #endif /* !defined(_XPG5) */
175 #ifdef __cplusplus
177 #endif
179 #endif /* _SYS_XTI_OSI_H */