2 * Cumana Generic NCR5380 driver defines
4 * Copyright 1993, Drew Eckhardt
6 * (Unix and Linux consulting and custom programming)
12 * For more information, please consult
15 * SCSI Protocol Controller
18 * NCR Microelectronics
19 * 1635 Aeroplaza Drive
20 * Colorado Springs, CO 80916
26 * $Log: cumana_NCR5380.h,v $
32 #define MACSCSI_PUBLIC_RELEASE 2
35 int macscsi_abort (Scsi_Cmnd *);
36 int macscsi_detect (Scsi_Host_Template *);
37 int macscsi_release (struct Scsi_Host *);
38 const char *macscsi_info (struct Scsi_Host *);
39 int macscsi_reset(Scsi_Cmnd *, unsigned int);
40 int macscsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
41 int macscsi_proc_info (char *buffer, char **start, off_t offset,
42 int length, int hostno, int inout);
57 #define SG_TABLESIZE SG_NONE
60 #ifndef USE_TAGGED_QUEUING
61 #define USE_TAGGED_QUEUING 0
64 #include <scsi/scsicam.h>
66 #define MAC_NCR5380 { \
67 proc_name: "Mac5380", \
68 proc_info: macscsi_proc_info, \
69 name: "Macintosh NCR5380 SCSI", \
70 detect: macscsi_detect, \
71 release: macscsi_release, /* Release */ \
73 queuecommand: macscsi_queue_command, \
74 abort: macscsi_abort, \
75 reset: macscsi_reset, \
76 bios_param: scsicam_bios_param, /* biosparam */ \
77 can_queue: CAN_QUEUE, /* can queue */ \
78 this_id: 7, /* id */ \
79 sg_tablesize: SG_ALL, /* sg_tablesize */ \
80 cmd_per_lun: CMD_PER_LUN, /* cmd per lun */ \
81 unchecked_isa_dma: 0, /* unchecked_isa_dma */ \
82 use_clustering: DISABLE_CLUSTERING \
87 #define NCR5380_implementation_fields \
90 #define NCR5380_local_declare() \
91 struct Scsi_Host *_instance
93 #define NCR5380_setup(instance) \
96 #define NCR5380_read(reg) macscsi_read(_instance, reg)
97 #define NCR5380_write(reg, value) macscsi_write(_instance, reg, value)
99 #define NCR5380_pread macscsi_pread
100 #define NCR5380_pwrite macscsi_pwrite
102 #define NCR5380_intr macscsi_intr
103 #define NCR5380_queue_command macscsi_queue_command
104 #define NCR5380_abort macscsi_abort
105 #define NCR5380_reset macscsi_reset
106 #define NCR5380_proc_info macscsi_proc_info
108 #define BOARD_NORMAL 0
109 #define BOARD_NCR53C400 1
111 #endif /* ndef HOSTS_C */
112 #endif /* ndef ASM */
113 #endif /* MAC_NCR5380_H */