Deleted Added
full compact
scsi_pass.c (47625) scsi_pass.c (47640)
1/*
2 * Copyright (c) 1997, 1998 Justin T. Gibbs.
3 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright (c) 1997, 1998 Justin T. Gibbs.
3 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $Id: scsi_pass.c,v 1.10 1999/05/22 22:00:21 gibbs Exp $
27 * $Id: scsi_pass.c,v 1.11 1999/05/30 16:51:03 phk Exp $
28 */
29
30#include <sys/param.h>
31#include <sys/queue.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/types.h>
35#include <sys/buf.h>

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

179 status = csa.ccb_h.status;
180 xpt_free_path(path);
181 }
182
183 if (status != CAM_REQ_CMP) {
184 printf("pass: Failed to attach master async callback "
185 "due to status 0x%x!\n", status);
186 } else {
28 */
29
30#include <sys/param.h>
31#include <sys/queue.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/types.h>
35#include <sys/buf.h>

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

179 status = csa.ccb_h.status;
180 xpt_free_path(path);
181 }
182
183 if (status != CAM_REQ_CMP) {
184 printf("pass: Failed to attach master async callback "
185 "due to status 0x%x!\n", status);
186 } else {
187 dev_t dev;
188
189 /* If we were successfull, register our devsw */
187 /* If we were successfull, register our devsw */
190 dev = makedev(PASS_CDEV_MAJOR, 0);
191 cdevsw_add(&dev, &pass_cdevsw, NULL);
188 cdevsw_add(&pass_cdevsw);
192 }
193
194}
195
196static void
197passoninvalidate(struct cam_periph *periph)
198{
199 int s;

--- 639 unchanged lines hidden ---
189 }
190
191}
192
193static void
194passoninvalidate(struct cam_periph *periph)
195{
196 int s;

--- 639 unchanged lines hidden ---