diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/scsi/ultrastor.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/ultrastor.h')
-rw-r--r-- | drivers/scsi/ultrastor.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/drivers/scsi/ultrastor.h b/drivers/scsi/ultrastor.h new file mode 100644 index 000000000000..0a0f8df9e871 --- /dev/null +++ b/drivers/scsi/ultrastor.h | |||
@@ -0,0 +1,79 @@ | |||
1 | /* | ||
2 | * ultrastor.c (C) 1991 David B. Gentzel | ||
3 | * Low-level scsi driver for UltraStor 14F | ||
4 | * by David B. Gentzel, Whitfield Software Services, Carnegie, PA | ||
5 | * (gentzel@nova.enet.dec.com) | ||
6 | * scatter/gather added by Scott Taylor (n217cg@tamuts.tamu.edu) | ||
7 | * 24F support by John F. Carr (jfc@athena.mit.edu) | ||
8 | * John's work modified by Caleb Epstein (cae@jpmorgan.com) and | ||
9 | * Eric Youngdale (eric@tantalus.nrl.navy.mil). | ||
10 | * Thanks to UltraStor for providing the necessary documentation | ||
11 | */ | ||
12 | |||
13 | #ifndef _ULTRASTOR_H | ||
14 | #define _ULTRASTOR_H | ||
15 | |||
16 | static int ultrastor_detect(Scsi_Host_Template *); | ||
17 | static const char *ultrastor_info(struct Scsi_Host * shpnt); | ||
18 | static int ultrastor_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); | ||
19 | static int ultrastor_abort(Scsi_Cmnd *); | ||
20 | static int ultrastor_host_reset(Scsi_Cmnd *); | ||
21 | static int ultrastor_biosparam(struct scsi_device *, struct block_device *, sector_t, int *); | ||
22 | |||
23 | |||
24 | #define ULTRASTOR_14F_MAX_SG 16 | ||
25 | #define ULTRASTOR_24F_MAX_SG 33 | ||
26 | |||
27 | #define ULTRASTOR_MAX_CMDS_PER_LUN 5 | ||
28 | #define ULTRASTOR_MAX_CMDS 16 | ||
29 | |||
30 | #define ULTRASTOR_24F_PORT 0xC80 | ||
31 | |||
32 | |||
33 | #ifdef ULTRASTOR_PRIVATE | ||
34 | |||
35 | #define UD_ABORT 0x0001 | ||
36 | #define UD_COMMAND 0x0002 | ||
37 | #define UD_DETECT 0x0004 | ||
38 | #define UD_INTERRUPT 0x0008 | ||
39 | #define UD_RESET 0x0010 | ||
40 | #define UD_MULTI_CMD 0x0020 | ||
41 | #define UD_CSIR 0x0040 | ||
42 | #define UD_ERROR 0x0080 | ||
43 | |||
44 | /* #define PORT_OVERRIDE 0x330 */ | ||
45 | |||
46 | /* Values for the PRODUCT_ID ports for the 14F */ | ||
47 | #define US14F_PRODUCT_ID_0 0x56 | ||
48 | #define US14F_PRODUCT_ID_1 0x40 /* NOTE: Only upper nibble is used */ | ||
49 | |||
50 | #define US24F_PRODUCT_ID_0 0x56 | ||
51 | #define US24F_PRODUCT_ID_1 0x63 | ||
52 | #define US24F_PRODUCT_ID_2 0x02 | ||
53 | |||
54 | /* Subversion values */ | ||
55 | #define U14F 0 | ||
56 | #define U34F 1 | ||
57 | |||
58 | /* MSCP field values */ | ||
59 | |||
60 | /* Opcode */ | ||
61 | #define OP_HOST_ADAPTER 0x1 | ||
62 | #define OP_SCSI 0x2 | ||
63 | #define OP_RESET 0x4 | ||
64 | |||
65 | /* Date Transfer Direction */ | ||
66 | #define DTD_SCSI 0x0 | ||
67 | #define DTD_IN 0x1 | ||
68 | #define DTD_OUT 0x2 | ||
69 | #define DTD_NONE 0x3 | ||
70 | |||
71 | /* Host Adapter command subcodes */ | ||
72 | #define HA_CMD_INQUIRY 0x1 | ||
73 | #define HA_CMD_SELF_DIAG 0x2 | ||
74 | #define HA_CMD_READ_BUFF 0x3 | ||
75 | #define HA_CMD_WRITE_BUFF 0x4 | ||
76 | |||
77 | #endif | ||
78 | |||
79 | #endif | ||