aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptscsih.c
diff options
context:
space:
mode:
authorMoore, Eric Dean <Eric.Moore@lsil.com>2005-11-16 20:54:20 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-13 20:40:08 -0500
commita9b2937a1eab2939d0eed3830ead88664ed7445d (patch)
treebde1ec40bc7bbe56ab22f585699dd28b2009cd0f /drivers/message/fusion/mptscsih.c
parent7acec1e7556a861416bb6b10f3e3cbb6e82fc01d (diff)
[SCSI] mptfusion - bus_type, change SCSI to SPI
This changes to SPI for the bus_type enumeration. Signed-off-by: Eric Moore <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r--drivers/message/fusion/mptscsih.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
index b7b9846ff3fd..2d014248b799 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -677,7 +677,7 @@ mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr)
677 sc->result = DID_RESET << 16; 677 sc->result = DID_RESET << 16;
678 678
679 /* GEM Workaround. */ 679 /* GEM Workaround. */
680 if (ioc->bus_type == SCSI) 680 if (ioc->bus_type == SPI)
681 mptscsih_no_negotiate(hd, sc->device->id); 681 mptscsih_no_negotiate(hd, sc->device->id);
682 break; 682 break;
683 683
@@ -1403,7 +1403,7 @@ mptscsih_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
1403 SCpnt->host_scribble = NULL; 1403 SCpnt->host_scribble = NULL;
1404 1404
1405#ifdef MPTSCSIH_ENABLE_DOMAIN_VALIDATION 1405#ifdef MPTSCSIH_ENABLE_DOMAIN_VALIDATION
1406 if (hd->ioc->bus_type == SCSI) { 1406 if (hd->ioc->bus_type == SPI) {
1407 int dvStatus = hd->ioc->spi_data.dvStatus[pTarget->target_id]; 1407 int dvStatus = hd->ioc->spi_data.dvStatus[pTarget->target_id];
1408 int issueCmd = 1; 1408 int issueCmd = 1;
1409 1409
@@ -2183,7 +2183,7 @@ mptscsih_slave_alloc(struct scsi_device *device)
2183 vdev->bus_id = device->channel; 2183 vdev->bus_id = device->channel;
2184 vdev->raidVolume = 0; 2184 vdev->raidVolume = 0;
2185 hd->Targets[device->id] = vdev; 2185 hd->Targets[device->id] = vdev;
2186 if (hd->ioc->bus_type == SCSI) { 2186 if (hd->ioc->bus_type == SPI) {
2187 if (hd->ioc->raid_data.isRaid & (1 << device->id)) { 2187 if (hd->ioc->raid_data.isRaid & (1 << device->id)) {
2188 vdev->raidVolume = 1; 2188 vdev->raidVolume = 1;
2189 ddvtprintk((KERN_INFO 2189 ddvtprintk((KERN_INFO
@@ -2225,7 +2225,7 @@ mptscsih_slave_destroy(struct scsi_device *device)
2225 kfree(hd->Targets[target]); 2225 kfree(hd->Targets[target]);
2226 hd->Targets[target] = NULL; 2226 hd->Targets[target] = NULL;
2227 2227
2228 if (hd->ioc->bus_type == SCSI) { 2228 if (hd->ioc->bus_type == SPI) {
2229 if (mptscsih_is_phys_disk(hd->ioc, target)) { 2229 if (mptscsih_is_phys_disk(hd->ioc, target)) {
2230 hd->ioc->spi_data.forceDv |= MPT_SCSICFG_RELOAD_IOC_PG3; 2230 hd->ioc->spi_data.forceDv |= MPT_SCSICFG_RELOAD_IOC_PG3;
2231 } else { 2231 } else {
@@ -2261,7 +2261,7 @@ mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
2261 if (!(pTarget = hd->Targets[sdev->id])) 2261 if (!(pTarget = hd->Targets[sdev->id]))
2262 return 0; 2262 return 0;
2263 2263
2264 if (hd->ioc->bus_type == SCSI) { 2264 if (hd->ioc->bus_type == SPI) {
2265 if (pTarget->tflags & MPT_TARGET_FLAGS_VALID_INQUIRY) { 2265 if (pTarget->tflags & MPT_TARGET_FLAGS_VALID_INQUIRY) {
2266 if (!(pTarget->tflags & MPT_TARGET_FLAGS_Q_YES)) 2266 if (!(pTarget->tflags & MPT_TARGET_FLAGS_Q_YES))
2267 max_depth = 1; 2267 max_depth = 1;
@@ -2503,9 +2503,9 @@ mptscsih_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
2503 /* 2. Chain Buffer initialization 2503 /* 2. Chain Buffer initialization
2504 */ 2504 */
2505 2505
2506 /* 4. Renegotiate to all devices, if SCSI 2506 /* 4. Renegotiate to all devices, if SPI
2507 */ 2507 */
2508 if (ioc->bus_type == SCSI) { 2508 if (ioc->bus_type == SPI) {
2509 dnegoprintk(("writeSDP1: ALL_IDS USE_NVRAM\n")); 2509 dnegoprintk(("writeSDP1: ALL_IDS USE_NVRAM\n"));
2510 mptscsih_writeSDP1(hd, 0, 0, MPT_SCSICFG_ALL_IDS | MPT_SCSICFG_USE_NVRAM); 2510 mptscsih_writeSDP1(hd, 0, 0, MPT_SCSICFG_ALL_IDS | MPT_SCSICFG_USE_NVRAM);
2511 } 2511 }
@@ -2534,7 +2534,7 @@ mptscsih_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
2534 2534
2535 /* 7. Set flag to force DV and re-read IOC Page 3 2535 /* 7. Set flag to force DV and re-read IOC Page 3
2536 */ 2536 */
2537 if (ioc->bus_type == SCSI) { 2537 if (ioc->bus_type == SPI) {
2538 ioc->spi_data.forceDv = MPT_SCSICFG_NEED_DV | MPT_SCSICFG_RELOAD_IOC_PG3; 2538 ioc->spi_data.forceDv = MPT_SCSICFG_NEED_DV | MPT_SCSICFG_RELOAD_IOC_PG3;
2539 ddvtprintk(("Set reload IOC Pg3 Flag\n")); 2539 ddvtprintk(("Set reload IOC Pg3 Flag\n"));
2540 } 2540 }
@@ -2576,7 +2576,7 @@ mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply)
2576 break; 2576 break;
2577 case MPI_EVENT_IOC_BUS_RESET: /* 04 */ 2577 case MPI_EVENT_IOC_BUS_RESET: /* 04 */
2578 case MPI_EVENT_EXT_BUS_RESET: /* 05 */ 2578 case MPI_EVENT_EXT_BUS_RESET: /* 05 */
2579 if (hd && (ioc->bus_type == SCSI) && (hd->soft_resets < -1)) 2579 if (hd && (ioc->bus_type == SPI) && (hd->soft_resets < -1))
2580 hd->soft_resets++; 2580 hd->soft_resets++;
2581 break; 2581 break;
2582 case MPI_EVENT_LOGOUT: /* 09 */ 2582 case MPI_EVENT_LOGOUT: /* 09 */
@@ -2601,7 +2601,7 @@ mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply)
2601 (pMpiEventDataRaid_t) pEvReply->Data; 2601 (pMpiEventDataRaid_t) pEvReply->Data;
2602#ifdef MPTSCSIH_ENABLE_DOMAIN_VALIDATION 2602#ifdef MPTSCSIH_ENABLE_DOMAIN_VALIDATION
2603 /* Domain Validation Needed */ 2603 /* Domain Validation Needed */
2604 if (ioc->bus_type == SCSI && 2604 if (ioc->bus_type == SPI &&
2605 pRaidEventData->ReasonCode == 2605 pRaidEventData->ReasonCode ==
2606 MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED) 2606 MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED)
2607 mptscsih_set_dvflags_raid(hd, pRaidEventData->PhysDiskNum); 2607 mptscsih_set_dvflags_raid(hd, pRaidEventData->PhysDiskNum);
@@ -2682,7 +2682,7 @@ mptscsih_initTarget(MPT_SCSI_HOST *hd, int bus_id, int target_id, u8 lun, char *
2682 indexed_lun = (lun % 32); 2682 indexed_lun = (lun % 32);
2683 vdev->luns[lun_index] |= (1 << indexed_lun); 2683 vdev->luns[lun_index] |= (1 << indexed_lun);
2684 2684
2685 if (hd->ioc->bus_type == SCSI) { 2685 if (hd->ioc->bus_type == SPI) {
2686 if ((data[0] == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) { 2686 if ((data[0] == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) {
2687 /* Treat all Processors as SAF-TE if 2687 /* Treat all Processors as SAF-TE if
2688 * command line option is set */ 2688 * command line option is set */
@@ -3956,10 +3956,10 @@ mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, int portnum)
3956 if (id == hostId) 3956 if (id == hostId)
3957 id++; 3957 id++;
3958 3958
3959 /* Write SDP1 for all SCSI devices 3959 /* Write SDP1 for all SPI devices
3960 * Alloc memory and set up config buffer 3960 * Alloc memory and set up config buffer
3961 */ 3961 */
3962 if (ioc->bus_type == SCSI) { 3962 if (ioc->bus_type == SPI) {
3963 if (ioc->spi_data.sdp1length > 0) { 3963 if (ioc->spi_data.sdp1length > 0) {
3964 pcfg1Data = (SCSIDevicePage1_t *)pci_alloc_consistent(ioc->pcidev, 3964 pcfg1Data = (SCSIDevicePage1_t *)pci_alloc_consistent(ioc->pcidev,
3965 ioc->spi_data.sdp1length * 4, &cfg1_dma_addr); 3965 ioc->spi_data.sdp1length * 4, &cfg1_dma_addr);
@@ -4101,8 +4101,8 @@ mptscsih_domainValidation(void *arg)
4101 4101
4102 msleep(250); 4102 msleep(250);
4103 4103
4104 /* DV only to SCSI adapters */ 4104 /* DV only to SPI adapters */
4105 if (ioc->bus_type != SCSI) 4105 if (ioc->bus_type != SPI)
4106 continue; 4106 continue;
4107 4107
4108 /* Make sure everything looks ok */ 4108 /* Make sure everything looks ok */