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