Deleted Added
full compact
amr_cam.c (163896) amr_cam.c (168752)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
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:

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

50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
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:

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

50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/dev/amr/amr_cam.c 163896 2006-11-02 00:54:38Z mjacob $");
58__FBSDID("$FreeBSD: head/sys/dev/amr/amr_cam.c 168752 2007-04-15 08:49:19Z scottl $");
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/malloc.h>
63#include <sys/kernel.h>
64
65#include <sys/bio.h>
66#include <sys/bus.h>

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

143 for (chn = 0; chn < sc->amr_maxchan; chn++) {
144
145 /* allocate a sim */
146 if ((sc->amr_cam_sim[chn] = cam_sim_alloc(amr_cam_action,
147 amr_cam_poll,
148 "amr",
149 sc,
150 device_get_unit(sc->amr_dev),
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/malloc.h>
63#include <sys/kernel.h>
64
65#include <sys/bio.h>
66#include <sys/bus.h>

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

143 for (chn = 0; chn < sc->amr_maxchan; chn++) {
144
145 /* allocate a sim */
146 if ((sc->amr_cam_sim[chn] = cam_sim_alloc(amr_cam_action,
147 amr_cam_poll,
148 "amr",
149 sc,
150 device_get_unit(sc->amr_dev),
151 &Giant,
151 1,
152 AMR_MAX_SCSI_CMDS,
153 devq)) == NULL) {
154 cam_simq_free(devq);
155 device_printf(sc->amr_dev, "CAM SIM attach failed\n");
156 return(ENOMEM);
157 }
158

--- 472 unchanged lines hidden ---
152 1,
153 AMR_MAX_SCSI_CMDS,
154 devq)) == NULL) {
155 cam_simq_free(devq);
156 device_printf(sc->amr_dev, "CAM SIM attach failed\n");
157 return(ENOMEM);
158 }
159

--- 472 unchanged lines hidden ---