mps_sas.c (254615) | mps_sas.c (257381) |
---|---|
1/*- 2 * Copyright (c) 2009 Yahoo! Inc. 3 * Copyright (c) 2011, 2012 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: --- 12 unchanged lines hidden (view full) --- 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 * LSI MPT-Fusion Host Adapter FreeBSD 28 * | 1/*- 2 * Copyright (c) 2009 Yahoo! Inc. 3 * Copyright (c) 2011, 2012 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: --- 12 unchanged lines hidden (view full) --- 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 * LSI MPT-Fusion Host Adapter FreeBSD 28 * |
29 * $FreeBSD: head/sys/dev/mps/mps_sas.c 254615 2013-08-21 21:30:56Z ken $ | 29 * $FreeBSD: head/sys/dev/mps/mps_sas.c 257381 2013-10-30 14:04:47Z nwhitehorn $ |
30 */ 31 32#include <sys/cdefs.h> | 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/mps/mps_sas.c 254615 2013-08-21 21:30:56Z ken $"); | 33__FBSDID("$FreeBSD: head/sys/dev/mps/mps_sas.c 257381 2013-10-30 14:04:47Z nwhitehorn $"); |
34 35/* Communications core for LSI MPT2 */ 36 37/* TODO Move headers to mpsvar */ 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> --- 1016 unchanged lines hidden (view full) --- 1058 1059static void 1060mpssas_announce_reset(struct mps_softc *sc, uint32_t ac_code, 1061 target_id_t target_id, lun_id_t lun_id) 1062{ 1063 path_id_t path_id = cam_sim_path(sc->sassc->sim); 1064 struct cam_path *path; 1065 | 34 35/* Communications core for LSI MPT2 */ 36 37/* TODO Move headers to mpsvar */ 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> --- 1016 unchanged lines hidden (view full) --- 1058 1059static void 1060mpssas_announce_reset(struct mps_softc *sc, uint32_t ac_code, 1061 target_id_t target_id, lun_id_t lun_id) 1062{ 1063 path_id_t path_id = cam_sim_path(sc->sassc->sim); 1064 struct cam_path *path; 1065 |
1066 mps_dprint(sc, MPS_XINFO, "%s code %x target %d lun %d\n", __func__, 1067 ac_code, target_id, lun_id); | 1066 mps_dprint(sc, MPS_XINFO, "%s code %x target %d lun %jx\n", __func__, 1067 ac_code, target_id, (uintmax_t)lun_id); |
1068 1069 if (xpt_create_path(&path, NULL, 1070 path_id, target_id, lun_id) != CAM_REQ_CMP) { 1071 mps_dprint(sc, MPS_ERROR, "unable to create path for reset " 1072 "notification\n"); 1073 return; 1074 } 1075 --- 2501 unchanged lines hidden --- | 1068 1069 if (xpt_create_path(&path, NULL, 1070 path_id, target_id, lun_id) != CAM_REQ_CMP) { 1071 mps_dprint(sc, MPS_ERROR, "unable to create path for reset " 1072 "notification\n"); 1073 return; 1074 } 1075 --- 2501 unchanged lines hidden --- |