spapr: Drop duplicate PCI swizzle code
[qemu/ar7.git] / qapi / common.json
blob99d313ef3b59230c04bbfd88c10bfedb5ceadb8e
1 # -*- Mode: Python -*-
3 ##
4 # = Common data types
5 ##
7 ##
8 # @QapiErrorClass:
10 # QEMU error classes
12 # @GenericError: this is used for errors that don't require a specific error
13 #                class. This should be the default case for most errors
15 # @CommandNotFound: the requested command has not been found
17 # @DeviceNotActive: a device has failed to be become active
19 # @DeviceNotFound: the requested device has not been found
21 # @KVMMissingCap: the requested operation can't be fulfilled because a
22 #                 required KVM capability is missing
24 # Since: 1.2
26 { 'enum': 'QapiErrorClass',
27   # Keep this in sync with ErrorClass in error.h
28   'data': [ 'GenericError', 'CommandNotFound',
29             'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap' ] }
32 # @IoOperationType:
34 # An enumeration of the I/O operation types
36 # @read: read operation
38 # @write: write operation
40 # Since: 2.1
42 { 'enum': 'IoOperationType',
43   'data': [ 'read', 'write' ] }
46 # @OnOffAuto:
48 # An enumeration of three options: on, off, and auto
50 # @auto: QEMU selects the value between on and off
52 # @on: Enabled
54 # @off: Disabled
56 # Since: 2.2
58 { 'enum': 'OnOffAuto',
59   'data': [ 'auto', 'on', 'off' ] }
62 # @OnOffSplit:
64 # An enumeration of three values: on, off, and split
66 # @on: Enabled
68 # @off: Disabled
70 # @split: Mixed
72 # Since: 2.6
74 { 'enum': 'OnOffSplit',
75   'data': [ 'on', 'off', 'split' ] }
78 # @String:
80 # A fat type wrapping 'str', to be embedded in lists.
82 # Since: 1.2
84 { 'struct': 'String',
85   'data': {
86     'str': 'str' } }
89 # @StrOrNull:
91 # This is a string value or the explicit lack of a string (null
92 # pointer in C).  Intended for cases when 'optional absent' already
93 # has a different meaning.
95 # @s: the string value
96 # @n: no string value
98 # Since: 2.10
100 { 'alternate': 'StrOrNull',
101   'data': { 's': 'str',
102             'n': 'null' } }
105 # @OffAutoPCIBAR:
107 # An enumeration of options for specifying a PCI BAR
109 # @off: The specified feature is disabled
111 # @auto: The PCI BAR for the feature is automatically selected
113 # @bar0: PCI BAR0 is used for the feature
115 # @bar1: PCI BAR1 is used for the feature
117 # @bar2: PCI BAR2 is used for the feature
119 # @bar3: PCI BAR3 is used for the feature
121 # @bar4: PCI BAR4 is used for the feature
123 # @bar5: PCI BAR5 is used for the feature
125 # Since: 2.12
127 { 'enum': 'OffAutoPCIBAR',
128   'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] }
131 # @PCIELinkSpeed:
133 # An enumeration of PCIe link speeds in units of GT/s
135 # @2_5: 2.5GT/s
137 # @5: 5.0GT/s
139 # @8: 8.0GT/s
141 # @16: 16.0GT/s
143 # Since: 4.0
145 { 'enum': 'PCIELinkSpeed',
146   'data': [ '2_5', '5', '8', '16' ] }
149 # @PCIELinkWidth:
151 # An enumeration of PCIe link width
153 # @1: x1
155 # @2: x2
157 # @4: x4
159 # @8: x8
161 # @12: x12
163 # @16: x16
165 # @32: x32
167 # Since: 4.0
169 { 'enum': 'PCIELinkWidth',
170   'data': [ '1', '2', '4', '8', '12', '16', '32' ] }
173 # @SysEmuTarget:
175 # The comprehensive enumeration of QEMU system emulation ("softmmu")
176 # targets. Run "./configure --help" in the project root directory, and
177 # look for the *-softmmu targets near the "--target-list" option. The
178 # individual target constants are not documented here, for the time
179 # being.
181 # Notes: The resulting QMP strings can be appended to the "qemu-system-"
182 #        prefix to produce the corresponding QEMU executable name. This
183 #        is true even for "qemu-system-x86_64".
185 # ppcemb: dropped in 3.1
187 # Since: 3.0
189 { 'enum' : 'SysEmuTarget',
190   'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',
191              'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64',
192              'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc',
193              'ppc64', 'riscv32', 'riscv64', 's390x', 'sh4',
194              'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32',
195              'x86_64', 'xtensa', 'xtensaeb' ] }