Deleted Added
full compact
scsi_pt.c (47640) scsi_pt.c (49982)
1/*
2 * Implementation of SCSI Processor Target Peripheral driver for CAM.
3 *
4 * Copyright (c) 1998 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 Processor Target Peripheral driver for CAM.
3 *
4 * Copyright (c) 1998 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_pt.c,v 1.9 1999/05/30 16:51:05 phk Exp $
28 * $Id: scsi_pt.c,v 1.10 1999/05/31 11:24:07 phk Exp $
29 */
30
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/types.h>
36#include <sys/buf.h>

--- 117 unchanged lines hidden (view full) ---

154
155 s = splsoftcam();
156 if (softc->flags & PT_FLAG_DEVICE_INVALID) {
157 splx(s);
158 return(ENXIO);
159 }
160
161 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
29 */
30
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/types.h>
36#include <sys/buf.h>

--- 117 unchanged lines hidden (view full) ---

154
155 s = splsoftcam();
156 if (softc->flags & PT_FLAG_DEVICE_INVALID) {
157 splx(s);
158 return(ENXIO);
159 }
160
161 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE,
162 ("ptopen: dev=0x%x (unit %d)\n", dev, unit));
162 ("ptopen: dev=%s (unit %d)\n", devtoname(dev), unit));
163
164 if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) {
165 splx(s);
166 return (error); /* error code from tsleep */
167 }
168
169 splx(s);
170

--- 552 unchanged lines hidden ---
163
164 if ((error = cam_periph_lock(periph, PRIBIO|PCATCH)) != 0) {
165 splx(s);
166 return (error); /* error code from tsleep */
167 }
168
169 splx(s);
170

--- 552 unchanged lines hidden ---