X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Fscsi.h;h=d5a55fae60e0370f46ed4f43a89a784a7f587a30;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=fd5c8a38107a0ee3b6ad516d1cac6b21baefce76;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/scsi/scsi.h b/drivers/scsi/scsi.h index fd5c8a381..d5a55fae6 100644 --- a/drivers/scsi/scsi.h +++ b/drivers/scsi/scsi.h @@ -11,16 +11,18 @@ * add scatter-gather, multiple outstanding request, and other * enhancements. */ +/* + * NOTE: this file only contains compatibility glue for old drivers. All + * these wrappers will be removed sooner or later. For new code please use + * the interfaces declared in the headers in include/scsi/ + */ #ifndef _SCSI_H #define _SCSI_H -#include /* for CONFIG_SCSI_LOGGING */ - #include #include #include -#include #include #include @@ -34,54 +36,12 @@ #define FALSE 0 #endif -#ifdef DEBUG -#define SCSI_TIMEOUT (5*HZ) -#else -#define SCSI_TIMEOUT (2*HZ) -#endif - struct Scsi_Host; struct scsi_cmnd; struct scsi_device; struct scsi_target; struct scatterlist; -/* - * Prototypes for functions in constants.c - * Some of these used to live in constants.h - */ -extern void print_Scsi_Cmnd(struct scsi_cmnd *); -extern void print_command(unsigned char *); -extern void print_sense(const char *, struct scsi_cmnd *); -extern void print_req_sense(const char *, struct scsi_request *); -extern void print_driverbyte(int scsiresult); -extern void print_hostbyte(int scsiresult); -extern void print_status(unsigned char status); -extern int print_msg(const unsigned char *); -extern const char *scsi_sense_key_string(unsigned char); -extern const char *scsi_extd_sense_format(unsigned char, unsigned char); - -/* - * Legacy dma direction interfaces. - * - * This assumes the pci/sbus dma mapping flags have the same numercial - * values as the generic dma-mapping ones. Currently they have but there's - * no way to check. Better don't use these interfaces! - */ -#define SCSI_DATA_UNKNOWN (DMA_BIDIRECTIONAL) -#define SCSI_DATA_WRITE (DMA_TO_DEVICE) -#define SCSI_DATA_READ (DMA_FROM_DEVICE) -#define SCSI_DATA_NONE (DMA_NONE) - -#define scsi_to_pci_dma_dir(scsi_dir) ((int)(scsi_dir)) -#define scsi_to_sbus_dma_dir(scsi_dir) ((int)(scsi_dir)) - -/* - * This is the crap from the old error handling code. We have it in a special - * place so that we can more easily delete it later on. - */ -#include "scsi_obsolete.h" - /* obsolete typedef junk. */ #include "scsi_typedefs.h"