Deleted Added
full compact
scsi_ch.c (47625) scsi_ch.c (47640)
1/*
2 * Copyright (c) 1997 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 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_ch.c,v 1.12 1999/05/22 22:00:19 gibbs Exp $
27 * $Id: scsi_ch.c,v 1.13 1999/05/30 16:51:01 phk Exp $
28 */
29/*
30 * Derived from the NetBSD SCSI changer driver.
31 *
32 * $NetBSD: ch.c,v 1.32 1998/01/12 09:49:12 thorpej Exp $
33 *
34 */
35/*

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

272 status = csa.ccb_h.status;
273 xpt_free_path(path);
274 }
275
276 if (status != CAM_REQ_CMP) {
277 printf("ch: Failed to attach master async callback "
278 "due to status 0x%x!\n", status);
279 } else {
28 */
29/*
30 * Derived from the NetBSD SCSI changer driver.
31 *
32 * $NetBSD: ch.c,v 1.32 1998/01/12 09:49:12 thorpej Exp $
33 *
34 */
35/*

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

272 status = csa.ccb_h.status;
273 xpt_free_path(path);
274 }
275
276 if (status != CAM_REQ_CMP) {
277 printf("ch: Failed to attach master async callback "
278 "due to status 0x%x!\n", status);
279 } else {
280 dev_t dev;
281
282 /* If we were successfull, register our devsw */
280 /* If we were successfull, register our devsw */
283 dev = makedev(CH_CDEV_MAJOR, 0);
284 cdevsw_add(&dev, &ch_cdevsw, NULL);
281 cdevsw_add(&ch_cdevsw);
285 }
286}
287
288static void
289choninvalidate(struct cam_periph *periph)
290{
291 struct ch_softc *softc;
292 struct ccb_setasync csa;

--- 1415 unchanged lines hidden ---
282 }
283}
284
285static void
286choninvalidate(struct cam_periph *periph)
287{
288 struct ch_softc *softc;
289 struct ccb_setasync csa;

--- 1415 unchanged lines hidden ---