Deleted Added
full compact
ahb.c (168219) ahb.c (168752)
1/*-
2 * CAM SCSI device driver for the Adaptec 174X SCSI Host adapter
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 * CAM SCSI device driver for the Adaptec 174X SCSI Host adapter
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 * $FreeBSD: head/sys/dev/ahb/ahb.c 168219 2007-04-01 16:55:31Z netchild $
28 * $FreeBSD: head/sys/dev/ahb/ahb.c 168752 2007-04-15 08:49:19Z scottl $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35#include <sys/module.h>
36#include <sys/lock.h>

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

548 devq = cam_simq_alloc(ahb->num_ecbs);
549 if (devq == NULL)
550 return (ENOMEM);
551
552 /*
553 * Construct our SIM entry
554 */
555 ahb->sim = cam_sim_alloc(ahbaction, ahbpoll, "ahb", ahb, ahb->unit,
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35#include <sys/module.h>
36#include <sys/lock.h>

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

548 devq = cam_simq_alloc(ahb->num_ecbs);
549 if (devq == NULL)
550 return (ENOMEM);
551
552 /*
553 * Construct our SIM entry
554 */
555 ahb->sim = cam_sim_alloc(ahbaction, ahbpoll, "ahb", ahb, ahb->unit,
556 2, ahb->num_ecbs, devq);
556 &Giant, 2, ahb->num_ecbs, devq);
557 if (ahb->sim == NULL) {
558 cam_simq_free(devq);
559 return (ENOMEM);
560 }
561
562 if (xpt_bus_register(ahb->sim, 0) != CAM_SUCCESS) {
563 cam_sim_free(ahb->sim, /*free_devq*/TRUE);
564 return (ENXIO);

--- 809 unchanged lines hidden ---
557 if (ahb->sim == NULL) {
558 cam_simq_free(devq);
559 return (ENOMEM);
560 }
561
562 if (xpt_bus_register(ahb->sim, 0) != CAM_SUCCESS) {
563 cam_sim_free(ahb->sim, /*free_devq*/TRUE);
564 return (ENXIO);

--- 809 unchanged lines hidden ---