freedreno/rnn: describe copyright element in schema
authorRob Clark <robdclark@chromium.org>
Tue, 28 Jul 2020 17:51:50 +0000 (10:51 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 14:30:35 +0000 (14:30 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6107>

src/freedreno/registers/rules-ng.xsd

index 2f511e0da1c4df1b097e7395a878f7652e2fb670..9087a2f9f063dda0f64a4567febd5adc8677d326 100644 (file)
@@ -21,6 +21,7 @@
 \r
        <element name="database"       type="rng:databaseType" />\r
        <element name="import"         type="rng:importType" />\r
+       <element name="copyright"      type="rng:copyrightType" />\r
        <element name="domain"         type="rng:domainType" />\r
        <element name="group"          type="rng:groupType" />\r
        <element name="use-group"      type="rng:refType" />\r
        <element name="bitfield"       type="rng:bitfieldType" />\r
        <element name="enum"           type="rng:enumType" />\r
        <element name="value"          type="rng:valueType" />\r
-       \r
+\r
+       <!-- Copyright elements -->\r
+       <element name="author"         type="rng:authorType" />\r
+       <element name="nick"           type="rng:nickType" />\r
+       <element name="license"        type="rng:docType" />\r
+\r
        <!-- Documentation elements -->\r
        \r
        <!-- FIXME: allowed only one  per parent element -->\r
        <element name="ol"   type="rng:listType" />\r
        <element name="li"   type="rng:listitemType" />\r
 \r
+       <!-- Copyright element types -->\r
+\r
+       <complexType name="authorType" mixed="true">\r
+               <annotation>\r
+                       <documentation>\r
+                               register database author\r
+                       </documentation>\r
+               </annotation>\r
+               <choice minOccurs="0" maxOccurs="unbounded">\r
+                       <element ref="rng:nick" />\r
+               </choice>\r
+               <attribute name="name" type="string" use="required" />\r
+               <attribute name="email" type="string" use="required" />\r
+       </complexType>\r
 \r
+       <complexType name="nickType">\r
+               <annotation>\r
+                       <documentation>nickType</documentation>\r
+               </annotation>\r
+               <attribute name="name" type="string" use="required" />\r
+       </complexType>\r
 \r
        <!-- Database element types -->\r
 \r
                <attribute name="file" type="string" use="required" />\r
        </complexType>\r
 \r
+       <complexType name="copyrightType">\r
+               <annotation>\r
+                       <documentation>copyrightType</documentation>\r
+               </annotation>\r
+               <choice minOccurs="0" maxOccurs="unbounded">\r
+                       <group ref="rng:docGroup" />\r
+                       <group ref="rng:topGroup" />\r
+                       <element ref="rng:author" />\r
+                       <element ref="rng:license" />\r
+               </choice>\r
+               <attribute name="year" type="nonNegativeInteger" use="optional" />\r
+       </complexType>\r
+\r
        <complexType name="domainType">\r
                <annotation>\r
                        <documentation>domainType</documentation>\r
 \r
        <group name="topGroup">\r
                <choice>\r
+                       <element ref="rng:copyright" />\r
                        <element ref="rng:domain" />\r
                        <element ref="rng:enum" />\r
                        <element ref="rng:group" />\r