aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/atp870u.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/atp870u.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/atp870u.h')
-rw-r--r--drivers/scsi/atp870u.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/drivers/scsi/atp870u.h b/drivers/scsi/atp870u.h
new file mode 100644
index 000000000000..89f43af39cf2
--- /dev/null
+++ b/drivers/scsi/atp870u.h
@@ -0,0 +1,66 @@
1#ifndef _ATP870U_H
2#define _ATP870U_H
3
4#include <linux/types.h>
5#include <linux/kdev_t.h>
6
7/* I/O Port */
8
9#define MAX_CDB 12
10#define MAX_SENSE 14
11#define qcnt 32
12#define ATP870U_SCATTER 128
13#define ATP870U_CMDLUN 1
14
15#define MAX_ADAPTER 8
16#define MAX_SCSI_ID 16
17#define ATP870U_MAX_SECTORS 128
18
19#define ATP885_DEVID 0x808A
20#define ATP880_DEVID1 0x8080
21#define ATP880_DEVID2 0x8081
22
23//#define ED_DBGP
24
25struct atp_unit
26{
27 unsigned long baseport;
28 unsigned long ioport[2];
29 unsigned long pciport[2];
30 unsigned long irq;
31 unsigned char last_cmd[2];
32 unsigned char in_snd[2];
33 unsigned char in_int[2];
34 unsigned char quhd[2];
35 unsigned char quend[2];
36 unsigned char global_map[2];
37 unsigned char chip_ver;
38 unsigned char scam_on;
39 unsigned char host_id[2];
40 unsigned int working[2];
41 unsigned short wide_id[2];
42 unsigned short active_id[2];
43 unsigned short ultra_map[2];
44 unsigned short async[2];
45 unsigned short dev_id;
46 unsigned char sp[2][16];
47 unsigned char r1f[2][16];
48 struct scsi_cmnd *quereq[2][qcnt];
49 struct atp_id
50 {
51 unsigned char dirct;
52 unsigned char devsp;
53 unsigned char devtype;
54 unsigned long tran_len;
55 unsigned long last_len;
56 unsigned char *prd_pos;
57 unsigned char *prd_table;
58 dma_addr_t prdaddr;
59 struct scsi_cmnd *curr_req;
60 } id[2][16];
61 struct Scsi_Host *host;
62 struct pci_dev *pdev;
63 unsigned int unit;
64};
65
66#endif