patch-2.4.0-test2 linux/drivers/scsi/megaraid.c
Next file: linux/drivers/scsi/ncr53c8xx.c
Previous file: linux/drivers/scsi/mac_scsi.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Mon Jun 19 13:42:40 2000
- Orig file:
v2.4.0-test1/linux/drivers/scsi/megaraid.c
- Orig date:
Tue May 23 15:31:35 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/scsi/megaraid.c linux/drivers/scsi/megaraid.c
@@ -1478,6 +1478,8 @@
struct pci_dev *pdev = NULL;
while ((pdev = pci_find_device (pciVendor, pciDev, pdev))) {
+ if (pci_enable_device(pdev))
+ continue;
if ((flag & BOARD_QUARTZ) && (skip_id == -1)) {
u16 magic;
pci_read_config_word(pdev, PCI_CONF_AMISIG, &magic);
@@ -1505,18 +1507,13 @@
}
/* Read the base port and IRQ from PCI */
- megaBase = pdev->resource[0].start;
+ megaBase = pci_resource_start (pdev, 0);
megaIrq = pdev->irq;
- if (flag & BOARD_QUARTZ) {
-
- megaBase &= PCI_BASE_ADDRESS_MEM_MASK;
+ if (flag & BOARD_QUARTZ)
megaBase = (long) ioremap (megaBase, 128);
- }
- else {
- megaBase &= PCI_BASE_ADDRESS_IO_MASK;
+ else
megaBase += 0x10;
- }
/* Initialize SCSI Host structure */
host = scsi_register (pHostTmpl, sizeof (mega_host_config));
@@ -1589,7 +1586,7 @@
"megaraid: to protect your data, please upgrade your firmware to version\n"
"megaraid: 3.10 or later, available from the Dell Technical Support web\n"
"megaraid: site at\n"
-"http://support.dell.com/us/en/filelib/download/index.asp?fileid=2489\n");
+"http://support.dell.com/us/en/filelib/download/index.asp?fileid=2940\n");
megaraid_release (host);
#ifdef MODULE
continue;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)