Annotation of Gnu-Mach/linux/src/drivers/scsi/eata_dma.h, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.