| # -*- Mode: Python -*- | |
| # vim: filetype=python | |
| ## | |
| # ***************** | |
| # Common data types | |
| # ***************** | |
| ## | |
| ## | |
| # @IoOperationType: | |
| # An enumeration of the I/O operation types | |
| # | |
| # @read: read operation | |
| # | |
| # @write: write operation | |
| # | |
| # Since: 2.1 | |
| ## | |
| { 'enum': 'IoOperationType', | |
| 'data': [ 'read', 'write' ] } | |
| ## | |
| # @OnOffAuto: | |
| # An enumeration of three options: on, off, and auto | |
| # | |
| # @auto: QEMU selects the value between on and off | |
| # | |
| # @on: Enabled | |
| # | |
| # @off: Disabled | |
| # | |
| # Since: 2.2 | |
| ## | |
| { 'enum': 'OnOffAuto', | |
| 'data': [ 'auto', 'on', 'off' ] } | |
| ## | |
| # @OnOffSplit: | |
| # An enumeration of three values: on, off, and split | |
| # | |
| # @on: Enabled | |
| # | |
| # @off: Disabled | |
| # | |
| # @split: Mixed | |
| # | |
| # Since: 2.6 | |
| ## | |
| { 'enum': 'OnOffSplit', | |
| 'data': [ 'on', 'off', 'split' ] } | |
| ## | |
| # @StrOrNull: | |
| # This is a string value or the explicit lack of a string (null | |
| # pointer in C). Intended for cases when 'optional absent' | |
| # already has a different meaning. | |
| # | |
| # @s: the string value | |
| # | |
| # @n: no string value | |
| # | |
| # Since: 2.10 | |
| ## | |
| { 'alternate': 'StrOrNull', | |
| 'data': { 's': 'str', | |
| 'n': 'null' } } | |
| ## | |
| # @OffAutoPCIBAR: | |
| # An enumeration of options for specifying a PCI BAR | |
| # | |
| # @off: The specified feature is disabled | |
| # | |
| # @auto: The PCI BAR for the feature is automatically selected | |
| # | |
| # @bar0: PCI BAR0 is used for the feature | |
| # | |
| # @bar1: PCI BAR1 is used for the feature | |
| # | |
| # @bar2: PCI BAR2 is used for the feature | |
| # | |
| # @bar3: PCI BAR3 is used for the feature | |
| # | |
| # @bar4: PCI BAR4 is used for the feature | |
| # | |
| # @bar5: PCI BAR5 is used for the feature | |
| # | |
| # Since: 2.12 | |
| ## | |
| { 'enum': 'OffAutoPCIBAR', | |
| 'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] } | |
| ## | |
| # @PCIELinkSpeed: | |
| # An enumeration of PCIe link speeds in units of GT/s | |
| # | |
| # @2_5: 2.5GT/s | |
| # | |
| # @5: 5.0GT/s | |
| # | |
| # @8: 8.0GT/s | |
| # | |
| # @16: 16.0GT/s | |
| # | |
| # @32: 32.0GT/s (since 9.0) | |
| # | |
| # @64: 64.0GT/s (since 9.0) | |
| # | |
| # Since: 4.0 | |
| ## | |
| { 'enum': 'PCIELinkSpeed', | |
| 'data': [ '2_5', '5', '8', '16', '32', '64' ] } | |
| ## | |
| # @PCIELinkWidth: | |
| # An enumeration of PCIe link width | |
| # | |
| # @1: x1 | |
| # | |
| # @2: x2 | |
| # | |
| # @4: x4 | |
| # | |
| # @8: x8 | |
| # | |
| # @12: x12 | |
| # | |
| # @16: x16 | |
| # | |
| # @32: x32 | |
| # | |
| # Since: 4.0 | |
| ## | |
| { 'enum': 'PCIELinkWidth', | |
| 'data': [ '1', '2', '4', '8', '12', '16', '32' ] } | |
| ## | |
| # @HostMemPolicy: | |
| # Host memory policy types | |
| # | |
| # @default: restore default policy, remove any nondefault policy | |
| # | |
| # @preferred: set the preferred host nodes for allocation | |
| # | |
| # @bind: a strict policy that restricts memory allocation to the host | |
| # nodes specified | |
| # | |
| # @interleave: memory allocations are interleaved across the set of | |
| # host nodes specified | |
| # | |
| # Since: 2.1 | |
| ## | |
| { 'enum': 'HostMemPolicy', | |
| 'data': [ 'default', 'preferred', 'bind', 'interleave' ] } | |
| ## | |
| # @NetFilterDirection: | |
| # Indicates whether a netfilter is attached to a netdev's transmit | |
| # queue or receive queue or both. | |
| # | |
| # @all: the filter is attached both to the receive and the transmit | |
| # queue of the netdev (default). | |
| # | |
| # @rx: the filter is attached to the receive queue of the netdev, | |
| # where it will receive packets sent to the netdev. | |
| # | |
| # @tx: the filter is attached to the transmit queue of the netdev, | |
| # where it will receive packets sent by the netdev. | |
| # | |
| # Since: 2.5 | |
| ## | |
| { 'enum': 'NetFilterDirection', | |
| 'data': [ 'all', 'rx', 'tx' ] } | |
| ## | |
| # @GrabToggleKeys: | |
| # Key combinations to toggle input-linux between host and guest. | |
| # | |
| # @ctrl-ctrl: left and right control key | |
| # | |
| # @alt-alt: left and right alt key | |
| # | |
| # @shift-shift: left and right shift key | |
| # | |
| # @meta-meta: left and right meta key | |
| # | |
| # @scrolllock: scroll lock key | |
| # | |
| # @ctrl-scrolllock: either control key and scroll lock key | |
| # | |
| # Since: 4.0 | |
| ## | |
| { 'enum': 'GrabToggleKeys', | |
| 'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock', | |
| 'ctrl-scrolllock' ] } | |
| ## | |
| # @HumanReadableText: | |
| # | |
| # @human-readable-text: Formatted output intended for humans. | |
| # | |
| # Since: 6.2 | |
| ## | |
| { 'struct': 'HumanReadableText', | |
| 'data': { 'human-readable-text': 'str' } } | |
| ## | |
| # @EndianMode: | |
| # | |
| # @unspecified: Endianness not specified | |
| # | |
| # @little: Little endianness | |
| # | |
| # @big: Big endianness | |
| # | |
| # Since: 10.0 | |
| ## | |
| { 'enum': 'EndianMode', | |
| 'data': [ 'unspecified', 'little', 'big' ] } | |
| ## | |
| # @StructTm: | |
| # Broken-down time. Field semantics match C ``struct tm``. | |
| # | |
| # @tm_year: years since 1900 | |
| # | |
| # @tm_mon: months since January (0-11) | |
| # | |
| # @tm_mday: day of the month (1-31) | |
| # | |
| # @tm_hour: hours since midnight (0-23) | |
| # | |
| # @tm_min: minutes after the hour (0-59) | |
| # | |
| # @tm_sec: seconds after the minute (0-59, 60-61 for leap seconds) | |
| # | |
| # Since: 11.2 | |
| ## | |
| { 'struct': 'StructTm', | |
| 'data': { | |
| 'tm_year': 'int32', | |
| 'tm_mon': 'int32', | |
| 'tm_mday': 'int32', | |
| 'tm_hour': 'int32', | |
| 'tm_min': 'int32', | |
| 'tm_sec': 'int32' } } | |
| ## | |
| # @UfsFaultInjectMode: | |
| # Fault injection modes for x-fault-inject-mode property. | |
| # Controls how the held transfer request and subsequent Task | |
| # Management Request (TMR) are resolved by the controller: | |
| # | |
| # @abort-success: TMR ABORT_TASK aborts the held request, clears its | |
| # state, and returns SUCCESS (COMPL). | |
| # | |
| # @abort-failed: TMR ABORT_TASK returns TASK_MANAGEMENT_FUNC_FAILED, | |
| # forcing host driver to escalate to Host Reset. | |
| # | |
| # @in-transition: TMR QUERY_TASK releases the held request to execute | |
| # normally through the SCSI layer and returns the real task status | |
| # (SUCCEEDED while the command is still in flight); ABORT_TASK | |
| # cancels the held request and returns FUNCTION_COMPLETE. | |
| # | |
| # @timeout: TMR ABORT_TASK does not complete or clear doorbell, | |
| # triggering hardware-level TMR timeout. | |
| # | |
| # @ssu-timeout: Intercepts SCSI START_STOP (0x1B) commands targeting | |
| # the UFS Device WLUN when x-fault-inject-tag is armed. | |
| # | |
| # Since: 11.2 | |
| ## | |
| { 'enum': 'UfsFaultInjectMode', | |
| 'prefix': 'UFS_FAULT_INJECT', | |
| 'data': [ 'abort-success', 'abort-failed', 'in-transition', 'timeout', | |
| 'ssu-timeout' ] } |