? .tmscsim.o.flags ? Rules.make Index: dc390.h =================================================================== RCS file: /home/cvsroot/dc390/dc390.h,v retrieving revision 2.43.2.16 retrieving revision 2.43.2.17 diff -u -r2.43.2.16 -r2.43.2.17 --- dc390.h 2000/09/29 17:32:35 2.43.2.16 +++ dc390.h 2000/10/13 15:15:00 2.43.2.17 @@ -4,7 +4,7 @@ * Description: Device Driver for Tekram DC-390(T) PCI SCSI * * Bus Master Host Adapter * ***********************************************************************/ -/* $Id: dc390.h,v 2.43.2.16 2000/09/29 17:32:35 garloff Exp $ */ +/* $Id: dc390.h,v 2.43.2.17 2000/10/13 15:15:00 garloff Exp $ */ /* * DC390/AMD 53C974 driver, header file @@ -19,7 +19,7 @@ #endif #define DC390_BANNER "Tekram DC390/AM53C974" -#define DC390_VERSION "2.0e3 2000/09/29" +#define DC390_VERSION "2.0e4 2000/10/13" /* We don't have eh_abort_handler, eh_device_reset_handler, * eh_bus_reset_handler, eh_host_reset_handler yet! @@ -33,7 +33,7 @@ # define USE_NEW_EH #endif -#if defined(HOSTS_C) || defined(MODULE) +#if defined(HOSTS_C) || defined(MODULE) || LINUX_VERSION_CODE > KERNEL_VERSION(2,3,99) extern int DC390_detect(Scsi_Host_Template *psht); extern int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); Index: tmscsim.c =================================================================== RCS file: /home/cvsroot/dc390/tmscsim.c,v retrieving revision 2.60.2.23 retrieving revision 2.60.2.24 diff -u -r2.60.2.23 -r2.60.2.24 --- tmscsim.c 2000/09/29 17:32:35 2.60.2.23 +++ tmscsim.c 2000/10/13 15:15:00 2.60.2.24 @@ -7,7 +7,7 @@ ***********************************************************************/ /* (C) Copyright: put under GNU GPL in 10/96 (see README.tmscsim) * *************************************************************************/ -/* $Id: tmscsim.c,v 2.60.2.23 2000/09/29 17:32:35 garloff Exp $ */ +/* $Id: tmscsim.c,v 2.60.2.24 2000/10/13 15:15:00 garloff Exp $ */ /* Enhancements and bugfixes by * * Kurt Garloff * ***********************************************************************/ @@ -158,6 +158,7 @@ * 2.0e3 00/09/29 KG Some 2.4 changes. Don't try Sync Nego * * before INQUIRY has reported ability. * * Recognise INQUIRY as scanning command. * + * 2.0e4 00/10/13 KG Allow compilation into 2.4 kernel * ***********************************************************************/ /* Uncomment SA_INTERRUPT, if the driver refuses to share its IRQ with other devices */ @@ -2994,7 +2995,12 @@ DC390_UNLOCK_IO; return( 1 ); } +#endif /* def MODULE */ +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,99) +static Scsi_Host_Template driver_template = DC390_T; +#include "scsi_module.c" +#elif defined(MODULE) Scsi_Host_Template driver_template = DC390_T; #include "scsi_module.c" -#endif /* def MODULE */ +#endif