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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * Cumana Generic NCR5380 driver defines
  3.  *
  4.  * Copyright 1993, Drew Eckhardt
  5.  * Visionary Computing
  6.  * (Unix and Linux consulting and custom programming)
  7.  * drew@colorado.edu
  8.  *      +1 (303) 440-4894
  9.  *
  10.  * ALPHA RELEASE 1.
  11.  *
  12.  * For more information, please consult
  13.  *
  14.  * NCR 5380 Family
  15.  * SCSI Protocol Controller
  16.  * Databook
  17.  *
  18.  * NCR Microelectronics
  19.  * 1635 Aeroplaza Drive
  20.  * Colorado Springs, CO 80916
  21.  * 1+ (719) 578-3400
  22.  * 1+ (800) 334-5454
  23.  */
  24. /*
  25.  * $Log: cumana_NCR5380.h,v $
  26.  */
  27. #ifndef MAC_NCR5380_H
  28. #define MAC_NCR5380_H
  29. #define MACSCSI_PUBLIC_RELEASE 1
  30. #ifndef ASM
  31. int macscsi_abort (Scsi_Cmnd *);
  32. int macscsi_detect (Scsi_Host_Template *);
  33. int macscsi_release (struct Scsi_Host *);
  34. const char *macscsi_info (struct Scsi_Host *);
  35. int macscsi_reset(Scsi_Cmnd *, unsigned int);
  36. int macscsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  37. int macscsi_proc_info (char *buffer, char **start, off_t offset,
  38. int length, int hostno, int inout);
  39. #ifndef NULL
  40. #define NULL 0
  41. #endif
  42. #ifndef CMD_PER_LUN
  43. #define CMD_PER_LUN 2
  44. #endif
  45. #ifndef CAN_QUEUE
  46. #define CAN_QUEUE 16
  47. #endif
  48. #ifndef SG_TABLESIZE
  49. #define SG_TABLESIZE SG_NONE
  50. #endif
  51. #ifndef USE_TAGGED_QUEUING
  52. #define USE_TAGGED_QUEUING 0
  53. #endif
  54. #include <scsi/scsicam.h>
  55. #define MAC_NCR5380 {
  56. name: "Macintosh NCR5380 SCSI",
  57. detect: macscsi_detect,
  58. release: macscsi_release, /* Release */
  59. info: macscsi_info,
  60. queuecommand: macscsi_queue_command,
  61. abort: macscsi_abort,  
  62. reset: macscsi_reset,
  63. bios_param: scsicam_bios_param, /* biosparam */
  64. can_queue: CAN_QUEUE, /* can queue */
  65. this_id: 7, /* id */
  66. sg_tablesize: SG_ALL, /* sg_tablesize */
  67. cmd_per_lun: CMD_PER_LUN, /* cmd per lun */
  68. unchecked_isa_dma: 0, /* unchecked_isa_dma */
  69. use_clustering: DISABLE_CLUSTERING
  70. }
  71. #ifndef HOSTS_C
  72. #define NCR5380_implementation_fields 
  73.     int port, ctrl
  74. #define NCR5380_local_declare() 
  75.         struct Scsi_Host *_instance
  76. #define NCR5380_setup(instance) 
  77.         _instance = instance
  78. #define NCR5380_read(reg) macscsi_read(_instance, reg)
  79. #define NCR5380_write(reg, value) macscsi_write(_instance, reg, value)
  80. #define NCR5380_intr macscsi_intr
  81. #define NCR5380_queue_command macscsi_queue_command
  82. #define NCR5380_abort macscsi_abort
  83. #define NCR5380_reset macscsi_reset
  84. #define NCR5380_proc_info macscsi_proc_info
  85. #define BOARD_NORMAL 0
  86. #define BOARD_NCR53C400 1
  87. #endif /* ndef HOSTS_C */
  88. #endif /* ndef ASM */
  89. #endif /* MAC_NCR5380_H */