home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / drivers / scsi / wd7000.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-29  |  1.4 KB  |  53 lines

  1. #ifndef _WD7000_H
  2.  
  3. /* $Id: $
  4.  *
  5.  * Header file for the WD-7000 driver for Linux
  6.  *
  7.  * John Boyd <boyd@cis.ohio-state.edu>  Jan 1994:
  8.  * This file has been reduced to only the definitions needed for the
  9.  * WD7000 host structure.
  10.  *
  11.  */
  12.  
  13. #include <linux/types.h>
  14.  
  15. int wd7000_detect(Scsi_Host_Template *);
  16. int wd7000_command(Scsi_Cmnd *);
  17. int wd7000_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  18. int wd7000_abort(Scsi_Cmnd *);
  19. int wd7000_reset(Scsi_Cmnd *);
  20. int wd7000_biosparam(Disk *, int, int*);
  21.  
  22. #ifndef NULL
  23. #define NULL 0L
  24. #endif
  25.  
  26. /*
  27.  *  In this version, sg_tablesize now defaults to WD7000_SG, and will
  28.  *  be set to SG_NONE for older boards.  This is the reverse of the
  29.  *  previous default, and was changed so that the driver-level
  30.  *  Scsi_Host_Template would reflect the driver's support for scatter/
  31.  *  gather.
  32.  *
  33.  *  Also, it has been reported that boards at Revision 6 support scatter/
  34.  *  gather, so the new definition of an "older" board has been changed
  35.  *  accordingly.
  36.  */
  37. #define WD7000_Q    16
  38. #define WD7000_SG   16
  39.  
  40. #define WD7000 { NULL, NULL, \
  41.     "Western Digital WD-7000",      \
  42.     wd7000_detect,                  \
  43.     NULL,                \
  44.     NULL,                        \
  45.     wd7000_command,                    \
  46.     wd7000_queuecommand,            \
  47.     wd7000_abort,            \
  48.     wd7000_reset,            \
  49.     NULL,                           \
  50.     wd7000_biosparam,               \
  51.     WD7000_Q, 7, WD7000_SG, 1, 0, 1, ENABLE_CLUSTERING}
  52. #endif
  53.