tw_osl_cam.c (249468) | tw_osl_cam.c (257381) |
---|---|
1/* 2 * Copyright (c) 2004-07 Applied Micro Circuits Corporation. 3 * Copyright (c) 2004-05 Vinod Kashyap. 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: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 2004-07 Applied Micro Circuits Corporation. 3 * Copyright (c) 2004-05 Vinod Kashyap. 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: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/twa/tw_osl_cam.c 249468 2013-04-14 09:55:48Z mav $ | 27 * $FreeBSD: head/sys/dev/twa/tw_osl_cam.c 257381 2013-10-30 14:04:47Z nwhitehorn $ |
28 */ 29 30/* 31 * AMCC'S 3ware driver for 9000 series storage controllers. 32 * 33 * Author: Vinod Kashyap 34 * Modifications by: Adam Radford 35 * Modifications by: Manjunath Ranganathaiah --- 166 unchanged lines hidden (view full) --- 202 struct ccb_hdr *ccb_h = &(ccb->ccb_h); 203 struct ccb_scsiio *csio = &(ccb->csio); 204 TW_INT32 error; 205 206 tw_osli_dbg_dprintf(10, sc, "SCSI I/O request 0x%x", 207 csio->cdb_io.cdb_bytes[0]); 208 209 if (ccb_h->target_id >= TW_CL_MAX_NUM_UNITS) { | 28 */ 29 30/* 31 * AMCC'S 3ware driver for 9000 series storage controllers. 32 * 33 * Author: Vinod Kashyap 34 * Modifications by: Adam Radford 35 * Modifications by: Manjunath Ranganathaiah --- 166 unchanged lines hidden (view full) --- 202 struct ccb_hdr *ccb_h = &(ccb->ccb_h); 203 struct ccb_scsiio *csio = &(ccb->csio); 204 TW_INT32 error; 205 206 tw_osli_dbg_dprintf(10, sc, "SCSI I/O request 0x%x", 207 csio->cdb_io.cdb_bytes[0]); 208 209 if (ccb_h->target_id >= TW_CL_MAX_NUM_UNITS) { |
210 tw_osli_dbg_dprintf(3, sc, "Invalid target. PTL = %x %x %x", 211 ccb_h->path_id, ccb_h->target_id, ccb_h->target_lun); | 210 tw_osli_dbg_dprintf(3, sc, "Invalid target. PTL = %x %x %jx", 211 ccb_h->path_id, ccb_h->target_id, 212 (uintmax_t)ccb_h->target_lun); |
212 ccb_h->status |= CAM_TID_INVALID; 213 xpt_done(ccb); 214 return(1); 215 } 216 if (ccb_h->target_lun >= TW_CL_MAX_NUM_LUNS) { | 213 ccb_h->status |= CAM_TID_INVALID; 214 xpt_done(ccb); 215 return(1); 216 } 217 if (ccb_h->target_lun >= TW_CL_MAX_NUM_LUNS) { |
217 tw_osli_dbg_dprintf(3, sc, "Invalid lun. PTL = %x %x %x", 218 ccb_h->path_id, ccb_h->target_id, ccb_h->target_lun); | 218 tw_osli_dbg_dprintf(3, sc, "Invalid lun. PTL = %x %x %jx", 219 ccb_h->path_id, ccb_h->target_id, 220 (uintmax_t)ccb_h->target_lun); |
219 ccb_h->status |= CAM_LUN_INVALID; 220 xpt_done(ccb); 221 return(1); 222 } 223 224 if(ccb_h->flags & CAM_CDB_PHYS) { 225 tw_osli_printf(sc, "", 226 TW_CL_SEVERITY_ERROR_STRING, --- 458 unchanged lines hidden --- | 221 ccb_h->status |= CAM_LUN_INVALID; 222 xpt_done(ccb); 223 return(1); 224 } 225 226 if(ccb_h->flags & CAM_CDB_PHYS) { 227 tw_osli_printf(sc, "", 228 TW_CL_SEVERITY_ERROR_STRING, --- 458 unchanged lines hidden --- |