34#include <linux/ioctl.h>
36#ifndef __ENCRYPT_IOCTL_H__
37#define __ENCRYPT_IOCTL_H__
87#define ENCRYPT_DEK_MAP_ENTRY_CLEAR 0x00000001UL
88#define ENCRYPT_DEK_MAP_ENTRY_VALID 0x80000000UL
126typedef struct __attribute__ ((packed)) IoctlEncryptErrorQuery_s {
127#define ERROR_QUERY_FLAG_BLOCK 1
130 IoctlEncryptIOError_t error[32];
153#define encryptGetInfo 0x00000001
154#define encryptSetMode 0x00000002
155#define encryptKekAdd 0x00000003
156#define encryptDekAdd 0x00000004
157#define encryptDekInvalidate 0x00000005
158#define encryptKekStore 0x00000006
159#define encryptKekLoad 0x00000007
160#define encryptGetDekTable 0x00000008
161#define encryptSetDekMap 0x00000009
162#define encryptDekDump 0x0000000a
163#define encryptErrorQuery 0x0000000c
171 tiIOCTLPayloadHeader_t
hdr;
struct IoctlEncryptGetInfo_s __attribute__((packed)) IoctlEncryptGetInfo_t
unsigned long long startLBA
unsigned long long endLBA
EncryptDekMapEntry_t dekMapEntry[1]
tiIOCTLPayloadHeader_t hdr
tiEncryptDekBlob_t * dekBlob
bit32 dekTableKeyEntrySize
EncryptDeviceDekMap_t dekMap[1]
tiEncryptInfo_t tisaEncryptInfo
tiEncryptKekBlob_t * EncryptKekBlob
IoctlEncryptDekMapTable_t encryptDekMap
IoctlEncryptDekInvalidate_t encryptDekInvalidate
IoctlEncryptErrorQuery_t encryptErrorQuery
IoctlEncryptKekAdd_t encryptKekAdd
IoctlEncryptSetMode_t encryptSetMode
IoctlEncryptGetInfo_t encryptGetInfo
IoctlEncryptKekNVRAM_t encryptKekNVRAM
IoctlEncryptDekAdd_t encryptDekAdd