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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /********************************************************
  2. * Header file for eata_pio.c Linux EATA-PIO SCSI driver *
  3. * (c) 1993-96 Michael Neuffer                           *
  4. *********************************************************
  5. * last change: 96/05/05 *
  6. ********************************************************/
  7. #ifndef _EATA_PIO_H
  8. #define _EATA_PIO_H
  9. #include <linux/blk.h>
  10. #include "scsi.h"
  11. #include "hosts.h"
  12. #include <scsi/scsicam.h>
  13. #ifndef HOSTS_C
  14. #include "eata_generic.h"
  15. #define VER_MAJOR 0
  16. #define VER_MINOR 0
  17. #define VER_SUB   "1b"
  18. /************************************************************************
  19.  * Here you can switch parts of the code on and of *
  20.  ************************************************************************/
  21. #define VERBOSE_SETUP /* show startup screen of 2001 */
  22. #define ALLOW_DMA_BOARDS 1
  23. /************************************************************************
  24.  * Debug options. * 
  25.  * Enable DEBUG and whichever options you require. *
  26.  ************************************************************************/
  27. #define DEBUG_EATA 1   /* Enable debug code. */
  28. #define DPT_DEBUG 0   /* Bobs special */
  29. #define DBG_DELAY 0   /* Build in delays so debug messages can be
  30.                              * be read before they vanish of the top of
  31.                              * the screen!
  32.                              */
  33. #define DBG_PROBE 0   /* Debug probe routines. */
  34. #define DBG_ISA 0   /* Trace ISA routines */ 
  35. #define DBG_EISA 0   /* Trace EISA routines */ 
  36. #define DBG_PCI 0   /* Trace PCI routines */ 
  37. #define DBG_PIO 0   /* Trace get_config_PIO */
  38. #define DBG_COM 0   /* Trace command call */
  39. #define DBG_QUEUE 0   /* Trace command queueing. */
  40. #define DBG_INTR 0   /* Trace interrupt service routine. */
  41. #define DBG_INTR2 0   /* Trace interrupt service routine. */
  42. #define DBG_PROC 0   /* Debug proc-fs related statistics */
  43. #define DBG_PROC_WRITE 0
  44. #define DBG_REGISTER 0   /* */
  45. #define DBG_ABNORM 1   /* Debug abnormal actions (reset, abort) */
  46. #if DEBUG_EATA 
  47. #define DBG(x, y)   if ((x)) {y;} 
  48. #else
  49. #define DBG(x, y)
  50. #endif
  51. #endif /* !HOSTS_C */
  52. int eata_pio_detect(Scsi_Host_Template *);
  53. const char *eata_pio_info(struct Scsi_Host *);
  54. int eata_pio_command(Scsi_Cmnd *);
  55. int eata_pio_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  56. int eata_pio_abort(Scsi_Cmnd *);
  57. int eata_pio_reset(Scsi_Cmnd *, unsigned int);
  58. int eata_pio_proc_info(char *, char **, off_t, int, int, int);
  59. #ifdef MODULE
  60. int eata_pio_release(struct Scsi_Host *);
  61. #else
  62. #define eata_pio_release NULL  
  63. #endif
  64. #define EATA_PIO {
  65.     proc_info:         eata_pio_proc_info, /* procinfo   */
  66.     name:              "EATA (Extended Attachment) PIO driver",
  67.     detect:            eata_pio_detect,
  68.     release:           eata_pio_release,
  69.     queuecommand:      eata_pio_queue,
  70.     abort:             eata_pio_abort,
  71.     reset:             eata_pio_reset,
  72.     bios_param:        scsicam_bios_param,
  73.     unchecked_isa_dma: 1,     /* True if ISA  */
  74.     use_clustering:    ENABLE_CLUSTERING }
  75. #endif /* _EATA_PIO_H */
  76. /*
  77.  * Overrides for Emacs so that we almost follow Linus's tabbing style.
  78.  * Emacs will notice this stuff at the end of the file and automatically
  79.  * adjust the settings for this buffer only.  This must remain at the end
  80.  * of the file.
  81.  * ---------------------------------------------------------------------------
  82.  * Local variables:
  83.  * c-indent-level: 4
  84.  * c-brace-imaginary-offset: 0
  85.  * c-brace-offset: -4
  86.  * c-argdecl-indent: 4
  87.  * c-label-offset: -4
  88.  * c-continued-statement-offset: 4
  89.  * c-continued-brace-offset: 0
  90.  * tab-width: 8
  91.  * End:
  92.  */