isp_freebsd.c (215034) | isp_freebsd.c (215951) |
---|---|
1/*- 2 * Copyright (c) 1997-2009 by Matthew Jacob 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 --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * Platform (FreeBSD) dependent common attachment code for Qlogic adapters. 29 */ 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997-2009 by Matthew Jacob 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 --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * Platform (FreeBSD) dependent common attachment code for Qlogic adapters. 29 */ 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/isp/isp_freebsd.c 215034 2010-11-09 10:59:09Z brucec $"); | 31__FBSDID("$FreeBSD: head/sys/dev/isp/isp_freebsd.c 215951 2010-11-27 20:33:08Z mjacob $"); |
32#include <dev/isp/isp_freebsd.h> 33#include <sys/unistd.h> 34#include <sys/kthread.h> 35#include <sys/conf.h> 36#include <sys/module.h> 37#include <sys/ioccom.h> 38#include <dev/isp/isp_ioctl.h> 39#include <sys/devicestat.h> --- 96 unchanged lines hidden (view full) --- 136 fcparam *fcp = FCPARAM(isp, chan); 137 struct isp_fc *fc = ISP_FC_PC(isp, chan); 138 139 ISP_LOCK(isp); 140 fc->sim = sim; 141 fc->path = path; 142 fc->isp = isp; 143 fc->ready = 1; | 32#include <dev/isp/isp_freebsd.h> 33#include <sys/unistd.h> 34#include <sys/kthread.h> 35#include <sys/conf.h> 36#include <sys/module.h> 37#include <sys/ioccom.h> 38#include <dev/isp/isp_ioctl.h> 39#include <sys/devicestat.h> --- 96 unchanged lines hidden (view full) --- 136 fcparam *fcp = FCPARAM(isp, chan); 137 struct isp_fc *fc = ISP_FC_PC(isp, chan); 138 139 ISP_LOCK(isp); 140 fc->sim = sim; 141 fc->path = path; 142 fc->isp = isp; 143 fc->ready = 1; |
144 fc->gone_device_time = isp_gone_device_time; 145 fc->loop_down_limit = isp_loop_down_limit; 146 fc->hysteresis = isp_fabric_hysteresis; | |
147 callout_init_mtx(&fc->ldt, &isp->isp_osinfo.lock, 0); 148 callout_init_mtx(&fc->gdt, &isp->isp_osinfo.lock, 0); 149 150 /* 151 * We start by being "loop down" if we have an initiator role 152 */ 153 if (fcp->role & ISP_ROLE_INITIATOR) { 154 isp_freeze_loopdown(isp, chan, "isp_attach"); --- 5457 unchanged lines hidden --- | 144 callout_init_mtx(&fc->ldt, &isp->isp_osinfo.lock, 0); 145 callout_init_mtx(&fc->gdt, &isp->isp_osinfo.lock, 0); 146 147 /* 148 * We start by being "loop down" if we have an initiator role 149 */ 150 if (fcp->role & ISP_ROLE_INITIATOR) { 151 isp_freeze_loopdown(isp, chan, "isp_attach"); --- 5457 unchanged lines hidden --- |