mpr.c (265388) | mpr.c (266548) |
---|---|
1/*- 2 * Copyright (c) 2009 Yahoo! Inc. 3 * Copyright (c) 2012-2014 LSI Corp. 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: --- 13 unchanged lines hidden (view full) --- 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 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009 Yahoo! Inc. 3 * Copyright (c) 2012-2014 LSI Corp. 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: --- 13 unchanged lines hidden (view full) --- 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 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/10/sys/dev/mpr/mpr.c 265236 2014-05-02 20:25:09Z ken $"); | 30__FBSDID("$FreeBSD: stable/10/sys/dev/mpr/mpr.c 266548 2014-05-22 16:34:00Z ken $"); |
31 32/* Communications core for LSI MPT2 */ 33 34/* TODO Move headers to mprvar */ 35#include <sys/types.h> 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> --- 2138 unchanged lines hidden (view full) --- 2177 uint8_t next_chain_offset = 0; 2178 2179 /* 2180 * Fail if a command is requesting a chain for SIMPLE SGE's. For SAS3 2181 * only IEEE commands should be requesting chains. Return some error 2182 * code other than 0. 2183 */ 2184 if (cm->cm_flags & MPR_CM_FLAGS_SGE_SIMPLE) { | 31 32/* Communications core for LSI MPT2 */ 33 34/* TODO Move headers to mprvar */ 35#include <sys/types.h> 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> --- 2138 unchanged lines hidden (view full) --- 2177 uint8_t next_chain_offset = 0; 2178 2179 /* 2180 * Fail if a command is requesting a chain for SIMPLE SGE's. For SAS3 2181 * only IEEE commands should be requesting chains. Return some error 2182 * code other than 0. 2183 */ 2184 if (cm->cm_flags & MPR_CM_FLAGS_SGE_SIMPLE) { |
2185//SLM-test 2186printf("Trying to add a chain element to an MPI SGL\n"); | |
2187 mpr_dprint(sc, MPR_ERROR, "A chain element cannot be added to " 2188 "an MPI SGL.\n"); 2189 return(ENOBUFS); 2190 } 2191 2192 sgc_size = sizeof(MPI25_IEEE_SGE_CHAIN64); 2193 if (cm->cm_sglsize < sgc_size) 2194 panic("MPR: Need SGE Error Code\n"); --- 603 unchanged lines hidden --- | 2185 mpr_dprint(sc, MPR_ERROR, "A chain element cannot be added to " 2186 "an MPI SGL.\n"); 2187 return(ENOBUFS); 2188 } 2189 2190 sgc_size = sizeof(MPI25_IEEE_SGE_CHAIN64); 2191 if (cm->cm_sglsize < sgc_size) 2192 panic("MPR: Need SGE Error Code\n"); --- 603 unchanged lines hidden --- |