xref: /onnv-gate/usr/src/lib/storage/liba5k/common/llib-la5k (revision 7839:1208b9e99e43)
1*7839SJohn.Forte@Sun.COM/*
2*7839SJohn.Forte@Sun.COM * CDDL HEADER START
3*7839SJohn.Forte@Sun.COM *
4*7839SJohn.Forte@Sun.COM * The contents of this file are subject to the terms of the
5*7839SJohn.Forte@Sun.COM * Common Development and Distribution License (the "License").
6*7839SJohn.Forte@Sun.COM * You may not use this file except in compliance with the License.
7*7839SJohn.Forte@Sun.COM *
8*7839SJohn.Forte@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7839SJohn.Forte@Sun.COM * or http://www.opensolaris.org/os/licensing.
10*7839SJohn.Forte@Sun.COM * See the License for the specific language governing permissions
11*7839SJohn.Forte@Sun.COM * and limitations under the License.
12*7839SJohn.Forte@Sun.COM *
13*7839SJohn.Forte@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each
14*7839SJohn.Forte@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7839SJohn.Forte@Sun.COM * If applicable, add the following below this CDDL HEADER, with the
16*7839SJohn.Forte@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying
17*7839SJohn.Forte@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner]
18*7839SJohn.Forte@Sun.COM *
19*7839SJohn.Forte@Sun.COM * CDDL HEADER END
20*7839SJohn.Forte@Sun.COM */
21*7839SJohn.Forte@Sun.COM/*
22*7839SJohn.Forte@Sun.COM * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*7839SJohn.Forte@Sun.COM * Use is subject to license terms.
24*7839SJohn.Forte@Sun.COM */
25*7839SJohn.Forte@Sun.COM
26*7839SJohn.Forte@Sun.COM/*LINTLIBRARY*/
27*7839SJohn.Forte@Sun.COM/*PROTOLIB1*/
28*7839SJohn.Forte@Sun.COM
29*7839SJohn.Forte@Sun.COM#include	<stdlib.h>
30*7839SJohn.Forte@Sun.COM#include	<stdio.h>
31*7839SJohn.Forte@Sun.COM#include	<sys/file.h>
32*7839SJohn.Forte@Sun.COM#include	<sys/types.h>
33*7839SJohn.Forte@Sun.COM#include	<sys/param.h>
34*7839SJohn.Forte@Sun.COM#include	<fcntl.h>
35*7839SJohn.Forte@Sun.COM#include	<unistd.h>
36*7839SJohn.Forte@Sun.COM#include	<errno.h>
37*7839SJohn.Forte@Sun.COM#include	<string.h>
38*7839SJohn.Forte@Sun.COM#include	<sys/scsi/scsi.h>
39*7839SJohn.Forte@Sun.COM#include	<nl_types.h>
40*7839SJohn.Forte@Sun.COM#include	<strings.h>
41*7839SJohn.Forte@Sun.COM#include	<sys/ddi.h>	/* for max */
42*7839SJohn.Forte@Sun.COM#include	<l_common.h>
43*7839SJohn.Forte@Sun.COM#include	<stgcom.h>
44*7839SJohn.Forte@Sun.COM#include	<l_error.h>
45*7839SJohn.Forte@Sun.COM#include	<a_state.h>
46*7839SJohn.Forte@Sun.COM#include	<a5k.h>
47