aboutsummaryrefslogtreecommitdiff
path: root/tosa.xsd
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2023-02-13 16:19:34 -0800
committerEric Kunze <eric.kunze@arm.com>2023-04-14 16:13:27 -0700
commit544227ef40dc226707d2c97b41cf0ee0b6111d39 (patch)
tree871a149f9e7c686a5c18e61ac5194d6eee5f970d /tosa.xsd
parent9bb5f5dd6b3999e46eb32ee2a897cc643c86c96d (diff)
downloadspecification-544227ef40dc226707d2c97b41cf0ee0b6111d39.tar.gz
Add enumerations to TOSA specification
Currently used by RESIZE and AVG_POOL2D Change-Id: I4f401ac092fcf426e6d57b3729943135f634a31e Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'tosa.xsd')
-rw-r--r--tosa.xsd20
1 files changed, 20 insertions, 0 deletions
diff --git a/tosa.xsd b/tosa.xsd
index 7bf2c40..8c1e2b5 100644
--- a/tosa.xsd
+++ b/tosa.xsd
@@ -126,6 +126,25 @@
<!-- TODO pattern for attribute name -->
<!-- TODO enumerations/patterns for attribute type -->
<!-- TODO enumerations/patterns for attribute shape -->
+
+<xs:element name="enumval">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="value" type="xs:integer"/>
+ <xs:attribute name="description" type="xs:string"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="enum">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="enumval" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="description" type="xs:string" use="required"/>
+ </xs:complexType>
+</xs:element>
+
<xs:element name="argument">
<xs:complexType>
<xs:sequence>
@@ -213,6 +232,7 @@
<xs:element ref="profiles"/>
<xs:element ref="levels"/>
<xs:element ref="operators"/>
+ <xs:element ref="enum" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>