1/*- 2 * Copyright (c) 2003 Hidetoshi Shimokawa 3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 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: --- 17 unchanged lines hidden (view full) --- 26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/dev/firewire/sbp.c 168752 2007-04-15 08:49:19Z scottl $ |
35 * 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/module.h> 41#include <sys/bus.h> 42#include <sys/kernel.h> --- 1916 unchanged lines hidden (view full) --- 1959 1960 for( i = 0 ; i < SBP_NUM_TARGETS ; i++){ 1961 sbp->targets[i].fwdev = NULL; 1962 sbp->targets[i].luns = NULL; 1963 } 1964 1965 sbp->sim = cam_sim_alloc(sbp_action, sbp_poll, "sbp", sbp, 1966 device_get_unit(dev), |
1967 &Giant, |
1968 /*untagged*/ 1, 1969 /*tagged*/ SBP_QUEUE_LEN - 1, 1970 devq); 1971 1972 if (sbp->sim == NULL) { 1973 cam_simq_free(devq); 1974 return (ENXIO); 1975 } --- 938 unchanged lines hidden --- |