patch-2.0.25 linux/drivers/scsi/aha1542.c
Next file: linux/drivers/scsi/fdomain.c
Previous file: linux/drivers/sbus/char/sunkbd.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Thu Nov 7 11:25:21 1996
- Orig file:
v2.0.24/linux/drivers/scsi/aha1542.c
- Orig date:
Mon Aug 5 10:13:52 1996
diff -u --recursive --new-file v2.0.24/linux/drivers/scsi/aha1542.c linux/drivers/scsi/aha1542.c
@@ -1027,7 +1027,7 @@
shpnt->dma_channel = dma_chan;
shpnt->irq = irq_level;
HOSTDATA(shpnt)->bios_translation = trans;
- if(trans == 2)
+ if(trans == BIOS_TRANSLATION_25563)
printk("aha1542.c: Using extended bios translation\n");
HOSTDATA(shpnt)->aha1542_last_mbi_used = (2*AHA1542_MAILBOXES - 1);
HOSTDATA(shpnt)->aha1542_last_mbo_used = (AHA1542_MAILBOXES - 1);
@@ -1300,8 +1300,8 @@
int size = disk->capacity;
translation_algorithm = HOSTDATA(disk->device->host)->bios_translation;
- /* Should this be > 1024, or >= 1024? Enquiring minds want to know. */
- if((size>>11) > 1024 && translation_algorithm == 2) {
+
+ if((size>>11) > 1024 && translation_algorithm == BIOS_TRANSLATION_25563) {
/* Please verify that this is the same as what DOS returns */
ip[0] = 255;
ip[1] = 63;
@@ -1310,8 +1310,8 @@
ip[0] = 64;
ip[1] = 32;
ip[2] = size >> 11;
- };
-/* if (ip[2] >= 1024) ip[2] = 1024; */
+ }
+
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov