1/*- 2 * Bus independent FreeBSD shim for the aic79xx based Adaptec SCSI controllers 3 * 4 * Copyright (c) 1994-2002, 2004 Justin T. Gibbs. 5 * Copyright (c) 2001-2002 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.c#35 $ 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/aic7xxx/aic79xx_osm.c 168752 2007-04-15 08:49:19Z scottl $"); |
37 38#include <dev/aic7xxx/aic79xx_osm.h> 39#include <dev/aic7xxx/aic79xx_inline.h> 40 41#include <sys/kthread.h> 42 43#include "opt_ddb.h" 44#ifdef DDB --- 93 unchanged lines hidden (view full) --- 138 if (devq == NULL) 139 goto fail; 140 141 /* 142 * Construct our SIM entry 143 */ 144 sim = cam_sim_alloc(ahd_action, ahd_poll, "ahd", ahd, 145 device_get_unit(ahd->dev_softc), |
146 &Giant, 1, /*XXX*/256, devq); |
147 if (sim == NULL) { 148 cam_simq_free(devq); 149 goto fail; 150 } 151 152 if (xpt_bus_register(sim, /*bus_id*/0) != CAM_SUCCESS) { 153 cam_sim_free(sim, /*free_devq*/TRUE); 154 sim = NULL; --- 1368 unchanged lines hidden --- |