root/drivers/scsi/eata_dma.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /********************************************************
   2 * Header file for eata_dma.c Linux EATA-DMA SCSI driver *
   3 * (c) 1993,94,95 Michael Neuffer                        *
   4 *********************************************************
   5 * last change: 95/06/20                                 *
   6 ********************************************************/
   7 
   8 
   9 #ifndef _EATA_DMA_H
  10 #define _EATA_DMA_H
  11 
  12 #ifndef HOSTS_C
  13 
  14 #include "eata_generic.h"
  15 
  16 
  17 #define VER_MAJOR 2
  18 #define VER_MINOR 5
  19 #define VER_SUB   "7a"
  20 
  21 
  22 /************************************************************************
  23  * Here you can switch parts of the code on and of                      *
  24  ************************************************************************/
  25 
  26 #define CHECKPAL        0        /* EISA pal checking on/off            */
  27 
  28 /************************************************************************
  29  * Debug options.                                                       * 
  30  * Enable DEBUG and whichever options you require.                      *
  31  ************************************************************************/
  32 #define DEBUG_EATA      1       /* Enable debug code.                   */
  33 #define DPT_DEBUG       0       /* Bobs special                         */
  34 #define DBG_DELAY       0       /* Build in delays so debug messages can be
  35                                  * be read before they vanish of the top of
  36                                  * the screen!                          */
  37 #define DBG_PROBE       0       /* Debug probe routines.                */
  38 #define DBG_PCI         0       /* Trace PCI routines                   */
  39 #define DBG_EISA        0       /* Trace EISA routines                  */
  40 #define DBG_ISA         0       /* Trace ISA routines                   */ 
  41 #define DBG_BLINK       0       /* Trace Blink check                    */
  42 #define DBG_PIO         0       /* Trace get_config_PIO                 */
  43 #define DBG_COM         0       /* Trace command call                   */
  44 #define DBG_QUEUE       0       /* Trace command queueing.              */
  45 #define DBG_QUEUE2      0       /* Trace command queueing SG.           */
  46 #define DBG_INTR        0       /* Trace interrupt service routine.     */
  47 #define DBG_INTR2       0       /* Trace interrupt service routine.     */
  48 #define DBG_INTR3       0       /* Trace get_board_data interrupts.     */
  49 #define DBG_PROC        0       /* Debug proc-fs related statistics     */
  50 #define DBG_PROC_WRITE  0
  51 #define DBG_REGISTER    0       /* */
  52 #define DBG_ABNORM      1       /* Debug abnormal actions (reset, abort)*/
  53 
  54 #if DEBUG_EATA 
  55 #define DBG(x, y)   if ((x)) {y;} 
  56 #else
  57 #define DBG(x, y)
  58 #endif
  59 
  60 #endif /* !HOSTS_C */
  61 
  62 int eata_detect(Scsi_Host_Template *);
  63 const char *eata_info(struct Scsi_Host *);
  64 int eata_command(Scsi_Cmnd *);
  65 int eata_queue(Scsi_Cmnd *, void (* done)(Scsi_Cmnd *));
  66 int eata_abort(Scsi_Cmnd *);
  67 int eata_reset(Scsi_Cmnd *);
  68 int eata_proc_info(char *, char **, off_t, int, int, int);
  69 #ifdef MODULE
  70 int eata_release(struct Scsi_Host *);
  71 #else
  72 #define eata_release NULL  
  73 #endif
  74 
  75 #define EATA_DMA {                   \
  76         NULL, NULL,                  \
  77         eata_proc_info,/* procinfo */        \
  78         "eata_dma",    /* proc dir entry */  \
  79         PROC_SCSI_EATA,/* proc dir inode */  \
  80         "EATA (Extended Attachment) driver", \
  81         eata_detect,                 \
  82         eata_release,                \
  83         NULL, NULL,                  \
  84         eata_queue,                  \
  85         eata_abort,                  \
  86         eata_reset,                  \
  87         NULL,   /* Slave attach */   \
  88         scsicam_bios_param,          \
  89         0,      /* Canqueue     */   \
  90         0,      /* this_id      */   \
  91         0,      /* sg_tablesize */   \
  92         0,      /* cmd_per_lun  */   \
  93         0,      /* present      */   \
  94         1,      /* True if ISA  */   \
  95         ENABLE_CLUSTERING }
  96 
  97 
  98 #endif /* _EATA_DMA_H */
  99 
 100 /*
 101  * Overrides for Emacs so that we almost follow Linus's tabbing style.
 102  * Emacs will notice this stuff at the end of the file and automatically
 103  * adjust the settings for this buffer only.  This must remain at the end
 104  * of the file.
 105  * ---------------------------------------------------------------------------
 106  * Local variables:
 107  * c-indent-level: 4
 108  * c-brace-imaginary-offset: 0
 109  * c-brace-offset: -4
 110  * c-argdecl-indent: 4
 111  * c-label-offset: -4
 112  * c-continued-statement-offset: 4
 113  * c-continued-brace-offset: 0
 114  * indent-tabs-mode: nil
 115  * tab-width: 8
 116  * End:
 117  */

/* [previous][next][first][last][top][bottom][index][help] */