aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/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/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/scsi.h')
-rw-r--r--drivers/scsi/scsi.h109
1 files changed, 109 insertions, 0 deletions
diff --git a/drivers/scsi/scsi.h b/drivers/scsi/scsi.h
new file mode 100644
index 000000000000..cb6b5fbb7e14
--- /dev/null
+++ b/drivers/scsi/scsi.h
@@ -0,0 +1,109 @@
1/*
2 * scsi.h Copyright (C) 1992 Drew Eckhardt
3 * Copyright (C) 1993, 1994, 1995, 1998, 1999 Eric Youngdale
4 * generic SCSI package header file by
5 * Initial versions: Drew Eckhardt
6 * Subsequent revisions: Eric Youngdale
7 *
8 * <drew@colorado.edu>
9 *
10 * Modified by Eric Youngdale eric@andante.org to
11 * add scatter-gather, multiple outstanding request, and other
12 * enhancements.
13 */
14/*
15 * NOTE: this file only contains compatibility glue for old drivers. All
16 * these wrappers will be removed sooner or later. For new code please use
17 * the interfaces declared in the headers in include/scsi/
18 */
19
20#ifndef _SCSI_H
21#define _SCSI_H
22
23#include <linux/config.h> /* for CONFIG_SCSI_LOGGING */
24
25#include <scsi/scsi_cmnd.h>
26#include <scsi/scsi_dbg.h>
27#include <scsi/scsi_device.h>
28#include <scsi/scsi_eh.h>
29#include <scsi/scsi_request.h>
30#include <scsi/scsi_tcq.h>
31#include <scsi/scsi.h>
32
33/*
34 * Some defs, in case these are not defined elsewhere.
35 */
36#ifndef TRUE
37#define TRUE 1
38#endif
39#ifndef FALSE
40#define FALSE 0
41#endif
42
43struct Scsi_Host;
44struct scsi_cmnd;
45struct scsi_device;
46struct scsi_target;
47struct scatterlist;
48
49/*
50 * Legacy dma direction interfaces.
51 *
52 * This assumes the pci/sbus dma mapping flags have the same numercial
53 * values as the generic dma-mapping ones. Currently they have but there's
54 * no way to check. Better don't use these interfaces!
55 */
56#define SCSI_DATA_UNKNOWN (DMA_BIDIRECTIONAL)
57#define SCSI_DATA_WRITE (DMA_TO_DEVICE)
58#define SCSI_DATA_READ (DMA_FROM_DEVICE)
59#define SCSI_DATA_NONE (DMA_NONE)
60
61#define scsi_to_pci_dma_dir(scsi_dir) ((int)(scsi_dir))
62#define scsi_to_sbus_dma_dir(scsi_dir) ((int)(scsi_dir))
63
64/*
65 * Old names for debug prettyprinting functions.
66 */
67static inline void print_Scsi_Cmnd(struct scsi_cmnd *cmd)
68{
69 return scsi_print_command(cmd);
70}
71static inline void print_command(unsigned char *cdb)
72{
73 return __scsi_print_command(cdb);
74}
75static inline void print_sense(const char *devclass, struct scsi_cmnd *cmd)
76{
77 return scsi_print_sense(devclass, cmd);
78}
79static inline void print_req_sense(const char *devclass, struct scsi_request *req)
80{
81 return scsi_print_req_sense(devclass, req);
82}
83static inline void print_driverbyte(int scsiresult)
84{
85 return scsi_print_driverbyte(scsiresult);
86}
87static inline void print_hostbyte(int scsiresult)
88{
89 return scsi_print_hostbyte(scsiresult);
90}
91static inline void print_status(unsigned char status)
92{
93 return scsi_print_status(status);
94}
95static inline int print_msg(const unsigned char *msg)
96{
97 return scsi_print_msg(msg);
98}
99
100/*
101 * This is the crap from the old error handling code. We have it in a special
102 * place so that we can more easily delete it later on.
103 */
104#include "scsi_obsolete.h"
105
106/* obsolete typedef junk. */
107#include "scsi_typedefs.h"
108
109#endif /* _SCSI_H */