FreeBSD kernel pms device code
encrypt_ioctl.h File Reference
Include dependency graph for encrypt_ioctl.h:

Go to the source code of this file.

Data Structures

struct  IoctlEncryptGetInfo_s
 
struct  IoctlEncryptSetMode_s
 
struct  IoctlEncryptKekAdd_s
 
struct  IoctlEncryptDekAdd_s
 
struct  IoctlEncryptDekInvalidate_s
 
struct  IoctlEncryptKekNVRAM_s
 
struct  IoctlEncryptDekTable_s
 
struct  EncryptDekMapEntry_s
 
struct  EncryptDeviceDekMap_s
 
struct  IoctlEncryptDekMapTable_s
 
struct  IoctlEncryptIOError_s
 
union  IoctlEncryptOp_u
 
struct  tiIOCTLPayloadHeader_s
 
struct  IoctlTISAEncrypt_s
 
struct  IOCTLEncrypt_s
 

Macros

#define ENCRYPT_DEK_MAP_ENTRY_CLEAR   0x00000001UL
 
#define ENCRYPT_DEK_MAP_ENTRY_VALID   0x80000000UL
 
#define ERROR_QUERY_FLAG_BLOCK   1
 
#define encryptGetInfo   0x00000001
 
#define encryptSetMode   0x00000002
 
#define encryptKekAdd   0x00000003
 
#define encryptDekAdd   0x00000004
 
#define encryptDekInvalidate   0x00000005
 
#define encryptKekStore   0x00000006
 
#define encryptKekLoad   0x00000007
 
#define encryptGetDekTable   0x00000008
 
#define encryptSetDekMap   0x00000009
 
#define encryptDekDump   0x0000000a
 
#define encryptErrorQuery   0x0000000c
 

Functions

struct IoctlEncryptGetInfo_s __attribute__ ((packed)) IoctlEncryptGetInfo_t
 

Variables

tiEncryptInfo_t tisaEncryptInfo
 
bit32 securityCipherMode
 
bit32 kekIndex
 
bit32 wrapperKekIndex
 
bit32 blobFormat
 
tiEncryptKekBlob_tEncryptKekBlob
 
bit32 dekTable
 
bit32 dekIndex
 
bit32 dekBlobFormat
 
bit32 dekTableKeyEntrySize
 
tiEncryptDekBlob_tdekBlob
 
tiEncryptDek_t dek
 
bit32 index
 
tiMem_t DekTable1Addr
 
tiMem_t DekTable2Addr
 
bit32 flags
 
unsigned long long startLBA
 
unsigned long long endLBA
 
bit32 host
 
bit32 channel
 
bit32 device
 
bit32 lun
 
bit32 keytag_check
 
bit32 keytag [2]
 
EncryptDekMapEntry_t dekMapEntry [1]
 
EncryptDeviceDekMap_t dekMap [1]
 
bit64 error_id
 
bit64 timestamp
 
bit32 error_type
 
bit32 scsi_cmd
 
bit32 dek_index
 
bit32 dek_table
 
bit32 kek_index
 
bit32 encrypt_mode
 
IoctlEncryptGetInfo_t encryptGetInfo
 
IoctlEncryptSetMode_t encryptSetMode
 
IoctlEncryptKekAdd_t encryptKekAdd
 
IoctlEncryptDekAdd_t encryptDekAdd
 
IoctlEncryptDekInvalidate_t encryptDekInvalidate
 
IoctlEncryptKekNVRAM_t encryptKekNVRAM
 
IoctlEncryptDekMapTable_t encryptDekMap
 
IoctlEncryptErrorQuery_t encryptErrorQuery
 
bit32 Signature
 
bit16 MajorFunction
 
bit16 MinorFunction
 
bit16 Length
 
bit16 Status
 
bit32 encryptFunction
 
bit32 status
 
bit32 subEvent
 
IoctlEncryptOp_t request
 
tiIOCTLPayloadHeader_t hdr
 
IoctlTISAEncrypt_t body
 

Macro Definition Documentation

◆ ENCRYPT_DEK_MAP_ENTRY_CLEAR

#define ENCRYPT_DEK_MAP_ENTRY_CLEAR   0x00000001UL

Definition at line 0 of file encrypt_ioctl.h.

◆ ENCRYPT_DEK_MAP_ENTRY_VALID

#define ENCRYPT_DEK_MAP_ENTRY_VALID   0x80000000UL

Definition at line 1 of file encrypt_ioctl.h.

◆ encryptDekAdd

#define encryptDekAdd   0x00000004

Definition at line 3 of file encrypt_ioctl.h.

◆ encryptDekDump

#define encryptDekDump   0x0000000a

Definition at line 9 of file encrypt_ioctl.h.

◆ encryptDekInvalidate

#define encryptDekInvalidate   0x00000005

Definition at line 4 of file encrypt_ioctl.h.

◆ encryptErrorQuery

#define encryptErrorQuery   0x0000000c

Definition at line 10 of file encrypt_ioctl.h.

◆ encryptGetDekTable

#define encryptGetDekTable   0x00000008

Definition at line 7 of file encrypt_ioctl.h.

◆ encryptGetInfo

#define encryptGetInfo   0x00000001

Definition at line 0 of file encrypt_ioctl.h.

◆ encryptKekAdd

#define encryptKekAdd   0x00000003

Definition at line 2 of file encrypt_ioctl.h.

◆ encryptKekLoad

#define encryptKekLoad   0x00000007

Definition at line 6 of file encrypt_ioctl.h.

◆ encryptKekStore

#define encryptKekStore   0x00000006

Definition at line 5 of file encrypt_ioctl.h.

◆ encryptSetDekMap

#define encryptSetDekMap   0x00000009

Definition at line 8 of file encrypt_ioctl.h.

◆ encryptSetMode

#define encryptSetMode   0x00000002

Definition at line 1 of file encrypt_ioctl.h.

◆ ERROR_QUERY_FLAG_BLOCK

#define ERROR_QUERY_FLAG_BLOCK   1

Function Documentation

◆ __attribute__()

struct IOCTLEncrypt_s __attribute__ ( (packed)  )

Definition at line 1 of file encrypt_ioctl.h.

Variable Documentation

◆ blobFormat

bit32 blobFormat

Definition at line 2 of file encrypt_ioctl.h.

Referenced by saEncryptKekUpdate(), and tiCOMEncryptKekAdd().

◆ body

IoctlTISAEncrypt_t body

Definition at line 1 of file encrypt_ioctl.h.

◆ channel

bit32 channel

Definition at line 1 of file encrypt_ioctl.h.

Referenced by mpiGetVHistRsp().

◆ dek

Definition at line 0 of file encrypt_ioctl.h.

◆ dek_index

bit32 dek_index

Definition at line 8 of file encrypt_ioctl.h.

◆ dek_table

bit32 dek_table

Definition at line 9 of file encrypt_ioctl.h.

◆ dekBlob

Definition at line 5 of file encrypt_ioctl.h.

◆ dekBlobFormat

bit32 dekBlobFormat

Definition at line 3 of file encrypt_ioctl.h.

Referenced by saEncryptDekCacheUpdate(), and tiCOMEncryptDekAdd().

◆ dekIndex

◆ dekMap

EncryptDeviceDekMap_t dekMap[1]

Definition at line 0 of file encrypt_ioctl.h.

◆ dekMapEntry

EncryptDekMapEntry_t dekMapEntry[1]

Definition at line 6 of file encrypt_ioctl.h.

◆ dekTable

bit32 dekTable

Definition at line 1 of file encrypt_ioctl.h.

Referenced by saEncryptDekCacheInvalidate(), and tiCOMEncryptDekInvalidate().

◆ DekTable1Addr

tiMem_t DekTable1Addr

Definition at line 0 of file encrypt_ioctl.h.

◆ DekTable2Addr

tiMem_t DekTable2Addr

Definition at line 1 of file encrypt_ioctl.h.

◆ dekTableKeyEntrySize

bit32 dekTableKeyEntrySize

Definition at line 4 of file encrypt_ioctl.h.

Referenced by saEncryptDekCacheUpdate(), and tiCOMEncryptDekAdd().

◆ device

bit32 device

◆ encrypt_mode

bit32 encrypt_mode

Definition at line 11 of file encrypt_ioctl.h.

◆ encryptDekAdd

IoctlEncryptDekAdd_t encryptDekAdd

Definition at line 3 of file encrypt_ioctl.h.

◆ encryptDekInvalidate

IoctlEncryptDekInvalidate_t encryptDekInvalidate

Definition at line 4 of file encrypt_ioctl.h.

◆ encryptDekMap

IoctlEncryptDekMapTable_t encryptDekMap

Definition at line 6 of file encrypt_ioctl.h.

◆ encryptErrorQuery

IoctlEncryptErrorQuery_t encryptErrorQuery

Definition at line 7 of file encrypt_ioctl.h.

◆ encryptFunction

bit32 encryptFunction

Definition at line 11 of file encrypt_ioctl.h.

◆ encryptGetInfo

IoctlEncryptGetInfo_t encryptGetInfo

Definition at line 0 of file encrypt_ioctl.h.

◆ encryptKekAdd

IoctlEncryptKekAdd_t encryptKekAdd

Definition at line 2 of file encrypt_ioctl.h.

◆ EncryptKekBlob

tiEncryptKekBlob_t* EncryptKekBlob

Definition at line 3 of file encrypt_ioctl.h.

◆ encryptKekNVRAM

IoctlEncryptKekNVRAM_t encryptKekNVRAM

Definition at line 5 of file encrypt_ioctl.h.

◆ encryptSetMode

IoctlEncryptSetMode_t encryptSetMode

Definition at line 1 of file encrypt_ioctl.h.

◆ endLBA

unsigned long long endLBA

Definition at line 4 of file encrypt_ioctl.h.

◆ error_id

bit64 error_id

Definition at line 0 of file encrypt_ioctl.h.

◆ error_type

bit32 error_type

Definition at line 2 of file encrypt_ioctl.h.

◆ flags

◆ hdr

tiIOCTLPayloadHeader_t hdr

◆ host

bit32 host

Definition at line 0 of file encrypt_ioctl.h.

◆ index

◆ kek_index

bit32 kek_index

Definition at line 10 of file encrypt_ioctl.h.

◆ kekIndex

◆ keytag

bit32 keytag

Definition at line 5 of file encrypt_ioctl.h.

◆ keytag_check

bit32 keytag_check

Definition at line 4 of file encrypt_ioctl.h.

◆ Length

bit16 Length

Definition at line 3 of file encrypt_ioctl.h.

◆ lun

bit32 lun

Definition at line 3 of file encrypt_ioctl.h.

Referenced by agtiapi_attach(), agtiapi_scan(), and smTaskManagement().

◆ MajorFunction

bit16 MajorFunction

Definition at line 1 of file encrypt_ioctl.h.

◆ MinorFunction

bit16 MinorFunction

Definition at line 2 of file encrypt_ioctl.h.

◆ request

IoctlEncryptOp_t request

Definition at line 14 of file encrypt_ioctl.h.

◆ scsi_cmd

bit32 scsi_cmd

Definition at line 7 of file encrypt_ioctl.h.

◆ securityCipherMode

bit32 securityCipherMode

Definition at line 0 of file encrypt_ioctl.h.

Referenced by tiCOMEncryptSetMode().

◆ Signature

bit32 Signature

Definition at line 0 of file encrypt_ioctl.h.

Referenced by mpiWaitForConfigTable().

◆ startLBA

unsigned long long startLBA

Definition at line 3 of file encrypt_ioctl.h.

◆ Status

◆ status

bit32 status

Definition at line 12 of file encrypt_ioctl.h.

Referenced by agtiapi_CharIoctl(), agtiapi_CheckIOTimeout(), agtiapi_DeQueueCCB(), agtiapi_PrepareSMPSGListCB(), agtiapi_QueueCmnd_(), agtiapi_QueueSMP(), agtiapi_StartIO(), agtiapi_StartSMP(), agtiapi_StartTM(), itdssTaskCompleted(), mpiBistRsp(), mpiDekManagementRsp(), mpiDeregDevHandleRsp(), mpiDeviceRegRsp(), mpiDifEncOffloadRsp(), mpiFwFlashUpdateRsp(), mpiGeneralEventRsp(), mpiGetControllerConfigRsp(), mpiGetDeviceStateRsp(), mpiGetDevInfoRsp(), mpiGetDevInfoRspSpc(), mpiGetDFEDataRsp(), mpiGetOperatorRsp(), mpiGetPhyProfileRsp(), mpiGetVHistRsp(), mpiHWevent(), mpiKekManagementRsp(), mpiOperatorManagementRsp(), mpiPhyCntrlRsp(), mpiPortControlRsp(), mpiSASHwEventAckRsp(), mpiSasReInitializeRsp(), mpiSATAAbortRsp(), mpiSATACompletion(), mpiSetControllerConfigRsp(), mpiSetDeviceStateRsp(), mpiSetDevInfoRsp(), mpiSetNVMDataRsp(), mpiSetOperatorRsp(), mpiSetPhyProfileRsp(), mpiSMPAbortRsp(), mpiSMPCompletion(), mpiSSPAbortRsp(), mpiSSPCompletion(), ossaDeregisterDeviceHandleCB(), ossaDeviceRegistrationCB(), ossaDIFEncryptionOffloadStartCB(), ossaEncryptSelftestExecuteCB(), ossaFlashExtExecuteCB(), ossaFwFlashUpdateCB(), ossaGeneralEvent(), ossaGetDeviceInfoCB(), ossaGetDeviceStateCB(), ossaGetDFEDataCB(), ossaGetForensicDataCB(), ossaGetIOEventStatsCB(), ossaGetNVMDResponseCB(), ossaGetOperatorCB(), ossaGetPhyProfileCB(), ossaGetRegisterDumpCB(), ossaGpioResponseCB(), ossaHwCB(), ossaHwEventAckCB(), ossaLocalPhyControlCB(), ossaOperatorManagementCB(), ossaPCIeDiagExecuteCB(), ossaPortControlCB(), ossaReconfigSASParamsCB(), ossaSASDiagExecuteCB(), ossaSASDiagStartEndCB(), ossaSATAEvent(), ossaSetDeviceInfoCB(), ossaSetDeviceStateCB(), ossaSetNVMDResponseCB(), ossaSetOperatorCB(), ossaSetPhyProfileCB(), ossaSMPAbortCB(), ossaSMPCAMCompleted(), ossaVhistCaptureCB(), ostiCOMMgntIOCTLRsp(), ostiCOMMgntVPDSetIOCTLRsp(), ostiGetForensicDataIOCTLRsp(), ostiGetGpioIOCTLRsp(), ostiGetNVMDIOCTLRsp(), ostiGetPhyProfileIOCTLRsp(), ostiNumOfLUNIOCTLreq(), ostiNumOfLUNIOCTLRsp(), ostiPortEvent(), ostiSendSMPIOCTLRsp(), ostiSetNVMDIOCTLRsp(), saGetForensicData(), saGetIOErrorStats(), saGetIOEventStats(), saSSPStart(), SendSgpioRequest(), siAbnormal(), siDifAbnormal(), siFatalErrorBuffer(), siGetForensicData(), siNonFatalErrorBuffer(), siPhyStopCB(), siWaitForFatalTransfer(), siWaitForNonFatalTransfer(), smaSATAAbortCB(), smDeregisterDevice(), smIDStart(), smIOAbort(), smIOAbortAll(), smIOStart(), smLocalPhyControlCB(), smPhyControlSend(), smsataLLIOStart(), smsatChainedDataIOCB(), smsatChainedVerify(), smsatChainedVerifyCB(), smsatChainedWriteNVerify_Start_Verify(), smsatChainedWriteNVerify_Verify(), smsatChainedWriteNVerify_Write(), smsatChainedWriteNVerifyCB(), smsatCheckPowerMode(), smsatDeResetDevice(), smsatDeviceReset(), smsatExecuteDeviceDiagnostic(), smsatIDStart(), smsatIDStartCB(), smsatIDSubStart(), smsatInquiry(), smsatIOCompleted(), smsatIOStart(), smsatLogSense(), smsatLogSense_1(), smsatLogSense_2(), smsatLogSense_3(), smsatLogSenseAllocate(), smsatModeSelect10(), smsatModeSelect6(), smsatModeSelect6n10_1(), smsatModeSelect6n10CB(), smsatNonChainedWriteNVerify_Verify(), smsatNonChainedWriteNVerifyCB(), smsatPacket(), smsatPacketCB(), smsatPassthrough(), smsatRead10(), smsatRead12(), smsatRead16(), smsatRead6(), smsatRead_1(), smsatReadBuffer(), smsatReadMediaSerialNumber(), smsatReassignBlocks(), smsatReassignBlocks_2(), smsatReassignBlocksCB(), smsatRequestSense(), smsatRequestSense_1(), smsatRequestSenseCB(), smsatRequestSenseForATAPI(), smsatResetDevice(), smsatResetDeviceCB(), smsatSendDiagnostic(), smsatSendDiagnostic_1(), smsatSendDiagnostic_2(), smsatSendDiagnosticCB(), smsatSendIDDev(), smsatSendReadLogExt(), smsatSetFeaturesAA(), smsatSetFeaturesDMA(), smsatSetFeaturesDMACB(), smsatSetFeaturesPIO(), smsatSetFeaturesPIOCB(), smsatSetFeaturesReadLookAhead(), smsatSetFeaturesReadLookAheadCB(), smsatSetFeaturesVolatileWriteCache(), smsatSetFeaturesVolatileWriteCacheCB(), smsatSMARTEnable(), smsatSMARTEnableCB(), smsatStartCheckPowerMode(), smsatStartIDDev(), smsatStartResetDevice(), smsatStartStopUnit(), smsatStartStopUnit_1(), smsatStartStopUnitCB(), smsatSynchronizeCache10(), smsatSynchronizeCache16(), smsatTaskManagement(), smsatTestUnitReady(), smsatTestUnitReady_1(), smsatTestUnitReadyCB(), smsatTmAbortTask(), smsatVerify10(), smsatVerify12(), smsatVerify16(), smsatWrite10(), smsatWrite12(), smsatWrite16(), smsatWrite6(), smsatWrite_1(), smsatWriteAndVerify10(), smsatWriteAndVerify12(), smsatWriteAndVerify16(), smsatWriteBuffer(), smsatWriteSame10(), smsatWriteSame10_1(), smsatWriteSame10_2(), smsatWriteSame10_3(), smsatWriteSame10CB(), smSuperIOStart(), smTaskManagement(), tdipFWControlIoctl(), tdsaAbortAll(), tdsaDeviceInfoGetIoctl(), tdsaForensicDataGetIoctl(), tdsaGetNumOfLUNIOCTL(), tdsaGetPhyGeneralStatusIoctl(), tdsaIoErrorStatisticGetIoctl(), tdsaIoEventStatisticGetIoctl(), tdsaNVMDGetIoctl(), tdsaNVMDSetIoctl(), tdsaPhyProfileIoctl(), tdsaRegDumpGetIoctl(), tdsaRegisterIoctl(), tdsaSendBISTIoctl(), tdsaSendSMPIoctl(), tdsaSendTMFIoctl(), tdsaSGpioIoctlSetup(), tiCOMConfigureSgpio(), tiCOMInit(), tiCOMMgntIOCTL(), tiCOMPortInit(), tiCOMPortStart(), tiCOMReset(), tiCOMShutDown(), tiIniGetDirectSataSasAddr(), tiNumOfLunIOCTLreq(), tiTGTIOAbortAll(), tiTGTSendTmResp(), and ttdsaIOCompleted().

◆ subEvent

bit32 subEvent

Definition at line 13 of file encrypt_ioctl.h.

◆ timestamp

bit64 timestamp

Definition at line 1 of file encrypt_ioctl.h.

◆ tisaEncryptInfo

tiEncryptInfo_t tisaEncryptInfo

Definition at line 0 of file encrypt_ioctl.h.

◆ wrapperKekIndex

bit32 wrapperKekIndex

Definition at line 1 of file encrypt_ioctl.h.

Referenced by saEncryptKekUpdate(), and tiCOMEncryptKekAdd().