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 #include <sys/types.h> 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 32*7c478bd9Sstevel@tonic-gate extern "C" { 33*7c478bd9Sstevel@tonic-gate #endif 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gate #if !defined(_XPG5) 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gate /* 38*7c478bd9Sstevel@tonic-gate * SPECIFIC ISO OPTION AND MANAGEMENT PARAMETERS 39*7c478bd9Sstevel@tonic-gate * 40*7c478bd9Sstevel@tonic-gate * Note: 41*7c478bd9Sstevel@tonic-gate * Unfortunately, XTI specification test assertions require exposing in 42*7c478bd9Sstevel@tonic-gate * headers options that are not implemented. They also require exposing 43*7c478bd9Sstevel@tonic-gate * Internet and OSI related options as part of inclusion of <xti.h> 44*7c478bd9Sstevel@tonic-gate * 45*7c478bd9Sstevel@tonic-gate */ 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gate 48*7c478bd9Sstevel@tonic-gate /* 49*7c478bd9Sstevel@tonic-gate * Definitions of ISO transport classes 50*7c478bd9Sstevel@tonic-gate */ 51*7c478bd9Sstevel@tonic-gate 52*7c478bd9Sstevel@tonic-gate #define T_CLASS0 0 53*7c478bd9Sstevel@tonic-gate #define T_CLASS1 1 54*7c478bd9Sstevel@tonic-gate #define T_CLASS2 2 55*7c478bd9Sstevel@tonic-gate #define T_CLASS3 3 56*7c478bd9Sstevel@tonic-gate #define T_CLASS4 4 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate 59*7c478bd9Sstevel@tonic-gate /* 60*7c478bd9Sstevel@tonic-gate * Definition of the priorities 61*7c478bd9Sstevel@tonic-gate */ 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gate #define T_PRITOP 0 64*7c478bd9Sstevel@tonic-gate #define T_PRIHIGH 1 65*7c478bd9Sstevel@tonic-gate #define T_PRIMID 2 66*7c478bd9Sstevel@tonic-gate #define T_PRILOW 3 67*7c478bd9Sstevel@tonic-gate #define T_PRIDFLT 4 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gate /* 70*7c478bd9Sstevel@tonic-gate * Definitions of the protection levels 71*7c478bd9Sstevel@tonic-gate */ 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate #define T_NOPROTECT 1 74*7c478bd9Sstevel@tonic-gate #define T_PASSIVEPROTECT 2 75*7c478bd9Sstevel@tonic-gate #define T_ACTIVEPROTECT 4 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gate /* 78*7c478bd9Sstevel@tonic-gate * Default values for the length of TPDUs 79*7c478bd9Sstevel@tonic-gate * Note: Sigh ! This obsolete constant required according to XTI test 80*7c478bd9Sstevel@tonic-gate * assertions. 81*7c478bd9Sstevel@tonic-gate */ 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gate #define T_LTPDUDFLT 128 /* define obsolete in XPG4 */ 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gate /* 86*7c478bd9Sstevel@tonic-gate * rate structure 87*7c478bd9Sstevel@tonic-gate */ 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate struct rate { 90*7c478bd9Sstevel@tonic-gate t_scalar_t targetvalue; /* target value */ 91*7c478bd9Sstevel@tonic-gate t_scalar_t minacceptvalue; /* value of minimum */ 92*7c478bd9Sstevel@tonic-gate /* acceptable quality */ 93*7c478bd9Sstevel@tonic-gate }; 94*7c478bd9Sstevel@tonic-gate 95*7c478bd9Sstevel@tonic-gate /* 96*7c478bd9Sstevel@tonic-gate * reqvalue structure 97*7c478bd9Sstevel@tonic-gate */ 98*7c478bd9Sstevel@tonic-gate 99*7c478bd9Sstevel@tonic-gate struct reqvalue { 100*7c478bd9Sstevel@tonic-gate struct rate called; /* called rate */ 101*7c478bd9Sstevel@tonic-gate struct rate calling; /* calling rate */ 102*7c478bd9Sstevel@tonic-gate }; 103*7c478bd9Sstevel@tonic-gate 104*7c478bd9Sstevel@tonic-gate /* 105*7c478bd9Sstevel@tonic-gate * thrpt structure 106*7c478bd9Sstevel@tonic-gate */ 107*7c478bd9Sstevel@tonic-gate 108*7c478bd9Sstevel@tonic-gate struct thrpt { 109*7c478bd9Sstevel@tonic-gate struct reqvalue maxthrpt; /* maximum throughput */ 110*7c478bd9Sstevel@tonic-gate struct reqvalue avgthrpt; /* average throughput */ 111*7c478bd9Sstevel@tonic-gate }; 112*7c478bd9Sstevel@tonic-gate 113*7c478bd9Sstevel@tonic-gate /* 114*7c478bd9Sstevel@tonic-gate * transdel structure 115*7c478bd9Sstevel@tonic-gate */ 116*7c478bd9Sstevel@tonic-gate 117*7c478bd9Sstevel@tonic-gate struct transdel { 118*7c478bd9Sstevel@tonic-gate struct reqvalue maxdel; /* maximum transit delay */ 119*7c478bd9Sstevel@tonic-gate struct reqvalue avgdel; /* average throughput */ 120*7c478bd9Sstevel@tonic-gate }; 121*7c478bd9Sstevel@tonic-gate 122*7c478bd9Sstevel@tonic-gate /* 123*7c478bd9Sstevel@tonic-gate * Protocol Levels 124*7c478bd9Sstevel@tonic-gate */ 125*7c478bd9Sstevel@tonic-gate 126*7c478bd9Sstevel@tonic-gate #define ISO_TP 0x0100 127*7c478bd9Sstevel@tonic-gate 128*7c478bd9Sstevel@tonic-gate /* 129*7c478bd9Sstevel@tonic-gate * Options for Quality of Service and Expedited Data (ISO 8072:1986) 130*7c478bd9Sstevel@tonic-gate */ 131*7c478bd9Sstevel@tonic-gate 132*7c478bd9Sstevel@tonic-gate #define TCO_THROUGHPUT 0x0001 133*7c478bd9Sstevel@tonic-gate #define TCO_TRANSDEL 0x0002 134*7c478bd9Sstevel@tonic-gate #define TCO_RESERRORRATE 0x0003 135*7c478bd9Sstevel@tonic-gate #define TCO_TRANSFFAILPROB 0x0004 136*7c478bd9Sstevel@tonic-gate #define TCO_ESTFAILPROB 0x0005 137*7c478bd9Sstevel@tonic-gate #define TCO_RELFAILPROB 0x0006 138*7c478bd9Sstevel@tonic-gate #define TCO_ESTDELAY 0x0007 139*7c478bd9Sstevel@tonic-gate #define TCO_RELDELAY 0x0008 140*7c478bd9Sstevel@tonic-gate #define TCO_CONNRESIL 0x0009 141*7c478bd9Sstevel@tonic-gate #define TCO_PROTECTION 0x000a 142*7c478bd9Sstevel@tonic-gate #define TCO_PRIORITY 0x000b 143*7c478bd9Sstevel@tonic-gate #define TCO_EXPD 0x000c 144*7c478bd9Sstevel@tonic-gate 145*7c478bd9Sstevel@tonic-gate #define TCL_TRANSDEL 0x000d 146*7c478bd9Sstevel@tonic-gate #define TCL_RESERRORRATE TCO_RESERRORRATE 147*7c478bd9Sstevel@tonic-gate #define TCL_PROTECTION TCO_PROTECTION 148*7c478bd9Sstevel@tonic-gate #define TCL_PRIORITY TCO_PRIORITY 149*7c478bd9Sstevel@tonic-gate 150*7c478bd9Sstevel@tonic-gate 151*7c478bd9Sstevel@tonic-gate /* 152*7c478bd9Sstevel@tonic-gate * Management Options 153*7c478bd9Sstevel@tonic-gate */ 154*7c478bd9Sstevel@tonic-gate 155*7c478bd9Sstevel@tonic-gate #define TCO_LTPDU 0x0100 156*7c478bd9Sstevel@tonic-gate #define TCO_ACKTIME 0x0200 157*7c478bd9Sstevel@tonic-gate #define TCO_REASTIME 0x0300 158*7c478bd9Sstevel@tonic-gate #define TCO_EXTFORM 0x0400 159*7c478bd9Sstevel@tonic-gate #define TCO_FLOWCTRL 0x0500 160*7c478bd9Sstevel@tonic-gate #define TCO_CHECKSUM 0x0600 161*7c478bd9Sstevel@tonic-gate #define TCO_NETEXP 0x0700 162*7c478bd9Sstevel@tonic-gate #define TCO_NETRECPTCF 0x0800 163*7c478bd9Sstevel@tonic-gate #define TCO_PREFCLASS 0x0900 164*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS1 0x0a00 165*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS2 0x0b00 166*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS3 0x0c00 167*7c478bd9Sstevel@tonic-gate #define TCO_ALTCLASS4 0x0d00 168*7c478bd9Sstevel@tonic-gate 169*7c478bd9Sstevel@tonic-gate #define TCL_CHECKSUM TCO_CHECKSUM 170*7c478bd9Sstevel@tonic-gate 171*7c478bd9Sstevel@tonic-gate #endif /* !defined(_XPG5) */ 172*7c478bd9Sstevel@tonic-gate 173*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 174*7c478bd9Sstevel@tonic-gate } 175*7c478bd9Sstevel@tonic-gate #endif 176*7c478bd9Sstevel@tonic-gate 177*7c478bd9Sstevel@tonic-gate #endif /* _SYS_XTI_OSI_H */ 178