aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mac_scsi.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/scsi/mac_scsi.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/scsi/mac_scsi.h')
-rw-r--r--drivers/scsi/mac_scsi.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/drivers/scsi/mac_scsi.h b/drivers/scsi/mac_scsi.h
new file mode 100644
index 000000000000..23ab2c18a016
--- /dev/null
+++ b/drivers/scsi/mac_scsi.h
@@ -0,0 +1,85 @@
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/*
26 * $Log: cumana_NCR5380.h,v $
27 */
28
29#ifndef MAC_NCR5380_H
30#define MAC_NCR5380_H
31
32#define MACSCSI_PUBLIC_RELEASE 2
33
34#ifndef ASM
35
36#ifndef CMD_PER_LUN
37#define CMD_PER_LUN 2
38#endif
39
40#ifndef CAN_QUEUE
41#define CAN_QUEUE 16
42#endif
43
44#ifndef SG_TABLESIZE
45#define SG_TABLESIZE SG_NONE
46#endif
47
48#ifndef USE_TAGGED_QUEUING
49#define USE_TAGGED_QUEUING 0
50#endif
51
52#include <scsi/scsicam.h>
53
54#ifndef HOSTS_C
55
56#define NCR5380_implementation_fields \
57 int port, ctrl
58
59#define NCR5380_local_declare() \
60 struct Scsi_Host *_instance
61
62#define NCR5380_setup(instance) \
63 _instance = instance
64
65#define NCR5380_read(reg) macscsi_read(_instance, reg)
66#define NCR5380_write(reg, value) macscsi_write(_instance, reg, value)
67
68#define NCR5380_pread macscsi_pread
69#define NCR5380_pwrite macscsi_pwrite
70
71#define NCR5380_intr macscsi_intr
72#define NCR5380_queue_command macscsi_queue_command
73#define NCR5380_abort macscsi_abort
74#define NCR5380_bus_reset macscsi_bus_reset
75#define NCR5380_device_reset macscsi_device_reset
76#define NCR5380_host_reset macscsi_host_reset
77#define NCR5380_proc_info macscsi_proc_info
78
79#define BOARD_NORMAL 0
80#define BOARD_NCR53C400 1
81
82#endif /* ndef HOSTS_C */
83#endif /* ndef ASM */
84#endif /* MAC_NCR5380_H */
85