isp_freebsd.c (247356) | isp_freebsd.c (249468) |
---|---|
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 247356 2013-02-26 21:37:12Z mjacob $"); | 31__FBSDID("$FreeBSD: head/sys/dev/isp/isp_freebsd.c 249468 2013-04-14 09:55:48Z mav $"); |
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> --- 4509 unchanged lines hidden (view full) --- 4549 /* 4550 * Allocate a CCB, create a wildcard path for this target and schedule a rescan. 4551 */ 4552 ccb = xpt_alloc_ccb_nowait(); 4553 if (ccb == NULL) { 4554 isp_prt(isp, ISP_LOGWARN, "Chan %d unable to alloc CCB for rescan", chan); 4555 return; 4556 } | 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> --- 4509 unchanged lines hidden (view full) --- 4549 /* 4550 * Allocate a CCB, create a wildcard path for this target and schedule a rescan. 4551 */ 4552 ccb = xpt_alloc_ccb_nowait(); 4553 if (ccb == NULL) { 4554 isp_prt(isp, ISP_LOGWARN, "Chan %d unable to alloc CCB for rescan", chan); 4555 return; 4556 } |
4557 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, cam_sim_path(fc->sim), tgt, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { | 4557 if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(fc->sim), 4558 tgt, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { |
4558 isp_prt(isp, ISP_LOGWARN, "unable to create path for rescan"); 4559 xpt_free_ccb(ccb); 4560 return; 4561 } 4562 xpt_rescan(ccb); 4563} 4564 4565static void --- 1858 unchanged lines hidden --- | 4559 isp_prt(isp, ISP_LOGWARN, "unable to create path for rescan"); 4560 xpt_free_ccb(ccb); 4561 return; 4562 } 4563 xpt_rescan(ccb); 4564} 4565 4566static void --- 1858 unchanged lines hidden --- |