X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fscsi%2Fscsi.h;h=d5a55fae60e0370f46ed4f43a89a784a7f587a30;hb=7a5d24b1067823e870bf23e62bf8a788bd73818d;hp=cb6b5fbb7e14f3a8bb328d7b25a2b6ef0e728d23;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=~andy%2Flinux diff --git a/drivers/scsi/scsi.h b/drivers/scsi/scsi.h index cb6b5fbb7e1..d5a55fae60e 100644 --- a/drivers/scsi/scsi.h +++ b/drivers/scsi/scsi.h @@ -20,13 +20,9 @@ #ifndef _SCSI_H #define _SCSI_H -#include /* for CONFIG_SCSI_LOGGING */ - #include -#include #include #include -#include #include #include @@ -46,63 +42,6 @@ struct scsi_device; struct scsi_target; struct scatterlist; -/* - * 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)) - -/* - * Old names for debug prettyprinting functions. - */ -static inline void print_Scsi_Cmnd(struct scsi_cmnd *cmd) -{ - return scsi_print_command(cmd); -} -static inline void print_command(unsigned char *cdb) -{ - return __scsi_print_command(cdb); -} -static inline void print_sense(const char *devclass, struct scsi_cmnd *cmd) -{ - return scsi_print_sense(devclass, cmd); -} -static inline void print_req_sense(const char *devclass, struct scsi_request *req) -{ - return scsi_print_req_sense(devclass, req); -} -static inline void print_driverbyte(int scsiresult) -{ - return scsi_print_driverbyte(scsiresult); -} -static inline void print_hostbyte(int scsiresult) -{ - return scsi_print_hostbyte(scsiresult); -} -static inline void print_status(unsigned char status) -{ - return scsi_print_status(status); -} -static inline int print_msg(const unsigned char *msg) -{ - return scsi_print_msg(msg); -} - -/* - * 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"