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 2010 QLogic Corporation */
23
24/*
25 * Copyright 2009 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 * ISP2xxx Solaris Fibre Channel Adapter (FCA) driver header file.
34 *
35 * ***********************************************************************
36 * *									**
37 * *				NOTICE					**
38 * *		COPYRIGHT (C) 1996-2010 QLOGIC CORPORATION		**
39 * *			ALL RIGHTS RESERVED				**
40 * *									**
41 * ***********************************************************************
42 *
43 */
44
45#ifdef	__cplusplus
46extern "C" {
47#endif
48
49/*
50 * Global Function Prototypes in ql_ioctl.c source file.
51 */
52int ql_ioctl(dev_t, int, intptr_t, int, cred_t *, int *);
53int ql_open(dev_t *dev_p, int flags, int otyp, cred_t *cred_p);
54int ql_close(dev_t dev, int flags, int otyp, cred_t *cred_p);
55int ql_nv_util_load(ql_adapter_state_t *, void *, int);
56int ql_nv_util_dump(ql_adapter_state_t *, void *, int);
57int ql_vpd_load(ql_adapter_state_t *, void *, int);
58int ql_vpd_dump(ql_adapter_state_t *, void *, int);
59int32_t ql_vpd_lookup(ql_adapter_state_t *, uint8_t *, uint8_t *, int32_t);
60int ql_r_m_w_flash(ql_adapter_state_t *, caddr_t, uint32_t, uint32_t, int);
61int ql_get_nvram(ql_adapter_state_t *, void *, uint32_t, uint32_t);
62
63#ifdef	__cplusplus
64}
65#endif
66
67#endif /* _QL_IOCTL_H */
68