]>
Commit | Line | Data |
---|---|---|
d34bda71 | 1 | # -*- Mode: Python -*- |
f7160f32 | 2 | # vim: filetype=python |
d3a48372 MAL |
3 | |
4 | ## | |
f5cf31c5 | 5 | # = Common data types |
d3a48372 | 6 | ## |
d34bda71 | 7 | |
2031c133 MA |
8 | ## |
9 | # @IoOperationType: | |
10 | # | |
11 | # An enumeration of the I/O operation types | |
12 | # | |
13 | # @read: read operation | |
14 | # | |
15 | # @write: write operation | |
16 | # | |
17 | # Since: 2.1 | |
18 | ## | |
19 | { 'enum': 'IoOperationType', | |
20 | 'data': [ 'read', 'write' ] } | |
21 | ||
d1048bef | 22 | ## |
5072f7b3 | 23 | # @OnOffAuto: |
d1048bef DS |
24 | # |
25 | # An enumeration of three options: on, off, and auto | |
26 | # | |
27 | # @auto: QEMU selects the value between on and off | |
28 | # | |
29 | # @on: Enabled | |
30 | # | |
31 | # @off: Disabled | |
32 | # | |
33 | # Since: 2.2 | |
34 | ## | |
35 | { 'enum': 'OnOffAuto', | |
36 | 'data': [ 'auto', 'on', 'off' ] } | |
32c18a2d MG |
37 | |
38 | ## | |
5072f7b3 | 39 | # @OnOffSplit: |
32c18a2d MG |
40 | # |
41 | # An enumeration of three values: on, off, and split | |
42 | # | |
43 | # @on: Enabled | |
44 | # | |
45 | # @off: Disabled | |
46 | # | |
47 | # @split: Mixed | |
48 | # | |
49 | # Since: 2.6 | |
50 | ## | |
51 | { 'enum': 'OnOffSplit', | |
52 | 'data': [ 'on', 'off', 'split' ] } | |
a2ff5a48 MA |
53 | |
54 | ## | |
55 | # @String: | |
56 | # | |
57 | # A fat type wrapping 'str', to be embedded in lists. | |
58 | # | |
59 | # Since: 1.2 | |
60 | ## | |
61 | { 'struct': 'String', | |
62 | 'data': { | |
63 | 'str': 'str' } } | |
48685a8e MA |
64 | |
65 | ## | |
66 | # @StrOrNull: | |
67 | # | |
68 | # This is a string value or the explicit lack of a string (null | |
69 | # pointer in C). Intended for cases when 'optional absent' already | |
70 | # has a different meaning. | |
71 | # | |
72 | # @s: the string value | |
a937b6aa | 73 | # |
48685a8e MA |
74 | # @n: no string value |
75 | # | |
76 | # Since: 2.10 | |
77 | ## | |
78 | { 'alternate': 'StrOrNull', | |
79 | 'data': { 's': 'str', | |
80 | 'n': 'null' } } | |
c3bbbdbf AW |
81 | |
82 | ## | |
83 | # @OffAutoPCIBAR: | |
84 | # | |
85 | # An enumeration of options for specifying a PCI BAR | |
86 | # | |
87 | # @off: The specified feature is disabled | |
88 | # | |
89 | # @auto: The PCI BAR for the feature is automatically selected | |
90 | # | |
91 | # @bar0: PCI BAR0 is used for the feature | |
92 | # | |
93 | # @bar1: PCI BAR1 is used for the feature | |
94 | # | |
95 | # @bar2: PCI BAR2 is used for the feature | |
96 | # | |
97 | # @bar3: PCI BAR3 is used for the feature | |
98 | # | |
99 | # @bar4: PCI BAR4 is used for the feature | |
100 | # | |
101 | # @bar5: PCI BAR5 is used for the feature | |
102 | # | |
103 | # Since: 2.12 | |
104 | ## | |
105 | { 'enum': 'OffAutoPCIBAR', | |
106 | 'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] } | |
9a801c7d | 107 | |
4695a2c5 AW |
108 | ## |
109 | # @PCIELinkSpeed: | |
110 | # | |
111 | # An enumeration of PCIe link speeds in units of GT/s | |
112 | # | |
113 | # @2_5: 2.5GT/s | |
114 | # | |
115 | # @5: 5.0GT/s | |
116 | # | |
117 | # @8: 8.0GT/s | |
118 | # | |
119 | # @16: 16.0GT/s | |
120 | # | |
121 | # Since: 4.0 | |
122 | ## | |
123 | { 'enum': 'PCIELinkSpeed', | |
124 | 'data': [ '2_5', '5', '8', '16' ] } | |
125 | ||
126 | ## | |
127 | # @PCIELinkWidth: | |
128 | # | |
129 | # An enumeration of PCIe link width | |
130 | # | |
131 | # @1: x1 | |
132 | # | |
133 | # @2: x2 | |
134 | # | |
135 | # @4: x4 | |
136 | # | |
137 | # @8: x8 | |
138 | # | |
139 | # @12: x12 | |
140 | # | |
141 | # @16: x16 | |
142 | # | |
143 | # @32: x32 | |
144 | # | |
145 | # Since: 4.0 | |
146 | ## | |
147 | { 'enum': 'PCIELinkWidth', | |
148 | 'data': [ '1', '2', '4', '8', '12', '16', '32' ] } | |
913d9063 KW |
149 | |
150 | ## | |
151 | # @HostMemPolicy: | |
152 | # | |
153 | # Host memory policy types | |
154 | # | |
155 | # @default: restore default policy, remove any nondefault policy | |
156 | # | |
157 | # @preferred: set the preferred host nodes for allocation | |
158 | # | |
a937b6aa MA |
159 | # @bind: a strict policy that restricts memory allocation to the host |
160 | # nodes specified | |
913d9063 | 161 | # |
a937b6aa MA |
162 | # @interleave: memory allocations are interleaved across the set of |
163 | # host nodes specified | |
913d9063 KW |
164 | # |
165 | # Since: 2.1 | |
166 | ## | |
167 | { 'enum': 'HostMemPolicy', | |
168 | 'data': [ 'default', 'preferred', 'bind', 'interleave' ] } | |
1156a675 KW |
169 | |
170 | ## | |
171 | # @NetFilterDirection: | |
172 | # | |
a937b6aa MA |
173 | # Indicates whether a netfilter is attached to a netdev's transmit |
174 | # queue or receive queue or both. | |
1156a675 KW |
175 | # |
176 | # @all: the filter is attached both to the receive and the transmit | |
a937b6aa | 177 | # queue of the netdev (default). |
1156a675 KW |
178 | # |
179 | # @rx: the filter is attached to the receive queue of the netdev, | |
a937b6aa | 180 | # where it will receive packets sent to the netdev. |
1156a675 KW |
181 | # |
182 | # @tx: the filter is attached to the transmit queue of the netdev, | |
a937b6aa | 183 | # where it will receive packets sent by the netdev. |
1156a675 KW |
184 | # |
185 | # Since: 2.5 | |
186 | ## | |
187 | { 'enum': 'NetFilterDirection', | |
188 | 'data': [ 'all', 'rx', 'tx' ] } | |
30e863e5 KW |
189 | |
190 | ## | |
191 | # @GrabToggleKeys: | |
192 | # | |
193 | # Keys to toggle input-linux between host and guest. | |
194 | # | |
195 | # Since: 4.0 | |
30e863e5 KW |
196 | ## |
197 | { 'enum': 'GrabToggleKeys', | |
198 | 'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock', | |
199 | 'ctrl-scrolllock' ] } | |
f9429c67 DB |
200 | |
201 | ## | |
202 | # @HumanReadableText: | |
203 | # | |
204 | # @human-readable-text: Formatted output intended for humans. | |
205 | # | |
206 | # Since: 6.2 | |
f9429c67 DB |
207 | ## |
208 | { 'struct': 'HumanReadableText', | |
209 | 'data': { 'human-readable-text': 'str' } } |