isp_pci.c (291221) | isp_pci.c (291365) |
---|---|
1/*- 2 * Copyright (c) 1997-2008 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 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. 28 * FreeBSD Version. 29 */ 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997-2008 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 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. 28 * FreeBSD Version. 29 */ 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/isp/isp_pci.c 291221 2015-11-23 20:44:49Z mav $"); | 31__FBSDID("$FreeBSD: head/sys/dev/isp/isp_pci.c 291365 2015-11-26 13:04:58Z mav $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/linker.h> 38#include <sys/firmware.h> 39#include <sys/bus.h> --- 593 unchanged lines hidden (view full) --- 633 char *eptr = 0; 634 ISP_FC_PC(isp, chan)->def_wwnn = strtouq(sptr, &eptr, 16); 635 if (eptr < sptr + 16 || ISP_FC_PC(isp, chan)->def_wwnn == 0) { 636 device_printf(dev, "mangled nodewwn hint '%s'\n", sptr); 637 ISP_FC_PC(isp, chan)->def_wwnn = 0; 638 } 639 } 640 | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/linker.h> 38#include <sys/firmware.h> 39#include <sys/bus.h> --- 593 unchanged lines hidden (view full) --- 633 char *eptr = 0; 634 ISP_FC_PC(isp, chan)->def_wwnn = strtouq(sptr, &eptr, 16); 635 if (eptr < sptr + 16 || ISP_FC_PC(isp, chan)->def_wwnn == 0) { 636 device_printf(dev, "mangled nodewwn hint '%s'\n", sptr); 637 ISP_FC_PC(isp, chan)->def_wwnn = 0; 638 } 639 } 640 |
641 tval = 0; 642 snprintf(name, sizeof(name), "%shysteresis", prefix); 643 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), 644 "name", &tval); 645 if (tval >= 0 && tval < 256) { 646 ISP_FC_PC(isp, chan)->hysteresis = tval; 647 } else { 648 ISP_FC_PC(isp, chan)->hysteresis = isp_fabric_hysteresis; 649 } 650 | |
651 tval = -1; 652 snprintf(name, sizeof(name), "%sloop_down_limit", prefix); 653 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), 654 name, &tval); 655 if (tval >= 0 && tval < 0xffff) { 656 ISP_FC_PC(isp, chan)->loop_down_limit = tval; 657 } else { 658 ISP_FC_PC(isp, chan)->loop_down_limit = isp_loop_down_limit; --- 1350 unchanged lines hidden --- | 641 tval = -1; 642 snprintf(name, sizeof(name), "%sloop_down_limit", prefix); 643 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), 644 name, &tval); 645 if (tval >= 0 && tval < 0xffff) { 646 ISP_FC_PC(isp, chan)->loop_down_limit = tval; 647 } else { 648 ISP_FC_PC(isp, chan)->loop_down_limit = isp_loop_down_limit; --- 1350 unchanged lines hidden --- |