FreeBSD kernel pms device code
sm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  smContext_t
 
struct  smLUN_t
 
struct  smIniScsiCmnd_t
 
struct  smMem_t
 
struct  smMemoryRequirement_t
 
struct  smSgl_t
 
struct  smDif
 
struct  smEncryptDek
 
struct  smEncrypt
 
struct  smScsiInitiatorRequest
 
struct  smSuperScsiInitiatorRequest
 
struct  smSenseData_t
 
struct  smSwConfig_t
 

Macros

#define SM_CACHED_MEM   0x00
 
#define SM_DMA_MEM   0x01
 
#define SM_CACHED_DMA_MEM   0x02
 
#define SM_SCSI_INITIATOR_DIF   0x00000001
 
#define SM_SCSI_INITIATOR_ENCRYPT   0x00000002
 
#define SM_SCSI_TARGET_DIF   0x00000001
 
#define SM_SCSI_TARGET_MIRROR   0x00000002
 
#define SM_SCSI_TARGET_ENCRYPT   0x00000004
 
#define SM_NUM_MEM_CHUNKS   8
 
#define DIF_INSERT   0
 
#define DIF_VERIFY_FORWARD   1
 
#define DIF_VERIFY_DELETE   2
 
#define DIF_VERIFY_REPLACE   3
 
#define DIF_VERIFY_UDT_REPLACE_CRC   5
 
#define DIF_REPLACE_UDT_REPLACE_CRC   7
 
#define DIF_UDT_SIZE   6
 
#define smBOOLEAN   bit32
 

Typedefs

typedef smContext_t smDeviceHandle_t
 
typedef smContext_t smIORequest_t
 
typedef smContext_t smRoot_t
 
typedef struct smDif smDif_t
 
typedef struct smEncryptDek smEncryptDek_t
 
typedef struct smEncrypt smEncrypt_t
 
typedef struct smScsiInitiatorRequest smScsiInitiatorRequest_t
 
typedef struct smSuperScsiInitiatorRequest smSuperScsiInitiatorRequest_t
 

Enumerations

enum  smStatus_t {
  SM_RC_SUCCESS , SM_RC_FAILURE , SM_RC_BUSY , SM_RC_NODEVICE ,
  SM_RC_VERSION_INCOMPATIBLE , SM_RC_VERSION_UNTESTED , SM_RC_RSV1 , SM_RC_RSV2 ,
  SM_RC_RSV3 , SM_RC_RSV4 , SM_RC_DEVICE_BUSY
}
 
enum  smIOStatus_t {
  smIOSuccess , smIOOverRun , smIOUnderRun , smIOFailed ,
  smIODifError , smIOEncryptError , smIORetry , smIOSTPResourceBusy
}
 
enum  smIOStatusDetail_t {
  smDetailBusy , smDetailNotValid , smDetailNoLogin , smDetailAbortLogin ,
  smDetailAbortReset , smDetailAborted , smDetailDifMismatch , smDetailDifAppTagMismatch ,
  smDetailDifRefTagMismatch , smDetailDifCrcMismatch , smDetailDekKeyCacheMiss , smDetailCipherModeInvalid ,
  smDetailDekIVMismatch , smDetailDekRamInterfaceError , smDetailDekIndexOutofBounds , smDetailOtherError
}
 
enum  smDataDirection_t { smDirectionIn = 0x0000 , smDirectionOut = 0x0001 }
 
enum  smIntrEventType_t {
  smIntrEventTypeCnxError , smIntrEventTypeDiscovery , smIntrEventTypeTransportRecovery , smIntrEventTypeTaskManagement ,
  smIntrEventTypeDeviceChange , smIntrEventTypeLogin , smIntrEventTypeLocalAbort
}
 
enum  smTMEventStatus_t { smTMOK , smTMFailed }
 

Macro Definition Documentation

◆ DIF_INSERT

#define DIF_INSERT   0

Definition at line 194 of file sm.h.

◆ DIF_REPLACE_UDT_REPLACE_CRC

#define DIF_REPLACE_UDT_REPLACE_CRC   7

Definition at line 199 of file sm.h.

◆ DIF_UDT_SIZE

#define DIF_UDT_SIZE   6

Definition at line 201 of file sm.h.

◆ DIF_VERIFY_DELETE

#define DIF_VERIFY_DELETE   2

Definition at line 196 of file sm.h.

◆ DIF_VERIFY_FORWARD

#define DIF_VERIFY_FORWARD   1

Definition at line 195 of file sm.h.

◆ DIF_VERIFY_REPLACE

#define DIF_VERIFY_REPLACE   3

Definition at line 197 of file sm.h.

◆ DIF_VERIFY_UDT_REPLACE_CRC

#define DIF_VERIFY_UDT_REPLACE_CRC   5

Definition at line 198 of file sm.h.

◆ SM_CACHED_DMA_MEM

#define SM_CACHED_DMA_MEM   0x02

CACHED DMA memory type

Definition at line 41 of file sm.h.

◆ SM_CACHED_MEM

#define SM_CACHED_MEM   0x00

CACHED memory type

Definition at line 39 of file sm.h.

◆ SM_DMA_MEM

#define SM_DMA_MEM   0x01

DMA memory type

Definition at line 40 of file sm.h.

◆ SM_NUM_MEM_CHUNKS

#define SM_NUM_MEM_CHUNKS   8

Definition at line 177 of file sm.h.

◆ SM_SCSI_INITIATOR_DIF

#define SM_SCSI_INITIATOR_DIF   0x00000001

Definition at line 127 of file sm.h.

◆ SM_SCSI_INITIATOR_ENCRYPT

#define SM_SCSI_INITIATOR_ENCRYPT   0x00000002

Definition at line 128 of file sm.h.

◆ SM_SCSI_TARGET_DIF

#define SM_SCSI_TARGET_DIF   0x00000001

Definition at line 133 of file sm.h.

◆ SM_SCSI_TARGET_ENCRYPT

#define SM_SCSI_TARGET_ENCRYPT   0x00000004

Definition at line 135 of file sm.h.

◆ SM_SCSI_TARGET_MIRROR

#define SM_SCSI_TARGET_MIRROR   0x00000002

Definition at line 134 of file sm.h.

◆ smBOOLEAN

#define smBOOLEAN   bit32

Definition at line 280 of file sm.h.

Typedef Documentation

◆ smDeviceHandle_t

Definition at line 143 of file sm.h.

◆ smDif_t

typedef struct smDif smDif_t

◆ smEncrypt_t

typedef struct smEncrypt smEncrypt_t

◆ smEncryptDek_t

typedef struct smEncryptDek smEncryptDek_t

◆ smIORequest_t

Definition at line 145 of file sm.h.

◆ smRoot_t

Definition at line 147 of file sm.h.

◆ smScsiInitiatorRequest_t

◆ smSuperScsiInitiatorRequest_t

Enumeration Type Documentation

◆ smDataDirection_t

Enumerator
smDirectionIn 
smDirectionOut 

Definition at line 97 of file sm.h.

◆ smIntrEventType_t

Enumerator
smIntrEventTypeCnxError 
smIntrEventTypeDiscovery 
smIntrEventTypeTransportRecovery 
smIntrEventTypeTaskManagement 
smIntrEventTypeDeviceChange 
smIntrEventTypeLogin 
smIntrEventTypeLocalAbort 

Definition at line 107 of file sm.h.

◆ smIOStatus_t

Enumerator
smIOSuccess 
smIOOverRun 
smIOUnderRun 
smIOFailed 
smIODifError 
smIOEncryptError 
smIORetry 
smIOSTPResourceBusy 

Definition at line 62 of file sm.h.

◆ smIOStatusDetail_t

Enumerator
smDetailBusy 
smDetailNotValid 
smDetailNoLogin 
smDetailAbortLogin 
smDetailAbortReset 
smDetailAborted 
smDetailDifMismatch 
smDetailDifAppTagMismatch 
smDetailDifRefTagMismatch 
smDetailDifCrcMismatch 
smDetailDekKeyCacheMiss 
smDetailCipherModeInvalid 
smDetailDekIVMismatch 
smDetailDekRamInterfaceError 
smDetailDekIndexOutofBounds 
smDetailOtherError 

Definition at line 74 of file sm.h.

◆ smStatus_t

enum smStatus_t
Enumerator
SM_RC_SUCCESS 
SM_RC_FAILURE 
SM_RC_BUSY 
SM_RC_NODEVICE 
SM_RC_VERSION_INCOMPATIBLE 
SM_RC_VERSION_UNTESTED 
SM_RC_RSV1 
SM_RC_RSV2 
SM_RC_RSV3 
SM_RC_RSV4 
SM_RC_DEVICE_BUSY 

Definition at line 46 of file sm.h.

◆ smTMEventStatus_t

Enumerator
smTMOK 
smTMFailed 

Definition at line 118 of file sm.h.