scsi_low.c (163896) | scsi_low.c (168752) |
---|---|
1/* $NecBSD: scsi_low.c,v 1.24.10.8 2001/06/26 07:39:44 honda Exp $ */ 2/* $NetBSD$ */ 3 4#include <sys/cdefs.h> | 1/* $NecBSD: scsi_low.c,v 1.24.10.8 2001/06/26 07:39:44 honda Exp $ */ 2/* $NetBSD$ */ 3 4#include <sys/cdefs.h> |
5__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_low.c 163896 2006-11-02 00:54:38Z mjacob $"); | 5__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_low.c 168752 2007-04-15 08:49:19Z scottl $"); |
6 7#define SCSI_LOW_STATICS 8#define SCSI_LOW_DEBUG 9#define SCSI_LOW_NEGOTIATE_BEFORE_SENSE 10#define SCSI_LOW_START_UP_CHECK 11 12/* #define SCSI_LOW_INFO_DETAIL */ 13 --- 947 unchanged lines hidden (view full) --- 961 xpt_free_ccb(ccb); 962} 963 964static void 965scsi_low_rescan_bus_cam(slp) 966 struct scsi_low_softc *slp; 967{ 968 struct cam_path *path; | 6 7#define SCSI_LOW_STATICS 8#define SCSI_LOW_DEBUG 9#define SCSI_LOW_NEGOTIATE_BEFORE_SENSE 10#define SCSI_LOW_START_UP_CHECK 11 12/* #define SCSI_LOW_INFO_DETAIL */ 13 --- 947 unchanged lines hidden (view full) --- 961 xpt_free_ccb(ccb); 962} 963 964static void 965scsi_low_rescan_bus_cam(slp) 966 struct scsi_low_softc *slp; 967{ 968 struct cam_path *path; |
969 union ccb *ccb = xpt_alloc_ccb(); | 969 union ccb *ccb = xpt_alloc_ccb(NULL); |
970 cam_status status; 971 972 bzero(ccb, sizeof(union ccb)); 973 974 status = xpt_create_path(&path, xpt_periph, 975 cam_sim_path(slp->sl_si.sim), -1, 0); 976 if (status != CAM_REQ_CMP) 977 return; --- 360 unchanged lines hidden (view full) --- 1338 1339 /* 1340 * ask the adapter what subunits are present 1341 */ 1342 tagged_openings = min(slp->sl_openings, SCSI_LOW_MAXNEXUS); 1343 slp->sl_si.sim = cam_sim_alloc(scsi_low_scsi_action_cam, 1344 scsi_low_poll_cam, 1345 DEVPORT_DEVNAME(slp->sl_dev), slp, | 970 cam_status status; 971 972 bzero(ccb, sizeof(union ccb)); 973 974 status = xpt_create_path(&path, xpt_periph, 975 cam_sim_path(slp->sl_si.sim), -1, 0); 976 if (status != CAM_REQ_CMP) 977 return; --- 360 unchanged lines hidden (view full) --- 1338 1339 /* 1340 * ask the adapter what subunits are present 1341 */ 1342 tagged_openings = min(slp->sl_openings, SCSI_LOW_MAXNEXUS); 1343 slp->sl_si.sim = cam_sim_alloc(scsi_low_scsi_action_cam, 1344 scsi_low_poll_cam, 1345 DEVPORT_DEVNAME(slp->sl_dev), slp, |
1346 DEVPORT_DEVUNIT(slp->sl_dev), | 1346 DEVPORT_DEVUNIT(slp->sl_dev), &Giant, |
1347 slp->sl_openings, tagged_openings, devq); 1348 1349 if (slp->sl_si.sim == NULL) { 1350 cam_simq_free(devq); 1351 return ENODEV; 1352 } 1353 1354 if (xpt_bus_register(slp->sl_si.sim, 0) != CAM_SUCCESS) { --- 3498 unchanged lines hidden --- | 1347 slp->sl_openings, tagged_openings, devq); 1348 1349 if (slp->sl_si.sim == NULL) { 1350 cam_simq_free(devq); 1351 return ENODEV; 1352 } 1353 1354 if (xpt_bus_register(slp->sl_si.sim, 0) != CAM_SUCCESS) { --- 3498 unchanged lines hidden --- |