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

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef _I2O_SCSI_H
  2. #define _I2O_SCSI_H
  3. #if !defined(LINUX_VERSION_CODE)
  4. #include <linux/version.h>
  5. #endif
  6. #define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s))
  7. #include <linux/types.h>
  8. #include <linux/kdev_t.h>
  9. #define I2O_SCSI_ID 15
  10. #define I2O_SCSI_CAN_QUEUE 4
  11. #define I2O_SCSI_CMD_PER_LUN 6
  12. static int i2o_scsi_detect(Scsi_Host_Template *);
  13. static const char *i2o_scsi_info(struct Scsi_Host *);
  14. static int i2o_scsi_command(Scsi_Cmnd *);
  15. static int i2o_scsi_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  16. static int i2o_scsi_abort(Scsi_Cmnd *);
  17. static int i2o_scsi_reset(Scsi_Cmnd *, unsigned int);
  18. static int i2o_scsi_bios_param(Disk *, kdev_t, int *);
  19. extern void i2o_scsi_setup(char *str, int *ints);
  20. static int i2o_scsi_release(struct Scsi_Host *host);
  21. #define I2OSCSI {                                          
  22.   next: NULL,     
  23.                   proc_name:         "i2o_scsi",   
  24.                   name:              "I2O SCSI Layer",      
  25.                   detect:            i2o_scsi_detect,       
  26.                   release:      i2o_scsi_release,     
  27.                   info:              i2o_scsi_info,         
  28.                   command:           i2o_scsi_command,      
  29.                   queuecommand:      i2o_scsi_queuecommand, 
  30.                   abort:             i2o_scsi_abort,        
  31.                   reset:             i2o_scsi_reset,        
  32.                   bios_param:        i2o_scsi_bios_param,   
  33.                   can_queue:         I2O_SCSI_CAN_QUEUE,    
  34.                   this_id:           I2O_SCSI_ID,           
  35.                   sg_tablesize:      8,                     
  36.                   cmd_per_lun:       I2O_SCSI_CMD_PER_LUN,  
  37.                   unchecked_isa_dma: 0,                     
  38.                   use_clustering:    ENABLE_CLUSTERING     
  39.                   }
  40. #endif