aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte/*
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * CDDL HEADER START
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte *
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * The contents of this file are subject to the terms of the
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * Common Development and Distribution License (the "License").
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * You may not use this file except in compliance with the License.
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte *
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * or http://www.opensolaris.org/os/licensing.
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * See the License for the specific language governing permissions
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * and limitations under the License.
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte *
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * When distributing Covered Code, include this CDDL HEADER in each
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * If applicable, add the following below this CDDL HEADER, with the
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * fields enclosed by brackets "[]" replaced with your own identifying
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * information: Portions Copyright [yyyy] [name of copyright owner]
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte *
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * CDDL HEADER END
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte */
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte/*
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte * Use is subject to license terms.
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte */
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte/*LINTLIBRARY*/
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte/*PROTOLIB1*/
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <stdlib.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <stdio.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <sys/file.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <sys/types.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <sys/param.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <fcntl.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <unistd.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <errno.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <string.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <sys/scsi/scsi.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <nl_types.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <strings.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <sys/ddi.h> /* for max */
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <l_common.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <stgcom.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <l_error.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <a_state.h>
aaed89e7bd1f272cf30bdd7890911a70a9167104John Forte#include <a5k.h>