home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / kernel-s / v1.1 / scsi / 274x / aha274x / aha274x.h < prev    next >
C/C++ Source or Header  |  1995-10-10  |  2KB  |  63 lines

  1. /* @(#)aha274x.h 1.11 94/09/06 jda */
  2.  
  3. /*
  4.  * Adaptec 274x device driver for Linux.
  5.  * Copyright (c) 1994 The University of Calgary Department of Computer Science.
  6.  * 
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  * 
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  * 
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  */
  21.  
  22. #ifndef aha274x_h
  23. #define aha274x_h
  24.  
  25. #define    AHA274X_MAXSCB        4
  26. #define AHA274X_H_VERSION    "1.11"
  27.  
  28. /*
  29.  *  Scsi_Host_Template (see hosts.h) for 274x - some fields
  30.  *  to do with card config are filled in after the card is
  31.  *  detected.
  32.  */
  33. #define AHA274X    {                        \
  34.     NULL,                            \
  35.     "",                            \
  36.     aha274x_detect,                        \
  37.     NULL,                            \
  38.     aha274x_info,                        \
  39.     aha274x_command,                    \
  40.     aha274x_queue,                        \
  41.     aha274x_abort,                        \
  42.     aha274x_reset,                        \
  43.     NULL,                            \
  44.     aha274x_biosparam,                    \
  45.     AHA274X_MAXSCB,        /* max simultaneous cmds      */\
  46.     -1,            /* scsi id of host adapter    */\
  47.     SG_ALL,            /* max scatter-gather cmds    */\
  48.     1,            /* cmds per lun (linked cmds) */\
  49.     0,            /* number of 274x's present   */\
  50.     0,            /* no memory DMA restrictions */\
  51.     DISABLE_CLUSTERING                    \
  52. }
  53.  
  54. extern int aha274x_queue(Scsi_Cmnd *, void (*)(Scsi_Cmnd *));
  55. extern int aha274x_biosparam(Disk *, int, int[]);
  56. extern int aha274x_detect(Scsi_Host_Template *);
  57. extern int aha274x_command(Scsi_Cmnd *);
  58. extern int aha274x_abort(Scsi_Cmnd *);
  59. extern int aha274x_reset(Scsi_Cmnd *);
  60. extern const char *aha274x_info(void);
  61.  
  62. #endif
  63.