patch-1.3.15 linux/drivers/scsi/aha1542.c
Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/scsi/aha152x.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Tue Aug 1 10:02:39 1995
- Orig file:
v1.3.14/linux/drivers/scsi/aha1542.c
- Orig date:
Fri Jul 7 08:54:49 1995
diff -u --recursive --new-file v1.3.14/linux/drivers/scsi/aha1542.c linux/drivers/scsi/aha1542.c
@@ -713,7 +713,7 @@
aha1542_intr_reset(bse);
}
-static int aha1542_getconfig(int base_io, unsigned char * irq_level, unsigned char * dma_chan)
+static int aha1542_getconfig(int base_io, unsigned char * irq_level, unsigned char * dma_chan, unsigned char * scsi_id)
{
unchar inquiry_cmd[] = {CMD_RETCONF };
unchar inquiry_result[3];
@@ -775,6 +775,7 @@
printk("Unable to determine Adaptec IRQ level. Disabling board\n");
return -1;
};
+ *scsi_id=inquiry_result[2] & 7;
return 0;
}
@@ -855,7 +856,7 @@
/* called from init/main.c */
void aha1542_setup( char *str, int *ints)
{
- char *ahausage = "aha1542: usage: aha1542=<PORTBASE>[,<BUSON>,<BUSOFF>[,<DMASPEED>]]\n";
+ const char *ahausage = "aha1542: usage: aha1542=<PORTBASE>[,<BUSON>,<BUSOFF>[,<DMASPEED>]]\n";
static int setup_idx = 0;
int setup_portbase;
@@ -918,6 +919,7 @@
{
unsigned char dma_chan;
unsigned char irq_level;
+ unsigned char scsi_id;
unsigned long flags;
unsigned int base_io;
int trans;
@@ -977,9 +979,9 @@
}
if(aha1542_query(base_io, &trans)) goto unregister;
- if (aha1542_getconfig(base_io, &irq_level, &dma_chan) == -1) goto unregister;
+ if (aha1542_getconfig(base_io, &irq_level, &dma_chan, &scsi_id) == -1) goto unregister;
- printk("Configuring Adaptec at IO:%x, IRQ %d",base_io, irq_level);
+ printk("Configuring Adaptec (SCSI-ID %d) at IO:%x, IRQ %d", scsi_id, base_io, irq_level);
if (dma_chan != 0xFF)
printk(", DMA priority %d", dma_chan);
printk("\n");
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