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_1.h,v $
27 * Revision 1.1 1998/02/23 02:45:22 davem
32 #ifndef CUMANA_NCR5380_H
33 #define CUMANA_NCR5380_H
35 #define CUMANASCSI_PUBLIC_RELEASE 1
39 int cumanascsi_abort (Scsi_Cmnd
*);
40 int cumanascsi_detect (Scsi_Host_Template
*);
41 int cumanascsi_release (struct Scsi_Host
*);
42 const char *cumanascsi_info (struct Scsi_Host
*);
43 int cumanascsi_reset(Scsi_Cmnd
*, unsigned int);
44 int cumanascsi_queue_command (Scsi_Cmnd
*, void (*done
)(Scsi_Cmnd
*));
45 int cumanascsi_proc_info (char *buffer
, char **start
, off_t offset
,
46 int length
, int hostno
, int inout
);
60 #include <scsi/scsicam.h>
62 #define CUMANA_NCR5380 { \
63 name: "Cumana 16-bit SCSI", \
64 detect: cumanascsi_detect, \
65 release: cumanascsi_release, /* Release */ \
66 info: cumanascsi_info, \
67 queuecommand: cumanascsi_queue_command, \
68 abort: cumanascsi_abort, \
69 reset: cumanascsi_reset, \
70 bios_param: scsicam_bios_param, /* biosparam */ \
71 can_queue: CAN_QUEUE, /* can queue */ \
72 this_id: 7, /* id */ \
73 sg_tablesize: SG_ALL, /* sg_tablesize */ \
74 cmd_per_lun: CMD_PER_LUN, /* cmd per lun */ \
75 unchecked_isa_dma: 0, /* unchecked_isa_dma */ \
76 use_clustering: DISABLE_CLUSTERING \
81 #define NCR5380_implementation_fields \
84 #define NCR5380_local_declare() \
85 struct Scsi_Host *_instance
87 #define NCR5380_setup(instance) \
90 #define NCR5380_read(reg) cumanascsi_read(_instance, reg)
91 #define NCR5380_write(reg, value) cumanascsi_write(_instance, reg, value)
93 #define do_NCR5380_intr do_cumanascsi_intr
94 #define NCR5380_queue_command cumanascsi_queue_command
95 #define NCR5380_abort cumanascsi_abort
96 #define NCR5380_reset cumanascsi_reset
97 #define NCR5380_proc_info cumanascsi_proc_info
99 #define BOARD_NORMAL 0
100 #define BOARD_NCR53C400 1
102 #endif /* ndef HOSTS_C */
103 #endif /* ndef ASM */
104 #endif /* CUMANA_NCR5380_H */