Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2017 03:08:57 +0000 (UTC)
From:      Ravi Pokala <rpokala@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311351 - in head/sys/dev: aha ahb aic ciss dpt firewire mly ncr nvme twa
Message-ID:  <201701050308.v0538v74041832@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpokala
Date: Thu Jan  5 03:08:57 2017
New Revision: 311351
URL: https://svnweb.freebsd.org/changeset/base/311351

Log:
  In the same vein as r311350, fix whitespace in handling of XPT_PATH_INQ in
  several more drivers.
  
  Sponsored by:	Panasas

Modified:
  head/sys/dev/aha/aha.c
  head/sys/dev/ahb/ahb.c
  head/sys/dev/aic/aic.c
  head/sys/dev/ciss/ciss.c
  head/sys/dev/dpt/dpt_scsi.c
  head/sys/dev/firewire/sbp.c
  head/sys/dev/mly/mly.c
  head/sys/dev/ncr/ncr.c
  head/sys/dev/nvme/nvme_sim.c
  head/sys/dev/twa/tw_osl_cam.c

Modified: head/sys/dev/aha/aha.c
==============================================================================
--- head/sys/dev/aha/aha.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/aha/aha.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -951,10 +951,10 @@ ahaaction(struct cam_sim *sim, union ccb
 		strlcpy(cpi->hba_vid, "Adaptec", HBA_IDLEN);
 		strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
 		cpi->unit_number = cam_sim_unit(sim);
-                cpi->transport = XPORT_SPI;
-                cpi->transport_version = 2;
-                cpi->protocol = PROTO_SCSI;
-                cpi->protocol_version = SCSI_REV_2;
+		cpi->transport = XPORT_SPI;
+		cpi->transport_version = 2;
+		cpi->protocol = PROTO_SCSI;
+		cpi->protocol_version = SCSI_REV_2;
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(ccb);
 		break;

Modified: head/sys/dev/ahb/ahb.c
==============================================================================
--- head/sys/dev/ahb/ahb.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/ahb/ahb.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -1182,10 +1182,10 @@ ahbaction(struct cam_sim *sim, union ccb
 		strlcpy(cpi->hba_vid, "Adaptec", HBA_IDLEN);
 		strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
 		cpi->unit_number = cam_sim_unit(sim);
-                cpi->transport = XPORT_SPI;
-                cpi->transport_version = 2;
-                cpi->protocol = PROTO_SCSI;
-                cpi->protocol_version = SCSI_REV_2;
+		cpi->transport = XPORT_SPI;
+		cpi->transport_version = 2;
+		cpi->protocol = PROTO_SCSI;
+		cpi->protocol_version = SCSI_REV_2;
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(ccb);
 		break;

Modified: head/sys/dev/aic/aic.c
==============================================================================
--- head/sys/dev/aic/aic.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/aic/aic.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -280,7 +280,7 @@ aic_action(struct cam_sim *sim, union cc
                 cpi->max_lun = 7;
                 cpi->initiator_id = aic->initiator;
                 cpi->bus_id = cam_sim_bus(sim);
-		cpi->base_transfer_speed = 3300;
+                cpi->base_transfer_speed = 3300;
                 strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
                 strlcpy(cpi->hba_vid, "Adaptec", HBA_IDLEN);
                 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);

Modified: head/sys/dev/ciss/ciss.c
==============================================================================
--- head/sys/dev/ciss/ciss.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/ciss/ciss.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -3027,10 +3027,10 @@ ciss_cam_action(struct cam_sim *sim, uni
 	cpi->max_lun = 0;		/* 'logical drive' channel only */
 	cpi->initiator_id = sc->ciss_cfg->max_logical_supported;
 	strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
-        strlcpy(cpi->hba_vid, "CISS", HBA_IDLEN);
-        strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
-        cpi->unit_number = cam_sim_unit(sim);
-        cpi->bus_id = cam_sim_bus(sim);
+	strlcpy(cpi->hba_vid, "CISS", HBA_IDLEN);
+	strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
+	cpi->unit_number = cam_sim_unit(sim);
+	cpi->bus_id = cam_sim_bus(sim);
 	cpi->base_transfer_speed = 132 * 1024;	/* XXX what to set this to? */
 	cpi->transport = XPORT_SPI;
 	cpi->transport_version = 2;

Modified: head/sys/dev/dpt/dpt_scsi.c
==============================================================================
--- head/sys/dev/dpt/dpt_scsi.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/dpt/dpt_scsi.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -1031,10 +1031,10 @@ dpt_action(struct cam_sim *sim, union cc
 		strlcpy(cpi->hba_vid, "DPT", HBA_IDLEN);
 		strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
 		cpi->unit_number = cam_sim_unit(sim);
-                cpi->transport = XPORT_SPI;
-                cpi->transport_version = 2;
-                cpi->protocol = PROTO_SCSI;
-                cpi->protocol_version = SCSI_REV_2;
+		cpi->transport = XPORT_SPI;
+		cpi->transport_version = 2;
+		cpi->protocol = PROTO_SCSI;
+		cpi->protocol_version = SCSI_REV_2;
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(ccb);
 		break;

Modified: head/sys/dev/firewire/sbp.c
==============================================================================
--- head/sys/dev/firewire/sbp.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/firewire/sbp.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -2488,10 +2488,10 @@ END_DEBUG
 		strlcpy(cpi->hba_vid, "SBP", HBA_IDLEN);
 		strlcpy(cpi->dev_name, sim->sim_name, DEV_IDLEN);
 		cpi->unit_number = sim->unit_number;
-                cpi->transport = XPORT_SPI;	/* XX should have a FireWire */
-                cpi->transport_version = 2;
-                cpi->protocol = PROTO_SCSI;
-                cpi->protocol_version = SCSI_REV_2;
+		cpi->transport = XPORT_SPI;	/* XX should have a FireWire */
+		cpi->transport_version = 2;
+		cpi->protocol = PROTO_SCSI;
+		cpi->protocol_version = SCSI_REV_2;
 
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(ccb);

Modified: head/sys/dev/mly/mly.c
==============================================================================
--- head/sys/dev/mly/mly.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/mly/mly.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -2110,10 +2110,10 @@ mly_cam_action(struct cam_sim *sim, unio
 	cpi->max_lun = MLY_MAX_LUNS - 1;
 	cpi->initiator_id = sc->mly_controllerparam->initiator_id;
 	strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
-        strlcpy(cpi->hba_vid, "Mylex", HBA_IDLEN);
-        strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
-        cpi->unit_number = cam_sim_unit(sim);
-        cpi->bus_id = cam_sim_bus(sim);
+	strlcpy(cpi->hba_vid, "Mylex", HBA_IDLEN);
+	strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
+	cpi->unit_number = cam_sim_unit(sim);
+	cpi->bus_id = cam_sim_bus(sim);
 	cpi->base_transfer_speed = 132 * 1024;	/* XXX what to set this to? */
 	cpi->transport = XPORT_SPI;
 	cpi->transport_version = 2;

Modified: head/sys/dev/ncr/ncr.c
==============================================================================
--- head/sys/dev/ncr/ncr.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/ncr/ncr.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -4351,10 +4351,10 @@ ncr_action (struct cam_sim *sim, union c
 		strlcpy(cpi->hba_vid, "Symbios", HBA_IDLEN);
 		strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
 		cpi->unit_number = cam_sim_unit(sim);
-                cpi->transport = XPORT_SPI;
-                cpi->transport_version = 2;
-                cpi->protocol = PROTO_SCSI;
-                cpi->protocol_version = SCSI_REV_2;
+		cpi->transport = XPORT_SPI;
+		cpi->transport_version = 2;
+		cpi->protocol = PROTO_SCSI;
+		cpi->protocol_version = SCSI_REV_2;
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(ccb);
 		break;

Modified: head/sys/dev/nvme/nvme_sim.c
==============================================================================
--- head/sys/dev/nvme/nvme_sim.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/nvme/nvme_sim.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -185,10 +185,10 @@ nvme_sim_action(struct cam_sim *sim, uni
 		strlcpy(cpi->hba_vid, "NVMe", HBA_IDLEN);
 		strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
 		cpi->unit_number = cam_sim_unit(sim);
-                cpi->transport = XPORT_NVME;		/* XXX XPORT_PCIE ? */
-                cpi->transport_version = 1;		/* XXX Get PCIe spec ? */
-                cpi->protocol = PROTO_NVME;
-                cpi->protocol_version = NVME_REV_1;	/* Groks all 1.x NVMe cards */
+		cpi->transport = XPORT_NVME;		/* XXX XPORT_PCIE ? */
+		cpi->transport_version = 1;		/* XXX Get PCIe spec ? */
+		cpi->protocol = PROTO_NVME;
+		cpi->protocol_version = NVME_REV_1;	/* Groks all 1.x NVMe cards */
 		cpi->xport_specific.nvme.nsid = ns->id;
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		break;

Modified: head/sys/dev/twa/tw_osl_cam.c
==============================================================================
--- head/sys/dev/twa/tw_osl_cam.c	Thu Jan  5 02:54:03 2017	(r311350)
+++ head/sys/dev/twa/tw_osl_cam.c	Thu Jan  5 03:08:57 2017	(r311351)
@@ -427,11 +427,11 @@ twa_action(struct cam_sim *sim, union cc
 		strlcpy(path_inq->sim_vid, "FreeBSD", SIM_IDLEN);
 		strlcpy(path_inq->hba_vid, "3ware", HBA_IDLEN);
 		strlcpy(path_inq->dev_name, cam_sim_name(sim), DEV_IDLEN);
-                path_inq->transport = XPORT_SPI;
-                path_inq->transport_version = 2;
-                path_inq->protocol = PROTO_SCSI;
-                path_inq->protocol_version = SCSI_REV_2;
-                path_inq->maxio = TW_CL_MAX_IO_SIZE;
+		path_inq->transport = XPORT_SPI;
+		path_inq->transport_version = 2;
+		path_inq->protocol = PROTO_SCSI;
+		path_inq->protocol_version = SCSI_REV_2;
+		path_inq->maxio = TW_CL_MAX_IO_SIZE;
 		ccb_h->status = CAM_REQ_CMP;
 		xpt_done(ccb);
 		break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701050308.v0538v74041832>