Deleted Added
full compact
ciss.c (166901) ciss.c (168752)
1/*-
2 * Copyright (c) 2001 Michael Smith
3 * Copyright (c) 2004 Paul Saab
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 * FOR 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) 2001 Michael Smith
3 * Copyright (c) 2004 Paul Saab
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 * FOR 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 * $FreeBSD: head/sys/dev/ciss/ciss.c 166901 2007-02-23 12:19:07Z piso $
27 * $FreeBSD: head/sys/dev/ciss/ciss.c 168752 2007-04-15 08:49:19Z scottl $
28 */
29
30/*
31 * Common Interface for SCSI-3 Support driver.
32 *
33 * CISS claims to provide a common interface between a generic SCSI
34 * transport and an intelligent host adapter.
35 *

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

2471 ciss_printf(sc, "can't allocate memory for controller SIM\n");
2472 return(ENOMEM);
2473 }
2474
2475 for (i = 0; i < sc->ciss_max_logical_bus; i++) {
2476 if ((sc->ciss_cam_sim[i] = cam_sim_alloc(ciss_cam_action, ciss_cam_poll,
2477 "ciss", sc,
2478 device_get_unit(sc->ciss_dev),
28 */
29
30/*
31 * Common Interface for SCSI-3 Support driver.
32 *
33 * CISS claims to provide a common interface between a generic SCSI
34 * transport and an intelligent host adapter.
35 *

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

2471 ciss_printf(sc, "can't allocate memory for controller SIM\n");
2472 return(ENOMEM);
2473 }
2474
2475 for (i = 0; i < sc->ciss_max_logical_bus; i++) {
2476 if ((sc->ciss_cam_sim[i] = cam_sim_alloc(ciss_cam_action, ciss_cam_poll,
2477 "ciss", sc,
2478 device_get_unit(sc->ciss_dev),
2479 &Giant, 1,
2479 sc->ciss_max_requests - 2,
2480 sc->ciss_max_requests - 2,
2480 1,
2481 sc->ciss_cam_devq)) == NULL) {
2482 ciss_printf(sc, "can't allocate CAM SIM for controller %d\n", i);
2483 return(ENOMEM);
2484 }
2485
2486 /*
2487 * Register bus with this SIM.
2488 */

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

2494 }
2495 }
2496
2497 for (i = CISS_PHYSICAL_BASE; i < sc->ciss_max_physical_bus +
2498 CISS_PHYSICAL_BASE; i++) {
2499 if ((sc->ciss_cam_sim[i] = cam_sim_alloc(ciss_cam_action, ciss_cam_poll,
2500 "ciss", sc,
2501 device_get_unit(sc->ciss_dev),
2481 sc->ciss_cam_devq)) == NULL) {
2482 ciss_printf(sc, "can't allocate CAM SIM for controller %d\n", i);
2483 return(ENOMEM);
2484 }
2485
2486 /*
2487 * Register bus with this SIM.
2488 */

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

2494 }
2495 }
2496
2497 for (i = CISS_PHYSICAL_BASE; i < sc->ciss_max_physical_bus +
2498 CISS_PHYSICAL_BASE; i++) {
2499 if ((sc->ciss_cam_sim[i] = cam_sim_alloc(ciss_cam_action, ciss_cam_poll,
2500 "ciss", sc,
2501 device_get_unit(sc->ciss_dev),
2502 &Giant, 1,
2502 sc->ciss_max_requests - 2,
2503 sc->ciss_max_requests - 2,
2503 1,
2504 sc->ciss_cam_devq)) == NULL) {
2505 ciss_printf(sc, "can't allocate CAM SIM for controller %d\n", i);
2506 return (ENOMEM);
2507 }
2508
2509 if (xpt_bus_register(sc->ciss_cam_sim[i], i) != 0) {
2510 ciss_printf(sc, "can't register SCSI bus %d\n", i);
2511 return (ENXIO);

--- 1699 unchanged lines hidden ---
2504 sc->ciss_cam_devq)) == NULL) {
2505 ciss_printf(sc, "can't allocate CAM SIM for controller %d\n", i);
2506 return (ENOMEM);
2507 }
2508
2509 if (xpt_bus_register(sc->ciss_cam_sim[i], i) != 0) {
2510 ciss_printf(sc, "can't register SCSI bus %d\n", i);
2511 return (ENXIO);

--- 1699 unchanged lines hidden ---