aac_cam.c (166025) | aac_cam.c (168752) |
---|---|
1/*- 2 * Copyright (c) 2002 Adaptec, Inc. 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Adaptec, Inc. 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/aac/aac_cam.c 166025 2007-01-15 16:22:20Z scottl $"); | 28__FBSDID("$FreeBSD: head/sys/dev/aac/aac_cam.c 168752 2007-04-15 08:49:19Z scottl $"); |
29 30/* 31 * CAM front-end for communicating with non-DASD devices 32 */ 33 34#include "opt_aac.h" 35 36#include <sys/param.h> --- 129 unchanged lines hidden (view full) --- 166 inf = (struct aac_sim *)device_get_ivars(dev); 167 camsc->inf = inf; 168 169 devq = cam_simq_alloc(inf->TargetsPerBus); 170 if (devq == NULL) 171 return (EIO); 172 173 sim = cam_sim_alloc(aac_cam_action, aac_cam_poll, "aacp", camsc, | 29 30/* 31 * CAM front-end for communicating with non-DASD devices 32 */ 33 34#include "opt_aac.h" 35 36#include <sys/param.h> --- 129 unchanged lines hidden (view full) --- 166 inf = (struct aac_sim *)device_get_ivars(dev); 167 camsc->inf = inf; 168 169 devq = cam_simq_alloc(inf->TargetsPerBus); 170 if (devq == NULL) 171 return (EIO); 172 173 sim = cam_sim_alloc(aac_cam_action, aac_cam_poll, "aacp", camsc, |
174 device_get_unit(dev), 1, 1, devq); | 174 device_get_unit(dev), &Giant, 1, 1, devq); |
175 if (sim == NULL) { 176 cam_simq_free(devq); 177 return (EIO); 178 } 179 180 /* Since every bus has it's own sim, every bus 'appears' as bus 0 */ 181 if (xpt_bus_register(sim, 0) != CAM_SUCCESS) { 182 cam_sim_free(sim, TRUE); --- 427 unchanged lines hidden --- | 175 if (sim == NULL) { 176 cam_simq_free(devq); 177 return (EIO); 178 } 179 180 /* Since every bus has it's own sim, every bus 'appears' as bus 0 */ 181 if (xpt_bus_register(sim, 0) != CAM_SUCCESS) { 182 cam_sim_free(sim, TRUE); --- 427 unchanged lines hidden --- |