? .dc395x_trm.o.flags ? Rules.make Index: dc395x_trm.c =================================================================== RCS file: /home/cvsroot/dc395/dc395x_trm.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -r1.62 -r1.63 --- dc395x_trm.c 2000/09/29 20:00:44 1.62 +++ dc395x_trm.c 2000/10/12 17:01:09 1.63 @@ -12,7 +12,7 @@ //* Kurt Garloff //* (C) 1999-2000 Kurt Garloff //* License: GNU GPL -//* $Id: dc395x_trm.c,v 1.62 2000/09/29 20:00:44 garloff Exp $ +//* $Id: dc395x_trm.c,v 1.63 2000/10/12 17:01:09 garloff Exp $ //*********************************************************************** //* Tekram PCI SCSI adapter (DC395/U/UW/F or DC315/U) revision history //* @@ -80,6 +80,7 @@ //* 1.28 00/09/29 KG Only try sync/wide nego, if device reports //* to be capable of doing so. 2.4 fixes: //* New scanning sequence ... Fix typo +//* 1.29 00/10/12 KG Allow in kernel compilation w/ 2.4 //*********************************************************************** /* ************************************************************************* @@ -7130,7 +7131,12 @@ //DC395x_DRV_UNLOCK(drv_flags); return( 1 ); } +#endif /* def MODULE */ +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,99) +static Scsi_Host_Template driver_template = DC395x_TRMS1040; +# include "scsi_module.c" +#elif defined (MODULE) Scsi_Host_Template driver_template = DC395x_TRMS1040; -#include "scsi_module.c" -#endif /* def MODULE */ +# include "scsi_module.c" +#endif Index: dc395x_trm.h =================================================================== RCS file: /home/cvsroot/dc395/dc395x_trm.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- dc395x_trm.h 2000/09/29 20:00:44 1.27 +++ dc395x_trm.h 2000/10/12 17:01:10 1.28 @@ -8,7 +8,7 @@ ** ********************************************************************** */ -/* $Id: dc395x_trm.h,v 1.27 2000/09/29 20:00:44 garloff Exp $ */ +/* $Id: dc395x_trm.h,v 1.28 2000/10/12 17:01:10 garloff Exp $ */ /* ***************************************************** ** Tekram TRM_S1040 for DC395x driver, header file @@ -20,7 +20,7 @@ #include #define DC395x_BANNER "Tekram DC395U/UW/F DC315/U" -#define DC395x_VERSION "1.28, 2000-09-29" +#define DC395x_VERSION "1.29, 2000-10-12" /* Kernel version autodetection */ #include @@ -72,7 +72,7 @@ # define NEW_EH use_new_eh_code: 1, #endif -#if defined(HOSTS_C) || defined(MODULE) +#if defined(HOSTS_C) || defined(MODULE) || LINUX_VERSION_CODE > KERNEL_VERSION(2,3,99) # include @@ -131,5 +131,5 @@ use_clustering: DISABLE_CLUSTERING \ } #endif /* 2,3,30 */ -#endif /* defined(HOSTS_C) || defined(MODULE) */ +#endif /* defined(HOSTS_C) || defined(MODULE) || LINUX_VERSION_CODE > 2,3,99 */ #endif /* DC395x_H */