llib-la5k revision 7839:1208b9e99e43
1168054Sflz/* 2168054Sflz * CDDL HEADER START 3168266Sgabor * 4168266Sgabor * The contents of this file are subject to the terms of the 5168266Sgabor * Common Development and Distribution License (the "License"). 6168266Sgabor * You may not use this file except in compliance with the License. 7168266Sgabor * 8168266Sgabor * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9168266Sgabor * or http://www.opensolaris.org/os/licensing. 10168266Sgabor * See the License for the specific language governing permissions 11168054Sflz * and limitations under the License. 12168054Sflz * 13168064Sflz * When distributing Covered Code, include this CDDL HEADER in each 14168064Sflz * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15168064Sflz * If applicable, add the following below this CDDL HEADER, with the 16168064Sflz * fields enclosed by brackets "[]" replaced with your own identifying 17168064Sflz * information: Portions Copyright [yyyy] [name of copyright owner] 18168064Sflz * 19168064Sflz * CDDL HEADER END 20168064Sflz */ 21168064Sflz/* 22168064Sflz * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23168064Sflz * Use is subject to license terms. 24168064Sflz */ 25168064Sflz 26168064Sflz/*LINTLIBRARY*/ 27168054Sflz/*PROTOLIB1*/ 28168054Sflz 29168064Sflz#include <stdlib.h> 30168054Sflz#include <stdio.h> 31168064Sflz#include <sys/file.h> 32168131Sbmah#include <sys/types.h> 33168113Smarcus#include <sys/param.h> 34168123Snetchild#include <fcntl.h> 35168064Sflz#include <unistd.h> 36168054Sflz#include <errno.h> 37168054Sflz#include <string.h> 38168054Sflz#include <sys/scsi/scsi.h> 39168054Sflz#include <nl_types.h> 40168261Sache#include <strings.h> 41168077Sflz#include <sys/ddi.h> /* for max */ 42168077Sflz#include <l_common.h> 43168126Sale#include <stgcom.h> 44168069Sgarga#include <l_error.h> 45168472Snovel#include <a_state.h> 46168274Ssem#include <a5k.h> 47168667Sstefan