linux/include/uapi/linux/cciss_defs.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef CCISS_DEFS_H
#define CCISS_DEFS_H

#include <linux/types.h>

/* general boundary definitions */
#define SENSEINFOBYTES

/* Command Status value */
#define CMD_SUCCESS
#define CMD_TARGET_STATUS
#define CMD_DATA_UNDERRUN
#define CMD_DATA_OVERRUN
#define CMD_INVALID
#define CMD_PROTOCOL_ERR
#define CMD_HARDWARE_ERR
#define CMD_CONNECTION_LOST
#define CMD_ABORTED
#define CMD_ABORT_FAILED
#define CMD_UNSOLICITED_ABORT
#define CMD_TIMEOUT
#define CMD_UNABORTABLE

/* transfer direction */
#define XFER_NONE
#define XFER_WRITE
#define XFER_READ
#define XFER_RSVD

/* task attribute */
#define ATTR_UNTAGGED
#define ATTR_SIMPLE
#define ATTR_HEADOFQUEUE
#define ATTR_ORDERED
#define ATTR_ACA

/* cdb type */
#define TYPE_CMD
#define TYPE_MSG

/* Type defs used in the following structs */
#define BYTE
#define WORD
#define HWORD
#define DWORD

#define CISS_MAX_LUN

#define LEVEL2LUN
#define LEVEL3LUN

#pragma pack(1)

/* Command List Structure */
SCSI3Addr_struct;

PhysDevAddr_struct;

LogDevAddr_struct;

LUNAddr_struct;

RequestBlock_struct;

MoreErrInfo_struct;
ErrorInfo_struct;

#pragma pack()

#endif /* CCISS_DEFS_H */