aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message
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
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')
-rw-r--r--drivers/message/fusion/mptbase.c14
-rw-r--r--drivers/message/fusion/mptbase.h2
-rw-r--r--drivers/message/fusion/mptscsih.c30
3 files changed, 23 insertions, 23 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 4262a22adc22..537836068c49 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -313,13 +313,13 @@ mpt_reply(MPT_ADAPTER *ioc, u32 pa)
313 u32 log_info = le32_to_cpu(mr->u.reply.IOCLogInfo); 313 u32 log_info = le32_to_cpu(mr->u.reply.IOCLogInfo);
314 if (ioc->bus_type == FC) 314 if (ioc->bus_type == FC)
315 mpt_fc_log_info(ioc, log_info); 315 mpt_fc_log_info(ioc, log_info);
316 else if (ioc->bus_type == SCSI) 316 else if (ioc->bus_type == SPI)
317 mpt_sp_log_info(ioc, log_info); 317 mpt_sp_log_info(ioc, log_info);
318 else if (ioc->bus_type == SAS) 318 else if (ioc->bus_type == SAS)
319 mpt_sas_log_info(ioc, log_info); 319 mpt_sas_log_info(ioc, log_info);
320 } 320 }
321 if (ioc_stat & MPI_IOCSTATUS_MASK) { 321 if (ioc_stat & MPI_IOCSTATUS_MASK) {
322 if (ioc->bus_type == SCSI && 322 if (ioc->bus_type == SPI &&
323 cb_idx != mpt_stm_index && 323 cb_idx != mpt_stm_index &&
324 cb_idx != mpt_lan_index) 324 cb_idx != mpt_lan_index)
325 mpt_sp_ioc_info(ioc, (u32)ioc_stat, mf); 325 mpt_sp_ioc_info(ioc, (u32)ioc_stat, mf);
@@ -1376,7 +1376,7 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
1376 } 1376 }
1377 else if (pdev->device == MPI_MANUFACTPAGE_DEVID_53C1030) { 1377 else if (pdev->device == MPI_MANUFACTPAGE_DEVID_53C1030) {
1378 ioc->prod_name = "LSI53C1030"; 1378 ioc->prod_name = "LSI53C1030";
1379 ioc->bus_type = SCSI; 1379 ioc->bus_type = SPI;
1380 /* 1030 Chip Fix. Disable Split transactions 1380 /* 1030 Chip Fix. Disable Split transactions
1381 * for PCIX. Set MOST bits to zero if Rev < C0( = 8). 1381 * for PCIX. Set MOST bits to zero if Rev < C0( = 8).
1382 */ 1382 */
@@ -1389,7 +1389,7 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
1389 } 1389 }
1390 else if (pdev->device == MPI_MANUFACTPAGE_DEVID_1030_53C1035) { 1390 else if (pdev->device == MPI_MANUFACTPAGE_DEVID_1030_53C1035) {
1391 ioc->prod_name = "LSI53C1035"; 1391 ioc->prod_name = "LSI53C1035";
1392 ioc->bus_type = SCSI; 1392 ioc->bus_type = SPI;
1393 } 1393 }
1394 else if (pdev->device == MPI_MANUFACTPAGE_DEVID_SAS1064) { 1394 else if (pdev->device == MPI_MANUFACTPAGE_DEVID_SAS1064) {
1395 ioc->prod_name = "LSISAS1064"; 1395 ioc->prod_name = "LSISAS1064";
@@ -3042,7 +3042,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag)
3042 /* Clear the internal flash bad bit - autoincrementing register, 3042 /* Clear the internal flash bad bit - autoincrementing register,
3043 * so must do two writes. 3043 * so must do two writes.
3044 */ 3044 */
3045 if (ioc->bus_type == SCSI) { 3045 if (ioc->bus_type == SPI) {
3046 /* 3046 /*
3047 * 1030 and 1035 H/W errata, workaround to access 3047 * 1030 and 1035 H/W errata, workaround to access
3048 * the ClearFlashBadSignatureBit 3048 * the ClearFlashBadSignatureBit
@@ -3152,7 +3152,7 @@ KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag)
3152 int cnt,cntdn; 3152 int cnt,cntdn;
3153 3153
3154 dinitprintk((KERN_WARNING MYNAM ": KickStarting %s!\n", ioc->name)); 3154 dinitprintk((KERN_WARNING MYNAM ": KickStarting %s!\n", ioc->name));
3155 if (ioc->bus_type == SCSI) { 3155 if (ioc->bus_type == SPI) {
3156 /* Always issue a Msg Unit Reset first. This will clear some 3156 /* Always issue a Msg Unit Reset first. This will clear some
3157 * SCSI bus hang conditions. 3157 * SCSI bus hang conditions.
3158 */ 3158 */
@@ -3580,7 +3580,7 @@ initChainBuffers(MPT_ADAPTER *ioc)
3580 dinitprintk((KERN_INFO MYNAM ": %s Now numSGE=%d num_sge=%d num_chain=%d\n", 3580 dinitprintk((KERN_INFO MYNAM ": %s Now numSGE=%d num_sge=%d num_chain=%d\n",
3581 ioc->name, numSGE, num_sge, num_chain)); 3581 ioc->name, numSGE, num_sge, num_chain));
3582 3582
3583 if (ioc->bus_type == SCSI) 3583 if (ioc->bus_type == SPI)
3584 num_chain *= MPT_SCSI_CAN_QUEUE; 3584 num_chain *= MPT_SCSI_CAN_QUEUE;
3585 else 3585 else
3586 num_chain *= MPT_FC_CAN_QUEUE; 3586 num_chain *= MPT_FC_CAN_QUEUE;
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index bac8eb4186d2..7a6c11418452 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -903,7 +903,7 @@ typedef struct _MPT_LOCAL_REPLY {
903 903
904typedef enum { 904typedef enum {
905 FC, 905 FC,
906 SCSI, 906 SPI,
907 SAS 907 SAS
908} BUS_TYPE; 908} BUS_TYPE;
909 909
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 */