xref: /titanic_41/usr/src/uts/common/smbsrv/smb_ioctl.h (revision 8ec6c6f1a5917f5001e9b7ca20eed09b22e22c35)
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 (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _SMB_IOCTL_H_
27 #define	_SMB_IOCTL_H_
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 #include <sys/types.h>
36 #include <smbsrv/smbinfo.h>
37 
38 #define	SMB_IOC_VERSION		1
39 
40 #define	SMB_IOC_BASE		(('S' << 16) | ('B' << 8))
41 
42 #define	SMB_IOC_CONFIG		_IOW(SMB_IOC_BASE, 1, int)
43 #define	SMB_IOC_START		_IOW(SMB_IOC_BASE, 2, int)
44 #define	SMB_IOC_NBT_LISTEN	_IOW(SMB_IOC_BASE, 3, int)
45 #define	SMB_IOC_TCP_LISTEN	_IOW(SMB_IOC_BASE, 4, int)
46 #define	SMB_IOC_NBT_RECEIVE	_IOW(SMB_IOC_BASE, 5, int)
47 #define	SMB_IOC_TCP_RECEIVE	_IOW(SMB_IOC_BASE, 6, int)
48 #define	SMB_IOC_GMTOFF		_IOW(SMB_IOC_BASE, 7, int)
49 
50 #pragma	pack(1)
51 
52 typedef struct {
53 	uint32_t	sio_version;
54 	union {
55 		uint32_t	gmtoff;
56 		int		error;
57 		smb_kmod_cfg_t	cfg;
58 
59 		struct smb_io_start {
60 			int	winpipe;
61 			int	lmshrd;
62 			int	udoor;
63 		} start;
64 	} sio_data;
65 } smb_io_t;
66 
67 #pragma	pack()
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* _SMB_IOCTL_H_ */
74