Linux-kernel mailing list archive 1998-42,: [PATCH]MCA forced scsi detection

# [PATCH]MCA forced scsi detection

Shaw Carruthers (shaw@shawc.demon.co.uk)
Mon, 19 Oct 1998 17:51:47 +0100 (GMT+0100)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Khimenko Victor: "Re: Cyrix Detection -- NO SMP, please ?????"
- Previous message: Pete Schwamb: "PCI direct access causes segfault?"

This patch is required to make forced scsi detection work when ibmmca is
compiled into the kernel as it does as a module.

It then accepts boot options of the form:

ibmmcascsi=ioaddr,scsid

--- /usr/src/linux/drivers/scsi/ibmmca.c Mon Oct 19 15:42:39 1998
+++ /usr/src/linux.mine/drivers/scsi/ibmmca.c Mon Oct 19 16:19:30 1998
@@ -1520,8 +1521,9 @@
use_display = 1;
} else if( ints ) {
int i;
- for (i = 0; i < IM_MAX_HOSTS && i < ints[0]; i++) {
- io_port[i] = ints[i+1];
+ for (i = 0; i < IM_MAX_HOSTS && 2*i+2 <= ints[0]; i++) {
+ io_port[i] = ints[2*i+1];
+ scsi_id[i] = ints[2*i+2];
}
}
}

    --
    Shaw Carruthers - shaw@shawc.demon.co.uk
    London SW14 7JW UK
    This is not a sig( with homage to Magritte).

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: Khimenko Victor: "Re: Cyrix Detection -- NO SMP, please ?????"
- Previous message: Pete Schwamb: "PCI direct access causes segfault?"