dm_9x40_common.c revision cee0fb94c0d4227de0a00efc162fb2739844b641
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <syslog.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <dlfcn.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <stropts.h>
#include <mms_dmd.h>
#include <mms_trace.h>
#include <dmd_impl.h>
#include <dm_drive.h>
#include <mms_sym.h>
drv_get_avail_capacity(void)
{
if (DRV_CALL(drv_log_sense,
return (-1);
}
return (-1);
}
/* Avail capacity in mega unit */
}
int
{
return (-1);
}
return (-1);
}
return (-1);
}
return (0);
}
int
drv_load(void)
{
int i;
for (i = 0; i < DRV_LOAD_TUR; i++) {
(void) sleep(1);
continue;
}
us.uscsi_buflen = 0;
if (DRV_CALL(drv_rewind, ()) == 0 &&
break;
} else {
/* Error doing load */
return (-1);
}
}
if (i == DRV_LOAD_TUR) {
return (-1);
}
/*
* You can only get max capacity of tape at BOM
*/
if (drv_max_cap == -1) {
}
return (0);
}