dpt_scsi.c (166091) | dpt_scsi.c (168752) |
---|---|
1/*- 2 * Copyright (c) 1997 by Simon Shapiro 3 * All Rights Reserved 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 | 1/*- 2 * Copyright (c) 1997 by Simon Shapiro 3 * All Rights Reserved 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 |
30#ident "$FreeBSD: head/sys/dev/dpt/dpt_scsi.c 166091 2007-01-18 13:33:36Z marius $" | 30#ident "$FreeBSD: head/sys/dev/dpt/dpt_scsi.c 168752 2007-04-15 08:49:19Z scottl $" |
31#include <sys/cdefs.h> | 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/dpt/dpt_scsi.c 166091 2007-01-18 13:33:36Z marius $"); | 32__FBSDID("$FreeBSD: head/sys/dev/dpt/dpt_scsi.c 168752 2007-04-15 08:49:19Z scottl $"); |
33 34/* 35 * dpt_scsi.c: SCSI dependant code for the DPT driver 36 * 37 * credits: Assisted by Mike Neuffer in the early low level DPT code 38 * Thanx to Mark Salyzyn of DPT for his assistance. 39 * Special thanx to Justin Gibbs for invaluable help in 40 * making this driver look and work like a FreeBSD component. --- 1520 unchanged lines hidden (view full) --- 1561 if (devq == NULL) 1562 return (0); 1563 1564 for (i = 0; i < dpt->channels; i++) { 1565 /* 1566 * Construct our SIM entry 1567 */ 1568 dpt->sims[i] = cam_sim_alloc(dpt_action, dpt_poll, "dpt", | 33 34/* 35 * dpt_scsi.c: SCSI dependant code for the DPT driver 36 * 37 * credits: Assisted by Mike Neuffer in the early low level DPT code 38 * Thanx to Mark Salyzyn of DPT for his assistance. 39 * Special thanx to Justin Gibbs for invaluable help in 40 * making this driver look and work like a FreeBSD component. --- 1520 unchanged lines hidden (view full) --- 1561 if (devq == NULL) 1562 return (0); 1563 1564 for (i = 0; i < dpt->channels; i++) { 1565 /* 1566 * Construct our SIM entry 1567 */ 1568 dpt->sims[i] = cam_sim_alloc(dpt_action, dpt_poll, "dpt", |
1569 dpt, dpt->unit, /*untagged*/2, | 1569 dpt, dpt->unit, &Giant, 1570 /*untagged*/2, |
1570 /*tagged*/dpt->max_dccbs, devq); 1571 if (dpt->sims[i] == NULL) { 1572 if (i == 0) 1573 cam_simq_free(devq); 1574 else 1575 printf( "%s(): Unable to attach bus %d " 1576 "due to resource shortage\n", 1577 __func__, i); --- 1164 unchanged lines hidden --- | 1571 /*tagged*/dpt->max_dccbs, devq); 1572 if (dpt->sims[i] == NULL) { 1573 if (i == 0) 1574 cam_simq_free(devq); 1575 else 1576 printf( "%s(): Unable to attach bus %d " 1577 "due to resource shortage\n", 1578 __func__, i); --- 1164 unchanged lines hidden --- |