390x/css: introduce maximum data address checking
[qemu/ar7.git] / qapi / tpm.json
blobe8b2d8dcb73234f68610811356e802720f0b154d
1 # -*- Mode: Python -*-
4 ##
5 # = TPM (trusted platform module) devices
6 ##
8 ##
9 # @TpmModel:
11 # An enumeration of TPM models
13 # @tpm-tis: TPM TIS model
15 # Since: 1.5
17 { 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
20 # @query-tpm-models:
22 # Return a list of supported TPM models
24 # Returns: a list of TpmModel
26 # Since: 1.5
28 # Example:
30 # -> { "execute": "query-tpm-models" }
31 # <- { "return": [ "tpm-tis" ] }
34 { 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
37 # @TpmType:
39 # An enumeration of TPM types
41 # @passthrough: TPM passthrough type
43 # Since: 1.5
45 { 'enum': 'TpmType', 'data': [ 'passthrough' ] }
48 # @query-tpm-types:
50 # Return a list of supported TPM types
52 # Returns: a list of TpmType
54 # Since: 1.5
56 # Example:
58 # -> { "execute": "query-tpm-types" }
59 # <- { "return": [ "passthrough" ] }
62 { 'command': 'query-tpm-types', 'returns': ['TpmType'] }
65 # @TPMPassthroughOptions:
67 # Information about the TPM passthrough type
69 # @path: string describing the path used for accessing the TPM device
71 # @cancel-path: string showing the TPM's sysfs cancel file
72 #               for cancellation of TPM commands while they are executing
74 # Since: 1.5
76 { 'struct': 'TPMPassthroughOptions', 'data': { '*path' : 'str',
77                                              '*cancel-path' : 'str'} }
80 # @TpmTypeOptions:
82 # A union referencing different TPM backend types' configuration options
84 # @type: 'passthrough' The configuration options for the TPM passthrough type
86 # Since: 1.5
88 { 'union': 'TpmTypeOptions',
89    'data': { 'passthrough' : 'TPMPassthroughOptions' } }
92 # @TPMInfo:
94 # Information about the TPM
96 # @id: The Id of the TPM
98 # @model: The TPM frontend model
100 # @options: The TPM (backend) type configuration options
102 # Since: 1.5
104 { 'struct': 'TPMInfo',
105   'data': {'id': 'str',
106            'model': 'TpmModel',
107            'options': 'TpmTypeOptions' } }
110 # @query-tpm:
112 # Return information about the TPM device
114 # Returns: @TPMInfo on success
116 # Since: 1.5
118 # Example:
120 # -> { "execute": "query-tpm" }
121 # <- { "return":
122 #      [
123 #        { "model": "tpm-tis",
124 #          "options":
125 #            { "type": "passthrough",
126 #              "data":
127 #                { "cancel-path": "/sys/class/misc/tpm0/device/cancel",
128 #                  "path": "/dev/tpm0"
129 #                }
130 #            },
131 #          "id": "tpm0"
132 #        }
133 #      ]
134 #    }
137 { 'command': 'query-tpm', 'returns': ['TPMInfo'] }