diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 634254a..6126124 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -368,6 +368,8 @@ #if defined(CONFIG_IA64_GENERIC) || defined(CONFIG_IA64_SGI_SN2) #include +#elif defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP30) +#include #endif @@ -1453,6 +1455,12 @@ qla1280_initialize_adapter(struct scsi_qla_host *ha) ha->flags.use_pci_vchannel = 1; driver_setup.no_nvram = 1; } +#elif defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP30) + if (ha->host_no == 0) { + printk(KERN_INFO "scsi(%li): Enabling vchannel on BRIDGE " + "for SGI/MIPS\n", ha->host_no); + ha->flags.use_pci_vchannel = 1; + } #endif /* TODO: implement support for the 1040 nvram format */ @@ -2911,7 +2919,7 @@ qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) break; dma_handle = sg_dma_address(s); -#if defined(CONFIG_IA64_GENERIC) || defined(CONFIG_IA64_SGI_SN2) +#if defined(CONFIG_IA64_GENERIC) || defined(CONFIG_IA64_SGI_SN2) || defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP30) if (ha->flags.use_pci_vchannel) sn_pci_set_vchan(ha->pdev, (unsigned long *)&dma_handle, @@ -2973,7 +2981,7 @@ qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) if (cnt == 5) break; dma_handle = sg_dma_address(s); -#if defined(CONFIG_IA64_GENERIC) || defined(CONFIG_IA64_SGI_SN2) +#if defined(CONFIG_IA64_GENERIC) || defined(CONFIG_IA64_SGI_SN2) || defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP30) if (ha->flags.use_pci_vchannel) sn_pci_set_vchan(ha->pdev, (unsigned long *)&dma_handle, diff --git a/drivers/scsi/qla1280.h b/drivers/scsi/qla1280.h index 834884b..fd8c68c 100644 --- a/drivers/scsi/qla1280.h +++ b/drivers/scsi/qla1280.h @@ -1063,7 +1063,7 @@ struct scsi_qla_host { uint32_t reset_active:1; /* 3 */ uint32_t abort_isp_active:1; /* 4 */ uint32_t disable_risc_code_load:1; /* 5 */ -#ifdef __ia64__ +#if defined(__ia64__) || defined(__mips__) uint32_t use_pci_vchannel:1; #endif } flags;