@@ -572,18 +572,23 @@
}
/**************************************************************************
-* Function : AM53C974_setup(char *str, int *ints)
+* Function : AM53C974_setup(char *str)
*
* Purpose : LILO command line initialization of the overrides array,
*
-* Inputs : str - unused, ints - array of integer parameters with ints[0]
-* equal to the number of ints.
+* Input : str - parameter string.
+*
+* Returns : 1.
*
* NOTE : this function needs to be declared as an external function
* in init/main.c and included there in the bootsetups list
***************************************************************************/
-void AM53C974_setup(char *str, int *ints)
+int AM53C974_setup(char *str)
{
+ int ints[5];
+
+ get_options(str, ARRAY_SIZE(ints), ints);
+
if (ints[0] < 4)
printk("AM53C974_setup: wrong number of parameters;\n correct syntax is: AM53C974=host-scsi-id, target-scsi-id, max-rate, max-offset\n");
else {
@@ -604,7 +609,10 @@
} else
printk("AM53C974_setup: too many overrides\n");
}
+
+ return 1;
}
+__setup("AM53C974=", AM53C974_setup);
#if defined (CONFIG_PCI)
/**************************************************************************
@@ -68,7 +68,7 @@
use_clustering: DISABLE_CLUSTERING \
}
-void AM53C974_setup(char *str, int *ints);
+int AM53C974_setup(char *str);
int AM53C974_detect(Scsi_Host_Template * tpnt);
int AM53C974_release(struct Scsi_Host *shp);
int AM53C974_biosparm(Disk * disk, int dev, int *info_array);