patch-1.3.31 linux/drivers/scsi/eata_dma.c

Next file: linux/drivers/scsi/eata_dma_proc.c
Previous file: linux/drivers/scsi/53c7,8xx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.30/linux/drivers/scsi/eata_dma.c linux/drivers/scsi/eata_dma.c
@@ -881,7 +881,7 @@
     }
     
     /* if gc->DMA_valid it must be an ISA HBA and we have to register it */
-    dma_channel = 0xff;
+    dma_channel = BUSMASTER;
     if (gc->DMA_valid) {
 	if (request_dma(dma_channel = (8 - gc->DMA_channel) & 7, "eata_dma")) {
 	    printk("Unable to allocate DMA channel %d for ISA HBA at %#.4x.\n",
@@ -1025,8 +1025,9 @@
 
     hd->channel = gc->MAX_CHAN;	    
     sh->max_channel = gc->MAX_CHAN; 
+    sh->unique_id = base;
     sh->base = (char *) base;
-    sh->io_port = (u16) base;
+    sh->io_port = base;
     sh->n_io_port = 9;
     sh->irq = gc->IRQ;
     sh->dma_channel = dma_channel;
@@ -1318,7 +1319,7 @@
 		   SD(HBA_ptr)->EATA_revision, (SD(HBA_ptr)->bustype == 'P')? 
 		   "PCI ":(SD(HBA_ptr)->bustype == 'E')?"EISA":"ISA ",
 		   (u32) HBA_ptr->base, HBA_ptr->irq);
-	    if(HBA_ptr->dma_channel != 0xff)
+	    if(HBA_ptr->dma_channel != BUSMASTER)
 		printk("   %2x ", HBA_ptr->dma_channel);
 	    else
 		printk("  %s", "BMST");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this