Deleted Added
full compact
scsi_pt.c (47625) scsi_pt.c (47640)
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.8 1999/05/22 22:00:22 gibbs Exp $
28 * $Id: scsi_pt.c,v 1.9 1999/05/30 16:51:05 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>

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

299 xpt_free_path(path);
300 }
301
302 if (status != CAM_REQ_CMP) {
303 printf("pt: Failed to attach master async callback "
304 "due to status 0x%x!\n", status);
305 } else {
306 /* If we were successfull, register our devsw */
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>

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

299 xpt_free_path(path);
300 }
301
302 if (status != CAM_REQ_CMP) {
303 printf("pt: Failed to attach master async callback "
304 "due to status 0x%x!\n", status);
305 } else {
306 /* If we were successfull, register our devsw */
307 dev_t dev;
308
309 dev = makedev(PT_CDEV_MAJOR, 0);
310 cdevsw_add(&dev,&pt_cdevsw, NULL);
307 cdevsw_add(&pt_cdevsw);
311 }
312}
313
314static cam_status
315ptctor(struct cam_periph *periph, void *arg)
316{
317 struct pt_softc *softc;
318 struct ccb_setasync csa;

--- 407 unchanged lines hidden ---
308 }
309}
310
311static cam_status
312ptctor(struct cam_periph *periph, void *arg)
313{
314 struct pt_softc *softc;
315 struct ccb_setasync csa;

--- 407 unchanged lines hidden ---