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: mac_scsi.h,v $
27 * Revision 1.1.1.1  2007/08/03 18:52:56  rnuti
28 * Importing Linux MIPS Kernel 2.6.22
29 *
30 */
31
32#ifndef MAC_NCR5380_H
33#define MAC_NCR5380_H
34
35#define MACSCSI_PUBLIC_RELEASE 2
36
37#ifndef ASM
38
39#ifndef CMD_PER_LUN
40#define CMD_PER_LUN 2
41#endif
42
43#ifndef CAN_QUEUE
44#define CAN_QUEUE 16
45#endif
46
47#ifndef SG_TABLESIZE
48#define SG_TABLESIZE SG_NONE
49#endif
50
51#ifndef USE_TAGGED_QUEUING
52#define	USE_TAGGED_QUEUING 0
53#endif
54
55#include <scsi/scsicam.h>
56
57#ifndef HOSTS_C
58
59#define NCR5380_implementation_fields \
60    int port, ctrl
61
62#define NCR5380_local_declare() \
63        struct Scsi_Host *_instance
64
65#define NCR5380_setup(instance) \
66        _instance = instance
67
68#define NCR5380_read(reg) macscsi_read(_instance, reg)
69#define NCR5380_write(reg, value) macscsi_write(_instance, reg, value)
70
71#define NCR5380_pread 	macscsi_pread
72#define NCR5380_pwrite 	macscsi_pwrite
73
74#define NCR5380_intr macscsi_intr
75#define NCR5380_queue_command macscsi_queue_command
76#define NCR5380_abort macscsi_abort
77#define NCR5380_bus_reset macscsi_bus_reset
78#define NCR5380_proc_info macscsi_proc_info
79
80#define BOARD_NORMAL	0
81#define BOARD_NCR53C400	1
82
83#endif /* ndef HOSTS_C */
84#endif /* ndef ASM */
85#endif /* MAC_NCR5380_H */
86