mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 20:16:44 +07:00
0db7157ca4
Fix up two drivers that incorrectly were using the old return values for their new-style EH methods and kill off scsi_obsolete.h that defined the constants. The initio driver has all these constansts defined locally and uses them internally, I'll fix that up some time later. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
/*
|
|
* scsi.h Copyright (C) 1992 Drew Eckhardt
|
|
* Copyright (C) 1993, 1994, 1995, 1998, 1999 Eric Youngdale
|
|
* generic SCSI package header file by
|
|
* Initial versions: Drew Eckhardt
|
|
* Subsequent revisions: Eric Youngdale
|
|
*
|
|
* <drew@colorado.edu>
|
|
*
|
|
* Modified by Eric Youngdale eric@andante.org to
|
|
* 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 <linux/config.h> /* for CONFIG_SCSI_LOGGING */
|
|
|
|
#include <scsi/scsi_cmnd.h>
|
|
#include <scsi/scsi_device.h>
|
|
#include <scsi/scsi_eh.h>
|
|
#include <scsi/scsi_request.h>
|
|
#include <scsi/scsi_tcq.h>
|
|
#include <scsi/scsi.h>
|
|
|
|
/*
|
|
* Some defs, in case these are not defined elsewhere.
|
|
*/
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
struct Scsi_Host;
|
|
struct scsi_cmnd;
|
|
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))
|
|
|
|
/* obsolete typedef junk. */
|
|
#include "scsi_typedefs.h"
|
|
|
|
#endif /* _SCSI_H */
|