1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* Copyright (c) 1996-1998 Sun Microsystems, Inc. */ 23*7c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 24*7c478bd9Sstevel@tonic-gate 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gate #ifndef _SYS_XTI_OSI_H 27*7c478bd9Sstevel@tonic-gate #define _SYS_XTI_OSI_H 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate #include <sys/types.h> 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 34*7c478bd9Sstevel@tonic-gate extern "C" { 35*7c478bd9Sstevel@tonic-gate #endif 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gate #if !defined(_XPG5) 38*7c478bd9Sstevel@tonic-gate 39*7c478bd9Sstevel@tonic-gate /* 40*7c478bd9Sstevel@tonic-gate * SPECIFIC ISO OPTION AND MANAGEMENT PARAMETERS 41*7c478bd9Sstevel@tonic-gate * 42*7c478bd9Sstevel@tonic-gate * Note: 43*7c478bd9Sstevel@tonic-gate * Unfortunately, XTI specification test assertions require exposing in 44*7c478bd9Sstevel@tonic-gate * headers options that are not implemented. They also require exposing 45*7c478bd9Sstevel@tonic-gate * Internet and OSI related options as part of inclusion of <xti.h> 46*7c478bd9Sstevel@tonic-gate * 47*7c478bd9Sstevel@tonic-gate */ 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gate /* 51*7c478bd9Sstevel@tonic-gate * Definitions of ISO transport classes 52*7c478bd9Sstevel@tonic-gate */ 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gate #define T_CLASS0 0 55*7c478bd9Sstevel@tonic-gate #define T_CLASS1 1 56*7c478bd9Sstevel@tonic-gate #define T_CLASS2 2 57*7c478bd9Sstevel@tonic-gate #define T_CLASS3 3 58*7c478bd9Sstevel@tonic-gate #define T_CLASS4 4 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gate 61*7c478bd9Sstevel@tonic-gate /* 62*7c478bd9Sstevel@tonic-gate * Definition of the priorities 63*7c478bd9Sstevel@tonic-gate */ 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gate #define T_PRITOP 0 66*7c478bd9Sstevel@tonic-gate #define T_PRIHIGH 1 67*7c478bd9Sstevel@tonic-gate #define T_PRIMID 2 68*7c478bd9Sstevel@tonic-gate #define T_PRILOW 3 69*7c478bd9Sstevel@tonic-gate #define T_PRIDFLT 4 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gate /* 72*7c478bd9Sstevel@tonic-gate * Definitions of the protection levels 73*7c478bd9Sstevel@tonic-gate */ 74*7c478bd9Sstevel@tonic-gate 75*7c478bd9Sstevel@tonic-gate #define T_NOPROTECT 1 76*7c478bd9Sstevel@tonic-gate #define T_PASSIVEPROTECT 2 77*7c478bd9Sstevel@tonic-gate #define T_ACTIVEPROTECT 4 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gate /* 80*7c478bd9Sstevel@tonic-gate * Default values for the length of TPDUs 81*7c478bd9Sstevel@tonic-gate * Note: Sigh ! This obsolete constant required according to XTI test 82*7c478bd9Sstevel@tonic-gate * assertions. 83*7c478bd9Sstevel@tonic-gate */ 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gate #define T_LTPDUDFLT 128 /* define obsolete in XPG4 */ 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gate /* 88*7c478bd9Sstevel@tonic-gate * rate structure 89*7c478bd9Sstevel@tonic-gate */ 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gate struct rate { 92*7c478bd9Sstevel@tonic-gate t_scalar_t targetvalue; /* target value */ 93*7c478bd9Sstevel@tonic-gate t_scalar_t minacceptvalue; /* value of minimum */ 94*7c478bd9Sstevel@tonic-gate /* acceptable quality */ 95*7c478bd9Sstevel@tonic-gate }; 96*7c478bd9Sstevel@tonic-gate 97*7c478bd9Sstevel@tonic-gate /* 98*7c478bd9Sstevel@tonic-gate * reqvalue structure 99*7c478bd9Sstevel@tonic-gate */ 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gate struct reqvalue { 102*7c478bd9Sstevel@tonic-gate struct rate called; /* called rate */ 103*7c478bd9Sstevel@tonic-gate struct rate calling; /* calling rate */ 104*7c478bd9Sstevel@tonic-gate }; 105*7c478bd9Sstevel@tonic-gate 106*7c478bd9Sstevel@tonic-gate /* 107*7c478bd9Sstevel@tonic-gate * thrpt structure 108*7c478bd9Sstevel@tonic-gate */ 109*7c478bd9Sstevel@tonic-gate 110*7c478bd9Sstevel@tonic-gate struct thrpt { 111*7c478bd9Sstevel@tonic-gate struct reqvalue maxthrpt; /* maximum throughput */ 112*7c478bd9Sstevel@tonic-gate struct reqvalue avgthrpt; /* average throughput */ 113*7c478bd9Sstevel@tonic-gate }; 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gate /* 116*7c478bd9Sstevel@tonic-gate * transdel structure 117*7c478bd9Sstevel@tonic-gate */ 118*7c478bd9Sstevel@tonic-gate 119*7c478bd9Sstevel@tonic-gate struct transdel { 120*7c478bd9Sstevel@tonic-gate struct reqvalue maxdel; /* maximum transit delay */ 121*7c478bd9Sstevel@tonic-gate struct reqvalue avgdel; /* average throughput */ 122*7c478bd9Sstevel@tonic-gate }; 123*7c478bd9Sstevel@tonic-gate 124*7c478bd9Sstevel@tonic-gate /* 125*7c478bd9Sstevel@tonic-gate * Protocol Levels 126*7c478bd9Sstevel@tonic-gate */ 127*7c478bd9Sstevel@tonic-gate 128*7c478bd9Sstevel@tonic-gate #define ISO_TP 0x0100 129*7c478bd9Sstevel@tonic-gate 130*7c478bd9Sstevel@tonic-gate /* 131*7c478bd9Sstevel@tonic-gate * Options for Quality of Service and Expedited Data (ISO 8072:1986) 132*7c478bd9Sstevel@tonic-gate */ 133*7c478bd9Sstevel@tonic-gate 134*7c478bd9Sstevel@tonic-gate #define TCO_THROUGHPUT 0x0001 135*7c478bd9Sstevel@tonic-gate #define TCO_TRANSDEL 0x0002 136*7c478bd9Sstevel@tonic-gate #define TCO_RESERRORRATE 0x0003 137*7c478bd9Sstevel@tonic-gate #define TCO_TRANSFFAILPROB 0x0004 138*7c478bd9Sstevel@tonic-gate #define TCO_ESTFAILPROB 0x0005 139*7c478bd9Sstevel@tonic-gate #define TCO_RELFAILPROB 0x0006 140*7c478bd9Sstevel@tonic-gate #define TCO_ESTDELAY 0x0007 141*7c478bd9Sstevel@tonic-gate #define TCO_RELDELAY 0x0008 142*7c478bd9Sstevel@tonic-gate #define TCO_CONNRESIL 0x0009 143*7c478bd9Sstevel@tonic-gate #define TCO_PROTECTION 0x000a 144*7c478bd9Sstevel@tonic-gate #define TCO_PRIORITY 0x000b 145*7c478bd9Sstevel@tonic-gate #define TCO_EXPD 0x000c 146*7c478bd9Sstevel@tonic-gate 147*7c478bd9Sstevel@tonic-gate #define TCL_TRANSDEL 0x000d 148*7c478bd9Sstevel@tonic-gate #define TCL_RESERRORRATE TCO_RESERRORRATE 149*7c478bd9Sstevel@tonic-gate #define TCL_PROTECTION TCO_PROTECTION 150*7c478bd9Sstevel@tonic-gate #define TCL_PRIORITY TCO_PRIORITY 151*7c478bd9Sstevel@tonic-gate 152*7c478bd9Sstevel@tonic-gate 153*7c478bd9Sstevel@tonic-gate /* 154*7c478bd9Sstevel@tonic-gate * Management Options 155*7c478bd9Sstevel@tonic-gate */ 156*7c478bd9Sstevel@tonic-gate 157*7c478bd9Sstevel@tonic-gate #define TCO_LTPDU 0x0100 158*7c478bd9Sstevel@tonic-gate #define TCO_ACKTIME 0x0200 159*7c478bd9Sstevel@tonic-gate #define TCO_REASTIME 0x0300 160*7c478bd9Sstevel@tonic-gate #define TCO_EXTFORM 0x0400 161*7c478bd9Sstevel@tonic-gate #define TCO_FLOWCTRL 0x0500 162*7c478bd9Sstevel@tonic-gate #define TCO_CHECKSUM 0x0600 163*7c478bd9Sstevel@tonic-gate #define TCO_NETEXP 0x0700 164*7c478bd9Sstevel@tonic-gate #define TCO_NETRECPTCF 0x0800 165*7c478bd9Sstevel@tonic-gate #define TCO_PREFCLASS 0x0900 166*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS1 0x0a00 167*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS2 0x0b00 168*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS3 0x0c00 169*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS4 0x0d00 170*7c478bd9Sstevel@tonic-gate 171*7c478bd9Sstevel@tonic-gate #define TCL_CHECKSUM TCO_CHECKSUM 172*7c478bd9Sstevel@tonic-gate 173*7c478bd9Sstevel@tonic-gate #endif /* !defined(_XPG5) */ 174*7c478bd9Sstevel@tonic-gate 175*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 176*7c478bd9Sstevel@tonic-gate } 177*7c478bd9Sstevel@tonic-gate #endif 178*7c478bd9Sstevel@tonic-gate 179*7c478bd9Sstevel@tonic-gate #endif /* _SYS_XTI_OSI_H */ 180