Fix compilation on linux kernels 2.6.28, 29 and 30.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Stanislaw Gruszka
2009-06-23 17:29:30 +00:00
parent cc3453f142
commit 25d4acd35f
2 changed files with 64 additions and 12 deletions
+4
View File
@@ -498,7 +498,11 @@ struct isposinfo {
#define XS_SET_RESID scsi_set_resid
#define XS_XFRLEN scsi_bufflen
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
#define XS_TIME(Cmnd) ((((Cmnd)->timeout_per_command) * HZ)*1000)
#else
#define XS_TIME(Cmnd) ((((Cmnd)->request->timeout) * HZ)*1000)
#endif
#define XS_STSP(Cmnd) (&(Cmnd)->SCp.Status)
#define XS_SNSP(Cmnd) (Cmnd)->sense_buffer
#define XS_SNSLEN(Cmnd) SCSI_SENSE_BUFFERSIZE