Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
aiclib.h File Reference

Go to the source code of this file.

Data Structures

struct  scsi_sense
 
struct  scsi_sense_data
 

Macros

#define SCSI_REV_0   0
 
#define SCSI_REV_CCS   1
 
#define SCSI_REV_2   2
 
#define SCSI_REV_SPC   3
 
#define SCSI_REV_SPC2   4
 
#define SSD_ERRCODE   0x7F
 
#define SSD_CURRENT_ERROR   0x70
 
#define SSD_DEFERRED_ERROR   0x71
 
#define SSD_ERRCODE_VALID   0x80
 
#define SSD_KEY   0x0F
 
#define SSD_KEY_NO_SENSE   0x00
 
#define SSD_KEY_RECOVERED_ERROR   0x01
 
#define SSD_KEY_NOT_READY   0x02
 
#define SSD_KEY_MEDIUM_ERROR   0x03
 
#define SSD_KEY_HARDWARE_ERROR   0x04
 
#define SSD_KEY_ILLEGAL_REQUEST   0x05
 
#define SSD_KEY_UNIT_ATTENTION   0x06
 
#define SSD_KEY_DATA_PROTECT   0x07
 
#define SSD_KEY_BLANK_CHECK   0x08
 
#define SSD_KEY_Vendor_Specific   0x09
 
#define SSD_KEY_COPY_ABORTED   0x0a
 
#define SSD_KEY_ABORTED_COMMAND   0x0b
 
#define SSD_KEY_EQUAL   0x0c
 
#define SSD_KEY_VOLUME_OVERFLOW   0x0d
 
#define SSD_KEY_MISCOMPARE   0x0e
 
#define SSD_KEY_RESERVED   0x0f
 
#define SSD_ILI   0x20
 
#define SSD_EOM   0x40
 
#define SSD_FILEMARK   0x80
 
#define SSD_SCS_VALID   0x80
 
#define SSD_FIELDPTR_CMD   0x40
 
#define SSD_BITPTR_VALID   0x08
 
#define SSD_BITPTR_VALUE   0x07
 
#define SSD_MIN_SIZE   18
 
#define SSD_FULL_SIZE   sizeof(struct scsi_sense_data)
 
#define SCSI_STATUS_OK   0x00
 
#define SCSI_STATUS_CHECK_COND   0x02
 
#define SCSI_STATUS_COND_MET   0x04
 
#define SCSI_STATUS_BUSY   0x08
 
#define SCSI_STATUS_INTERMED   0x10
 
#define SCSI_STATUS_INTERMED_COND_MET   0x14
 
#define SCSI_STATUS_RESERV_CONFLICT   0x18
 
#define SCSI_STATUS_CMD_TERMINATED   0x22 /* Obsolete in SAM-2 */
 
#define SCSI_STATUS_QUEUE_FULL   0x28
 
#define SCSI_STATUS_ACA_ACTIVE   0x30
 
#define SCSI_STATUS_TASK_ABORTED   0x40
 
#define GETID(v, s)   (unsigned)(((v) >> (s)) & 0xFFFF ?: PCI_ANY_ID)
 
#define ID_C(x, c)
 
#define ID2C(x)
 
#define IDIROC(x)   ((x) | ~ID_ALL_IROC_MASK)
 
#define ID16(x)
 

Macro Definition Documentation

#define GETID (   v,
  s 
)    (unsigned)(((v) >> (s)) & 0xFFFF ?: PCI_ANY_ID)

Definition at line 158 of file aiclib.h.

#define ID16 (   x)
Value:
ID(x), \
ID((x) | 0x0001000000000000ull), \
ID((x) | 0x0002000000000000ull), \
ID((x) | 0x0003000000000000ull), \
ID((x) | 0x0004000000000000ull), \
ID((x) | 0x0005000000000000ull), \
ID((x) | 0x0006000000000000ull), \
ID((x) | 0x0007000000000000ull), \
ID((x) | 0x0008000000000000ull), \
ID((x) | 0x0009000000000000ull), \
ID((x) | 0x000A000000000000ull), \
ID((x) | 0x000B000000000000ull), \
ID((x) | 0x000C000000000000ull), \
ID((x) | 0x000D000000000000ull), \
ID((x) | 0x000E000000000000ull), \
ID((x) | 0x000F000000000000ull)

Definition at line 177 of file aiclib.h.

#define ID2C (   x)
Value:

Definition at line 166 of file aiclib.h.

#define ID_C (   x,
  c 
)
Value:
{ \
GETID(x,32), GETID(x,48), GETID(x,0), GETID(x,16), \
(c) << 8, 0xFFFF00, 0 \
}

Definition at line 160 of file aiclib.h.

#define IDIROC (   x)    ((x) | ~ID_ALL_IROC_MASK)

Definition at line 170 of file aiclib.h.

#define SCSI_REV_0   0

Definition at line 69 of file aiclib.h.

#define SCSI_REV_2   2

Definition at line 71 of file aiclib.h.

#define SCSI_REV_CCS   1

Definition at line 70 of file aiclib.h.

#define SCSI_REV_SPC   3

Definition at line 72 of file aiclib.h.

#define SCSI_REV_SPC2   4

Definition at line 73 of file aiclib.h.

#define SCSI_STATUS_ACA_ACTIVE   0x30

Definition at line 132 of file aiclib.h.

#define SCSI_STATUS_BUSY   0x08

Definition at line 126 of file aiclib.h.

#define SCSI_STATUS_CHECK_COND   0x02

Definition at line 124 of file aiclib.h.

#define SCSI_STATUS_CMD_TERMINATED   0x22 /* Obsolete in SAM-2 */

Definition at line 130 of file aiclib.h.

#define SCSI_STATUS_COND_MET   0x04

Definition at line 125 of file aiclib.h.

#define SCSI_STATUS_INTERMED   0x10

Definition at line 127 of file aiclib.h.

#define SCSI_STATUS_INTERMED_COND_MET   0x14

Definition at line 128 of file aiclib.h.

#define SCSI_STATUS_OK   0x00

Definition at line 123 of file aiclib.h.

#define SCSI_STATUS_QUEUE_FULL   0x28

Definition at line 131 of file aiclib.h.

#define SCSI_STATUS_RESERV_CONFLICT   0x18

Definition at line 129 of file aiclib.h.

#define SCSI_STATUS_TASK_ABORTED   0x40

Definition at line 133 of file aiclib.h.

#define SSD_BITPTR_VALID   0x08

Definition at line 113 of file aiclib.h.

#define SSD_BITPTR_VALUE   0x07

Definition at line 114 of file aiclib.h.

#define SSD_CURRENT_ERROR   0x70

Definition at line 79 of file aiclib.h.

#define SSD_DEFERRED_ERROR   0x71

Definition at line 80 of file aiclib.h.

#define SSD_EOM   0x40

Definition at line 102 of file aiclib.h.

#define SSD_ERRCODE   0x7F

Definition at line 78 of file aiclib.h.

#define SSD_ERRCODE_VALID   0x80

Definition at line 81 of file aiclib.h.

#define SSD_FIELDPTR_CMD   0x40

Definition at line 112 of file aiclib.h.

#define SSD_FILEMARK   0x80

Definition at line 103 of file aiclib.h.

#define SSD_FULL_SIZE   sizeof(struct scsi_sense_data)

Definition at line 117 of file aiclib.h.

#define SSD_ILI   0x20

Definition at line 101 of file aiclib.h.

#define SSD_KEY   0x0F

Definition at line 84 of file aiclib.h.

#define SSD_KEY_ABORTED_COMMAND   0x0b

Definition at line 96 of file aiclib.h.

#define SSD_KEY_BLANK_CHECK   0x08

Definition at line 93 of file aiclib.h.

#define SSD_KEY_COPY_ABORTED   0x0a

Definition at line 95 of file aiclib.h.

#define SSD_KEY_DATA_PROTECT   0x07

Definition at line 92 of file aiclib.h.

#define SSD_KEY_EQUAL   0x0c

Definition at line 97 of file aiclib.h.

#define SSD_KEY_HARDWARE_ERROR   0x04

Definition at line 89 of file aiclib.h.

#define SSD_KEY_ILLEGAL_REQUEST   0x05

Definition at line 90 of file aiclib.h.

#define SSD_KEY_MEDIUM_ERROR   0x03

Definition at line 88 of file aiclib.h.

#define SSD_KEY_MISCOMPARE   0x0e

Definition at line 99 of file aiclib.h.

#define SSD_KEY_NO_SENSE   0x00

Definition at line 85 of file aiclib.h.

#define SSD_KEY_NOT_READY   0x02

Definition at line 87 of file aiclib.h.

#define SSD_KEY_RECOVERED_ERROR   0x01

Definition at line 86 of file aiclib.h.

#define SSD_KEY_RESERVED   0x0f

Definition at line 100 of file aiclib.h.

#define SSD_KEY_UNIT_ATTENTION   0x06

Definition at line 91 of file aiclib.h.

#define SSD_KEY_Vendor_Specific   0x09

Definition at line 94 of file aiclib.h.

#define SSD_KEY_VOLUME_OVERFLOW   0x0d

Definition at line 98 of file aiclib.h.

#define SSD_MIN_SIZE   18

Definition at line 115 of file aiclib.h.

#define SSD_SCS_VALID   0x80

Definition at line 111 of file aiclib.h.