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
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]
23 * Copyright 1998 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
33 #pragma ident "%Z%%M% %I% %E% SMI"
35 #include <sys/types.h>
36 #include <sys/stream.h>
43 #define TIMOD ('T'<<8)
44 #define TI_GETINFO (TIMOD|140)
45 #define TI_OPTMGMT (TIMOD|141)
46 #define TI_BIND (TIMOD|142)
47 #define TI_UNBIND (TIMOD|143)
48 #define TI_GETMYNAME (TIMOD|144)
49 #define TI_GETPEERNAME (TIMOD|145)
50 #define TI_SETMYNAME (TIMOD|146)
51 #define TI_SETPEERNAME (TIMOD|147)
52 #define TI_SYNC (TIMOD|148)
53 #define TI_GETADDRS (TIMOD|149)
54 #define TI_CAPABILITY (TIMOD|150)
57 * There are two ioctls to get information from the kernel. One is TI_SYNC
58 * and it should be only used to exchange information between the library and
59 * timod. It should not request any TPI information. The second ioctl is
60 * TI_CAPABILITY which is extensible ioctl for getting all the information from
64 /* sent with TI_SYNC */
67 /* can grow at the end */
71 * For use with tsr_flags
72 * TSRF_INFO_REQ is obsolete and shouldn't be used in new code. Use
73 * TI_CAPABILITY ioctl instead.
75 #define TSRF_INFO_REQ 0x1 /* get info about transport endpoint */
76 #define TSRF_IS_EXP_IN_RCVBUF 0x2 /* look for exp ind in rcvbuf */
77 #define TSRF_QLEN_REQ 0x4 /* get qlen from timod */
79 /* returned by TI_SYNC */
82 * - initial part derived from and matches T_info_ack
83 * - returned when TSRF_INFO_REQ is set on request
87 t_scalar_t ETSDU_size
;
88 t_scalar_t CDATA_size
;
89 t_scalar_t DDATA_size
;
94 t_scalar_t CURRENT_state
;
95 t_scalar_t PROVIDER_flag
;
98 * endpoint qlen backlog, returned when TSRF_INFO_REQ is set on request
100 t_uscalar_t tsa_qlen
;
103 * misc flags info - bits set based on what is requested.
106 /* can grow at the end */
110 * Flag bits for use with tsa_flags
115 * set/clear significant when TSRF_IS_EXP_IN_RCVBUF is set on request
117 #define TSAF_EXP_QUEUED 0x1
123 #endif /* _SYS_TIMOD_H */