xref: /titanic_50/usr/src/lib/libbc/inc/include/nettli/timod.h (revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4)
1 /*
2  * CDDL HEADER START
3  *
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.
8  *
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.
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 /*	from S5R3 sys/timod.h	10.3.1.1" */
23 
24 #pragma ident	"%Z%%M%	%I%	%E% SMI"
25 
26 /*	Copyright (c) 1984 AT&T	*/
27 /*	  All Rights Reserved  	*/
28 
29 
30 /* #ident	"@(#)kern-port:sys/timod.h	10.3.1.1" */
31 
32 #ifndef _nettli_timod_h
33 #define _nettli_timod_h
34 
35 /* internal flags */
36 #define USED		0x01	/* data structure in use          */
37 #define FATAL		0x02	/* fatal error M_ERROR occurred   */
38 #define WAITIOCACK	0x04	/* waiting for info for ioctl act */
39 #define MORE	        0x08	/* more data */
40 
41 
42 
43 /* timod ioctls */
44 #define		TIMOD 		('T'<<8)
45 #define		TI_GETINFO	(TIMOD|100)
46 #define		TI_OPTMGMT	(TIMOD|101)
47 #define		TI_BIND		(TIMOD|102)
48 #define		TI_UNBIND	(TIMOD|103)
49 
50 
51 /* TI interface user level structure - one per open file */
52 
53 struct _ti_user {
54 	ushort	ti_flags;	/* flags              */
55 	int	ti_rcvsize;	/* rcv buffer size    */
56 	char   *ti_rcvbuf;	/* rcv buffer         */
57 	int	ti_ctlsize;	/* ctl buffer size    */
58 	char   *ti_ctlbuf;	/* ctl buffer         */
59 	char   *ti_lookdbuf;	/* look data buffer   */
60 	char   *ti_lookcbuf;	/* look ctl buffer    */
61 	int	ti_lookdsize;  /* look data buf size */
62 	int	ti_lookcsize;  /* look ctl buf size  */
63 	int	ti_maxpsz;	/* TIDU size          */
64 	long	ti_servtype;	/* service type       */
65 	int     ti_lookflg;	/* buffered look flag */
66 };
67 
68 
69 /* This should be replaced */
70 #define OPENFILES     getdtablesize()
71 
72 #endif /*!_nettli_timod_h*/
73