isp_freebsd.c (218691) | isp_freebsd.c (219098) |
---|---|
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 218691 2011-02-14 21:50:51Z marius $"); | 31__FBSDID("$FreeBSD: head/sys/dev/isp/isp_freebsd.c 219098 2011-02-28 15:58:30Z 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> --- 1820 unchanged lines hidden (view full) --- 1860 atiop->ccb_h.target_lun = aep->at_lun; 1861 if (aep->at_flags & AT_NODISC) { 1862 atiop->ccb_h.flags = CAM_DIS_DISCONNECT; 1863 } else { 1864 atiop->ccb_h.flags = 0; 1865 } 1866 1867 if (status & QLTM_SVALID) { | 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> --- 1820 unchanged lines hidden (view full) --- 1860 atiop->ccb_h.target_lun = aep->at_lun; 1861 if (aep->at_flags & AT_NODISC) { 1862 atiop->ccb_h.flags = CAM_DIS_DISCONNECT; 1863 } else { 1864 atiop->ccb_h.flags = 0; 1865 } 1866 1867 if (status & QLTM_SVALID) { |
1868 size_t amt = imin(QLTM_SENSELEN, sizeof (atiop->sense_data)); | 1868 size_t amt = ISP_MIN(QLTM_SENSELEN, sizeof (atiop->sense_data)); |
1869 atiop->sense_len = amt; 1870 ISP_MEMCPY(&atiop->sense_data, aep->at_sense, amt); 1871 } else { 1872 atiop->sense_len = 0; 1873 } 1874 1875 atiop->init_id = GET_IID_VAL(aep->at_iid); 1876 atiop->cdb_len = aep->at_cdblen; --- 3732 unchanged lines hidden --- | 1869 atiop->sense_len = amt; 1870 ISP_MEMCPY(&atiop->sense_data, aep->at_sense, amt); 1871 } else { 1872 atiop->sense_len = 0; 1873 } 1874 1875 atiop->init_id = GET_IID_VAL(aep->at_iid); 1876 atiop->cdb_len = aep->at_cdblen; --- 3732 unchanged lines hidden --- |