xref: /illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/ql_ioctl.h (revision de81e71e031139a0a7f13b7bf64152c3faa76698)
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 QLogic Corporation */
23 
24 /*
25  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
26  * Use is subject to license terms.
27  */
28 
29 #ifndef	_QL_IOCTL_H
30 #define	_QL_IOCTL_H
31 
32 
33 /*
34  * ISP2xxx Solaris Fibre Channel Adapter (FCA) driver header file.
35  *
36  * ***********************************************************************
37  * *									**
38  * *				NOTICE					**
39  * *		COPYRIGHT (C) 1996-2008 QLOGIC CORPORATION		**
40  * *			ALL RIGHTS RESERVED				**
41  * *									**
42  * ***********************************************************************
43  *
44  */
45 
46 #ifdef	__cplusplus
47 extern "C" {
48 #endif
49 
50 /*
51  * Global Function Prototypes in ql_ioctl.c source file.
52  */
53 int ql_ioctl(dev_t, int, intptr_t, int, cred_t *, int *);
54 int ql_open(dev_t *dev_p, int flags, int otyp, cred_t *cred_p);
55 int ql_close(dev_t dev, int flags, int otyp, cred_t *cred_p);
56 int ql_nv_util_load(ql_adapter_state_t *, void *, int);
57 int ql_nv_util_dump(ql_adapter_state_t *, void *, int);
58 int ql_vpd_load(ql_adapter_state_t *, void *, int);
59 int ql_vpd_dump(ql_adapter_state_t *, void *, int);
60 int32_t ql_vpd_lookup(ql_adapter_state_t *, uint8_t *, uint8_t *, int32_t);
61 
62 #ifdef	__cplusplus
63 }
64 #endif
65 
66 #endif /* _QL_IOCTL_H */
67