X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Fsym53c8xx_2%2Fsym53c8xx.h;h=7519728dfc382d2a20140679c26c03bdb7534683;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=6bc75a391bd18f1b1184d39649cf6e3d56f0211e;hpb=6a77f38946aaee1cd85eeec6cf4229b204c15071;p=linux-2.6.git diff --git a/drivers/scsi/sym53c8xx_2/sym53c8xx.h b/drivers/scsi/sym53c8xx_2/sym53c8xx.h index 6bc75a391..7519728df 100644 --- a/drivers/scsi/sym53c8xx_2/sym53c8xx.h +++ b/drivers/scsi/sym53c8xx_2/sym53c8xx.h @@ -40,11 +40,6 @@ #ifndef SYM53C8XX_H #define SYM53C8XX_H -#include - -#ifdef CONFIG_SCSI_SYM53C8XX_IOMAPPED -#define SYM_CONF_IOMAPPED -#endif /* * DMA addressing mode. @@ -144,10 +139,6 @@ struct sym_driver_setup { #define SYM_SETUP_HOST_ID sym_driver_setup.host_id #define boot_verbose sym_driver_setup.verbose -/* Always enable parity. */ -#define SYM_SETUP_PCI_PARITY 1 -#define SYM_SETUP_SCSI_PARITY 1 - /* * Initial setup. * @@ -170,4 +161,56 @@ extern struct sym_driver_setup sym_driver_setup; extern unsigned int sym_debug_flags; #define DEBUG_FLAGS sym_debug_flags +/* + * Max number of targets. + * Maximum is 16 and you are advised not to change this value. + */ +#ifndef SYM_CONF_MAX_TARGET +#define SYM_CONF_MAX_TARGET (16) +#endif + +/* + * Max number of logical units. + * SPI-2 allows up to 64 logical units, but in real life, target + * that implements more that 7 logical units are pretty rare. + * Anyway, the cost of accepting up to 64 logical unit is low in + * this driver, thus going with the maximum is acceptable. + */ +#ifndef SYM_CONF_MAX_LUN +#define SYM_CONF_MAX_LUN (64) +#endif + +/* + * Max number of IO control blocks queued to the controller. + * Each entry needs 8 bytes and the queues are allocated contiguously. + * Since we donnot want to allocate more than a page, the theorical + * maximum is PAGE_SIZE/8. For safety, we announce a bit less to the + * access method. :) + * When not supplied, as it is suggested, the driver compute some + * good value for this parameter. + */ +/* #define SYM_CONF_MAX_START (PAGE_SIZE/8 - 16) */ + +/* + * Support for Immediate Arbitration. + * Not advised. + */ +/* #define SYM_CONF_IARB_SUPPORT */ + +/* + * Only relevant if IARB support configured. + * - Max number of successive settings of IARB hints. + * - Set IARB on arbitration lost. + */ +#define SYM_CONF_IARB_MAX 3 +#define SYM_CONF_SET_IARB_ON_ARB_LOST 1 + +/* + * Returning wrong residuals may make problems. + * When zero, this define tells the driver to + * always return 0 as transfer residual. + * Btw, all my testings of residuals have succeeded. + */ +#define SYM_SETUP_RESIDUAL_SUPPORT 1 + #endif /* SYM53C8XX_H */