tpm.json (9b112b1b79f0e93242a9ce9bffd1113458e93e03) | tpm.json (a937b6aa739f65f2cae2ad9a7eb65a309ad2a359) |
---|---|
1# -*- Mode: Python -*- 2# vim: filetype=python 3# 4 5## 6# = TPM (trusted platform module) devices 7## 8 9## 10# @TpmModel: 11# 12# An enumeration of TPM models 13# 14# @tpm-tis: TPM TIS model | 1# -*- Mode: Python -*- 2# vim: filetype=python 3# 4 5## 6# = TPM (trusted platform module) devices 7## 8 9## 10# @TpmModel: 11# 12# An enumeration of TPM models 13# 14# @tpm-tis: TPM TIS model |
15# |
|
15# @tpm-crb: TPM CRB model (since 2.12) | 16# @tpm-crb: TPM CRB model (since 2.12) |
17# |
|
16# @tpm-spapr: TPM SPAPR model (since 5.0) 17# 18# Since: 1.5 19## 20{ 'enum': 'TpmModel', 'data': [ 'tpm-tis', 'tpm-crb', 'tpm-spapr' ], 21 'if': 'CONFIG_TPM' } 22 23## --- 4 unchanged lines hidden (view full) --- 28# Returns: a list of TpmModel 29# 30# Since: 1.5 31# 32# Example: 33# 34# -> { "execute": "query-tpm-models" } 35# <- { "return": [ "tpm-tis", "tpm-crb", "tpm-spapr" ] } | 18# @tpm-spapr: TPM SPAPR model (since 5.0) 19# 20# Since: 1.5 21## 22{ 'enum': 'TpmModel', 'data': [ 'tpm-tis', 'tpm-crb', 'tpm-spapr' ], 23 'if': 'CONFIG_TPM' } 24 25## --- 4 unchanged lines hidden (view full) --- 30# Returns: a list of TpmModel 31# 32# Since: 1.5 33# 34# Example: 35# 36# -> { "execute": "query-tpm-models" } 37# <- { "return": [ "tpm-tis", "tpm-crb", "tpm-spapr" ] } |
36# | |
37## 38{ 'command': 'query-tpm-models', 'returns': ['TpmModel'], 39 'if': 'CONFIG_TPM' } 40 41## 42# @TpmType: 43# 44# An enumeration of TPM types 45# 46# @passthrough: TPM passthrough type | 38## 39{ 'command': 'query-tpm-models', 'returns': ['TpmModel'], 40 'if': 'CONFIG_TPM' } 41 42## 43# @TpmType: 44# 45# An enumeration of TPM types 46# 47# @passthrough: TPM passthrough type |
48# |
|
47# @emulator: Software Emulator TPM type (since 2.11) 48# 49# Since: 1.5 50## 51{ 'enum': 'TpmType', 'data': [ 'passthrough', 'emulator' ], 52 'if': 'CONFIG_TPM' } 53 54## --- 4 unchanged lines hidden (view full) --- 59# Returns: a list of TpmType 60# 61# Since: 1.5 62# 63# Example: 64# 65# -> { "execute": "query-tpm-types" } 66# <- { "return": [ "passthrough", "emulator" ] } | 49# @emulator: Software Emulator TPM type (since 2.11) 50# 51# Since: 1.5 52## 53{ 'enum': 'TpmType', 'data': [ 'passthrough', 'emulator' ], 54 'if': 'CONFIG_TPM' } 55 56## --- 4 unchanged lines hidden (view full) --- 61# Returns: a list of TpmType 62# 63# Since: 1.5 64# 65# Example: 66# 67# -> { "execute": "query-tpm-types" } 68# <- { "return": [ "passthrough", "emulator" ] } |
67# | |
68## 69{ 'command': 'query-tpm-types', 'returns': ['TpmType'], 70 'if': 'CONFIG_TPM' } 71 72## 73# @TPMPassthroughOptions: 74# 75# Information about the TPM passthrough type 76# 77# @path: string describing the path used for accessing the TPM device 78# | 69## 70{ 'command': 'query-tpm-types', 'returns': ['TpmType'], 71 'if': 'CONFIG_TPM' } 72 73## 74# @TPMPassthroughOptions: 75# 76# Information about the TPM passthrough type 77# 78# @path: string describing the path used for accessing the TPM device 79# |
79# @cancel-path: string showing the TPM's sysfs cancel file 80# for cancellation of TPM commands while they are executing | 80# @cancel-path: string showing the TPM's sysfs cancel file for 81# cancellation of TPM commands while they are executing |
81# 82# Since: 1.5 83## 84{ 'struct': 'TPMPassthroughOptions', 85 'data': { '*path': 'str', 86 '*cancel-path': 'str' }, 87 'if': 'CONFIG_TPM' } 88 --- 25 unchanged lines hidden (view full) --- 114## 115{ 'struct': 'TPMEmulatorOptionsWrapper', 116 'data': { 'data': 'TPMEmulatorOptions' }, 117 'if': 'CONFIG_TPM' } 118 119## 120# @TpmTypeOptions: 121# | 82# 83# Since: 1.5 84## 85{ 'struct': 'TPMPassthroughOptions', 86 'data': { '*path': 'str', 87 '*cancel-path': 'str' }, 88 'if': 'CONFIG_TPM' } 89 --- 25 unchanged lines hidden (view full) --- 115## 116{ 'struct': 'TPMEmulatorOptionsWrapper', 117 'data': { 'data': 'TPMEmulatorOptions' }, 118 'if': 'CONFIG_TPM' } 119 120## 121# @TpmTypeOptions: 122# |
122# A union referencing different TPM backend types' configuration options | 123# A union referencing different TPM backend types' configuration 124# options |
123# | 125# |
124# @type: - 'passthrough' The configuration options for the TPM passthrough type 125# - 'emulator' The configuration options for TPM emulator backend type | 126# @type: 127# - 'passthrough' The configuration options for the TPM 128# passthrough type 129# - 'emulator' The configuration options for TPM emulator backend 130# type |
126# 127# Since: 1.5 128## 129{ 'union': 'TpmTypeOptions', 130 'base': { 'type': 'TpmType' }, 131 'discriminator': 'type', 132 'data': { 'passthrough' : 'TPMPassthroughOptionsWrapper', 133 'emulator': 'TPMEmulatorOptionsWrapper' }, --- 39 unchanged lines hidden (view full) --- 173# { "cancel-path": "/sys/class/misc/tpm0/device/cancel", 174# "path": "/dev/tpm0" 175# } 176# }, 177# "id": "tpm0" 178# } 179# ] 180# } | 131# 132# Since: 1.5 133## 134{ 'union': 'TpmTypeOptions', 135 'base': { 'type': 'TpmType' }, 136 'discriminator': 'type', 137 'data': { 'passthrough' : 'TPMPassthroughOptionsWrapper', 138 'emulator': 'TPMEmulatorOptionsWrapper' }, --- 39 unchanged lines hidden (view full) --- 178# { "cancel-path": "/sys/class/misc/tpm0/device/cancel", 179# "path": "/dev/tpm0" 180# } 181# }, 182# "id": "tpm0" 183# } 184# ] 185# } |
181# | |
182## 183{ 'command': 'query-tpm', 'returns': ['TPMInfo'], 184 'if': 'CONFIG_TPM' } | 186## 187{ 'command': 'query-tpm', 'returns': ['TPMInfo'], 188 'if': 'CONFIG_TPM' } |