scsi_da.c (50107) | scsi_da.c (50253) |
---|---|
1/* 2 * Implementation of SCSI Direct Access Peripheral driver for CAM. 3 * 4 * Copyright (c) 1997 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* 2 * Implementation of SCSI Direct Access Peripheral driver for CAM. 3 * 4 * Copyright (c) 1997 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $Id: scsi_da.c,v 1.33 1999/08/15 23:34:40 mjacob Exp $ | 28 * $Id: scsi_da.c,v 1.34 1999/08/21 06:23:50 msmith Exp $ |
29 */ 30 31#include "opt_hw_wdog.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/buf.h> --- 240 unchanged lines hidden (view full) --- 277 part = dkpart(dev); 278 periph = cam_extend_get(daperiphs, unit); 279 if (periph == NULL) 280 return (ENXIO); 281 282 softc = (struct da_softc *)periph->softc; 283 284 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, | 29 */ 30 31#include "opt_hw_wdog.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/buf.h> --- 240 unchanged lines hidden (view full) --- 277 part = dkpart(dev); 278 periph = cam_extend_get(daperiphs, unit); 279 if (periph == NULL) 280 return (ENXIO); 281 282 softc = (struct da_softc *)periph->softc; 283 284 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, |
285 ("daopen: dev=0x%lx (unit %d , partition %d)\n", (long) dev, | 285 ("daopen: dev=%s (unit %d , partition %d)\n", devtoname(dev), |
286 unit, part)); 287 288 if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) { 289 return (error); /* error code from tsleep */ 290 } 291 292 if ((softc->flags & DA_FLAG_OPEN) == 0) { 293 if (cam_periph_acquire(periph) != CAM_REQ_CMP) --- 1324 unchanged lines hidden --- | 286 unit, part)); 287 288 if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) { 289 return (error); /* error code from tsleep */ 290 } 291 292 if ((softc->flags & DA_FLAG_OPEN) == 0) { 293 if (cam_periph_acquire(periph) != CAM_REQ_CMP) --- 1324 unchanged lines hidden --- |