cpqfcTS.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef CPQFCTS_H
  2. #define CPQFCTS_H
  3. #include "cpqfcTSstructs.h"
  4. // These functions are required by the Linux SCSI layers
  5. extern int cpqfcTS_detect(Scsi_Host_Template *);
  6. extern int cpqfcTS_release(struct Scsi_Host *);
  7. extern const char * cpqfcTS_info(struct Scsi_Host *);
  8. extern int cpqfcTS_proc_info(char *, char **, off_t, int, int, int);
  9. extern int cpqfcTS_queuecommand(Scsi_Cmnd *, void (* done)(Scsi_Cmnd *));
  10. extern int cpqfcTS_abort(Scsi_Cmnd *);
  11. extern int cpqfcTS_reset(Scsi_Cmnd *, unsigned int);
  12. extern int cpqfcTS_eh_abort(Scsi_Cmnd *Cmnd);
  13. extern int cpqfcTS_eh_device_reset(Scsi_Cmnd *);
  14. extern int cpqfcTS_biosparam(Disk *, kdev_t, int[]);
  15. extern int cpqfcTS_ioctl( Scsi_Device *ScsiDev, int Cmnd, void *arg);
  16. // note: since Tachyon TS supports an extended scatter/gather
  17. // linked list of infinite length (with linked Ext S/G pages,
  18. // limited only by available physical memory) we use SG_ALL.
  19. #define CPQFCTS {                                
  20.  detect:                 cpqfcTS_detect,         
  21.  release:                cpqfcTS_release,        
  22.  info:                   cpqfcTS_info,           
  23.  proc_info:              cpqfcTS_proc_info,      
  24.  ioctl:                  cpqfcTS_ioctl,          
  25.  queuecommand:           cpqfcTS_queuecommand,   
  26.  eh_device_reset_handler:   cpqfcTS_eh_device_reset,   
  27.  eh_abort_handler:       cpqfcTS_eh_abort,       
  28.  reset:                  cpqfcTS_reset,          
  29.  abort:                  cpqfcTS_abort,  
  30.  bios_param:             cpqfcTS_biosparam,      
  31.  can_queue:              CPQFCTS_REQ_QUEUE_LEN,  
  32.  this_id:                -1,                     
  33.  sg_tablesize:           SG_ALL,                 
  34.  cmd_per_lun:            CPQFCTS_CMD_PER_LUN,    
  35.  present:                0,                      
  36.  unchecked_isa_dma:      0,                      
  37.  use_clustering:         ENABLE_CLUSTERING,      
  38.  use_new_eh_code:        1  
  39. }
  40. #endif /* CPQFCTS_H */