bzr branch
http://suren.me/webbzr/alps/pcitool
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
1 |
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
|
3 |
||
4 |
<xsd:complexType name="pcilib_bank_t"> |
|
5 |
<xsd:choice minOccurs="0" maxOccurs="unbounded"> |
|
6 |
<xsd:element name="register" type="pcilib_register_t" minOccurs="0" maxOccurs="unbounded" /> |
|
7 |
</xsd:choice>
|
|
8 |
<xsd:attribute name="protocol" type="xsd:string" default="default" /> |
|
9 |
<xsd:attribute name="bar" type="pcilib_bar_t" /> |
|
10 |
<xsd:attribute name="address" type="uintptr_t" /> |
|
11 |
<xsd:attribute name="read_address" type="uintptr_t" /> |
|
12 |
<xsd:attribute name="write_address" type="uintptr_t" /> |
|
13 |
<xsd:attribute name="size" type="size_t" default="4096" /> |
|
14 |
<xsd:attribute name="word_size" type="uint8_t" default="32" /> |
|
15 |
<xsd:attribute name="endianess" type="pcilib_endianess_t" default="host" /> |
|
16 |
<xsd:attribute name="format" type="xsd:string" default="0x%lx" /> |
|
17 |
<xsd:attribute name="name" type="xsd:ID" use="required" /> |
|
18 |
<xsd:attribute name="description" type="xsd:string" /> |
|
19 |
</xsd:complexType>
|
|
20 |
||
21 |
<xsd:complexType name="pcilib_register_t"> |
|
22 |
<xsd:sequence>
|
|
23 |
<xsd:element name="view" type="pcilib_view_reference_t" minOccurs="0" maxOccurs="unbounded" /> |
|
24 |
<xsd:element name="field" type="pcilib_register_field_t" minOccurs="0" maxOccurs="unbounded" /> |
|
25 |
</xsd:sequence>
|
|
26 |
<xsd:attribute name="address" type="uint64_t" use="required" /> |
|
27 |
<xsd:attribute name="offset" type="uint8_t" default="0" /> |
|
28 |
<xsd:attribute name="size" type="uint8_t" default="32" /> |
|
29 |
<xsd:attribute name="default" type="pcilib_register_value_t" default="0" /> |
|
30 |
<xsd:attribute name="min" type="pcilib_register_value_t" /> |
|
31 |
<xsd:attribute name="max" type="pcilib_register_value_t"/> |
|
32 |
<xsd:attribute name="rwmask" type="pcilib_rwmask_t" default="all" /> |
|
33 |
<xsd:attribute name="mode" type="pcilib_register_mode_t" default="R" /> |
|
34 |
<xsd:attribute name="name" type="xsd:ID" use="required"/> |
|
35 |
<xsd:attribute name="description" type="xsd:string" /> |
|
36 |
</xsd:complexType>
|
|
37 |
||
38 |
<xsd:complexType name="pcilib_register_field_t"> |
|
39 |
<xsd:sequence>
|
|
40 |
<xsd:element name="view" type="pcilib_view_reference_t" minOccurs="0" maxOccurs="unbounded" /> |
|
41 |
</xsd:sequence>
|
|
42 |
<xsd:attribute name="offset" type="uint8_t"/> |
|
43 |
<xsd:attribute name="size" type="uint8_t"/> |
|
319
by Suren A. Chilingaryan
Provide register listings in public API |
44 |
<xsd:attribute name="default" type="pcilib_register_value_t" default="0" /> |
45 |
<xsd:attribute name="min" type="pcilib_register_value_t" /> |
|
46 |
<xsd:attribute name="max" type="pcilib_register_value_t"/> |
|
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
47 |
<xsd:attribute name="mode" type="pcilib_register_mode_t"/> |
48 |
<xsd:attribute name="name" type="xsd:ID" use="required" /> |
|
49 |
<xsd:attribute name="description" type="xsd:string" /> |
|
50 |
</xsd:complexType>
|
|
51 |
||
52 |
<xsd:complexType name="pcilib_view_reference_t"> |
|
53 |
<xsd:attribute name="view" type="xsd:string" use="required" /> |
|
54 |
<xsd:attribute name="name" type="xsd:string" /> |
|
55 |
</xsd:complexType>
|
|
56 |
||
57 |
<xsd:complexType name="pcilib_view_t"> |
|
316
by Suren A. Chilingaryan
Support XML properties |
58 |
<xsd:attribute name="name" type="xsd:ID" /> |
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
59 |
<xsd:attribute name="unit" type="xsd:string" /> |
60 |
<xsd:attribute name="type" type="pcilib_data_type_t" /> |
|
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
61 |
<xsd:attribute name="mode" type="pcilib_access_mode_t" /> |
346.1.9
by Vasilii Chernov
Change no_set_check parameter name. Move Python wrap to separate directory. |
62 |
<xsd:attribute name="write_verification" type="bool_t" default="1"/> |
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
63 |
<xsd:attribute name="visible" type="bool_t" default="0" /> |
64 |
<xsd:attribute name="description" type="xsd:string" /> |
|
65 |
</xsd:complexType>
|
|
66 |
||
67 |
<xsd:complexType name="pcilib_transform_view_t"> |
|
68 |
<xsd:complexContent>
|
|
69 |
<xsd:extension base="pcilib_view_t"> |
|
316
by Suren A. Chilingaryan
Support XML properties |
70 |
<xsd:attribute name="path" type="xsd:string" /> |
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
71 |
<xsd:attribute name="register" type="xsd:string" /> |
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
72 |
<xsd:attribute name="read_from_register" type="xsd:string" /> |
73 |
<xsd:attribute name="write_to_register" type="xsd:string" /> |
|
346.1.2
by Vasilii Chernov
Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode. |
74 |
<xsd:attribute name="script" type="xsd:string" /> |
75 |
<!-- xsd 1.1 <xsd:assert test="(@path and not(@name)) or (not(@path) and @name)"/> -->
|
|
76 |
</xsd:extension>
|
|
77 |
</xsd:complexContent>
|
|
78 |
</xsd:complexType>
|
|
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
79 |
|
80 |
<xsd:complexType name="pcilib_enum_view_t"> |
|
81 |
<xsd:complexContent>
|
|
82 |
<xsd:extension base="pcilib_view_t"> |
|
83 |
<xsd:choice minOccurs="1" maxOccurs="unbounded"> |
|
84 |
<xsd:element name="name" type="pcilib_value_name_t" minOccurs="1" maxOccurs="unbounded" /> |
|
85 |
</xsd:choice>
|
|
86 |
</xsd:extension>
|
|
87 |
</xsd:complexContent>
|
|
88 |
</xsd:complexType>
|
|
89 |
||
90 |
<xsd:complexType name="pcilib_value_name_t"> |
|
91 |
<xsd:attribute name="value" type="pcilib_register_value_t" use="required" /> |
|
92 |
<xsd:attribute name="min" type="pcilib_register_value_t" /> |
|
93 |
<xsd:attribute name="max" type="pcilib_register_value_t" /> |
|
94 |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|
320
by Suren A. Chilingaryan
Add optional description in the value name-aliases |
95 |
<xsd:attribute name="description" type="xsd:string" /> |
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
96 |
</xsd:complexType>
|
97 |
||
98 |
<xsd:complexType name="pcilib_unit_t"> |
|
99 |
<xsd:sequence>
|
|
100 |
<xsd:element name="transform" type="pcilib_unit_transform_t" minOccurs="0" maxOccurs="unbounded"/> |
|
101 |
</xsd:sequence>
|
|
102 |
<xsd:attribute name="name" type="xsd:ID" use="required"/> |
|
103 |
<xsd:attribute name="title" type="xsd:string"/> |
|
104 |
</xsd:complexType>
|
|
105 |
||
106 |
<xsd:complexType name="pcilib_unit_transform_t"> |
|
107 |
<xsd:attribute name="transform" type="xsd:string" use="required" /> |
|
108 |
<xsd:attribute name="unit" type="xsd:string" use="required"/> |
|
109 |
</xsd:complexType>
|
|
110 |
||
111 |
<xsd:simpleType name="bool_t"> |
|
112 |
<xsd:restriction base="xsd:integer"> |
|
113 |
<xsd:minInclusive value="0"/> |
|
114 |
<xsd:maxInclusive value="1"/> |
|
115 |
</xsd:restriction>
|
|
116 |
</xsd:simpleType>
|
|
117 |
<xsd:simpleType name="dec8_t"> |
|
118 |
<xsd:restriction base="xsd:integer"> |
|
119 |
<xsd:minInclusive value="0"/> |
|
120 |
<xsd:maxInclusive value="255"/> |
|
121 |
</xsd:restriction>
|
|
122 |
</xsd:simpleType>
|
|
123 |
<xsd:simpleType name="hex8_t"> |
|
124 |
<xsd:restriction base="xsd:string"> |
|
125 |
<xsd:pattern value="0x([a-fA-F0-9]){1,2}"/> |
|
126 |
</xsd:restriction>
|
|
127 |
</xsd:simpleType>
|
|
128 |
<xsd:simpleType name="uint8_t"> |
|
129 |
<xsd:union memberTypes="dec8_t hex8_t"/> |
|
130 |
</xsd:simpleType>
|
|
131 |
<xsd:simpleType name="dec32_t"> |
|
132 |
<xsd:restriction base="xsd:integer"> |
|
133 |
<xsd:minInclusive value="0"/> |
|
134 |
<xsd:maxInclusive value="4294967295"/> |
|
135 |
</xsd:restriction>
|
|
136 |
</xsd:simpleType>
|
|
137 |
<xsd:simpleType name="hex32_t"> |
|
138 |
<xsd:restriction base="xsd:string"> |
|
139 |
<xsd:pattern value="0x([a-fA-F0-9]){1,8}"/> |
|
140 |
</xsd:restriction>
|
|
141 |
</xsd:simpleType>
|
|
142 |
<xsd:simpleType name="uint32_t"> |
|
143 |
<xsd:union memberTypes="dec32_t hex32_t"/> |
|
144 |
</xsd:simpleType>
|
|
145 |
<xsd:simpleType name="dec64_t"> |
|
146 |
<xsd:restriction base="xsd:integer"> |
|
147 |
<xsd:minInclusive value="0"/> |
|
148 |
<xsd:maxInclusive value="18446744073709551615"/> |
|
149 |
</xsd:restriction>
|
|
150 |
</xsd:simpleType>
|
|
151 |
<xsd:simpleType name="hex64_t"> |
|
152 |
<xsd:restriction base="xsd:string"> |
|
153 |
<xsd:pattern value="0x([a-fA-F0-9]){1,16}"/> |
|
154 |
</xsd:restriction>
|
|
155 |
</xsd:simpleType>
|
|
156 |
<xsd:simpleType name="uint64_t"> |
|
157 |
<xsd:union memberTypes="dec64_t hex64_t"/> |
|
158 |
</xsd:simpleType>
|
|
159 |
<xsd:simpleType name="size_t"> |
|
160 |
<xsd:restriction base="uint64_t"/> |
|
161 |
</xsd:simpleType>
|
|
162 |
<xsd:simpleType name="uintptr_t"> |
|
163 |
<xsd:restriction base="hex64_t"/> |
|
164 |
</xsd:simpleType>
|
|
165 |
||
166 |
<xsd:simpleType name="pcilib_register_value_t"> |
|
167 |
<xsd:restriction base="uint32_t"/> |
|
168 |
</xsd:simpleType>
|
|
169 |
<xsd:simpleType name="pcilib_bar_t"> |
|
170 |
<xsd:restriction base="xsd:integer"> |
|
171 |
<xsd:minInclusive value="0"/> |
|
172 |
<xsd:maxInclusive value="5"/> |
|
173 |
</xsd:restriction>
|
|
174 |
</xsd:simpleType>
|
|
175 |
<xsd:simpleType name="pcilib_bank_address_t"> |
|
176 |
<xsd:restriction base="xsd:string"> |
|
177 |
<xsd:enumeration value="0"/> |
|
178 |
<xsd:enumeration value="1"/> |
|
179 |
<xsd:enumeration value="2"/> |
|
180 |
<xsd:enumeration value="3"/> |
|
181 |
<xsd:enumeration value="dma0"/> |
|
182 |
<xsd:enumeration value="dma1"/> |
|
183 |
<xsd:enumeration value="dma2"/> |
|
184 |
<xsd:enumeration value="dma3"/> |
|
185 |
</xsd:restriction>
|
|
186 |
</xsd:simpleType>
|
|
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
187 |
<xsd:simpleType name="pcilib_access_mode_t"> |
188 |
<xsd:restriction base="xsd:string"> |
|
189 |
<xsd:enumeration value="-"/> |
|
190 |
<xsd:enumeration value="R"/> |
|
191 |
<xsd:enumeration value="W"/> |
|
192 |
<xsd:enumeration value="RW"/> |
|
193 |
</xsd:restriction>
|
|
194 |
</xsd:simpleType>
|
|
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
195 |
<xsd:simpleType name="pcilib_register_mode_t"> |
196 |
<xsd:restriction base="xsd:string"> |
|
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
197 |
<xsd:enumeration value="-"/> |
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
198 |
<xsd:enumeration value="R"/> |
199 |
<xsd:enumeration value="W"/> |
|
200 |
<xsd:enumeration value="RW"/> |
|
201 |
<xsd:enumeration value="W1C"/> |
|
202 |
<xsd:enumeration value="RW1C"/> |
|
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
203 |
<xsd:enumeration value="W1I"/> |
204 |
<xsd:enumeration value="RW1I"/> |
|
307
by Suren A. Chilingaryan
Finalyze XML support and provide initial support for views (only descriptions so far) |
205 |
</xsd:restriction>
|
206 |
</xsd:simpleType>
|
|
207 |
<xsd:simpleType name="pcilib_data_type_t"> |
|
208 |
<xsd:restriction base="xsd:string"> |
|
209 |
<xsd:enumeration value="string"/> |
|
210 |
<xsd:enumeration value="float"/> |
|
211 |
<xsd:enumeration value="int"/> |
|
212 |
</xsd:restriction>
|
|
213 |
</xsd:simpleType>
|
|
214 |
<xsd:simpleType name="pcilib_endianess_t"> |
|
215 |
<xsd:restriction base="xsd:string"> |
|
216 |
<xsd:enumeration value="little"/> |
|
217 |
<xsd:enumeration value="big"/> |
|
218 |
<xsd:enumeration value="host"/> |
|
219 |
</xsd:restriction>
|
|
220 |
</xsd:simpleType>
|
|
221 |
<xsd:simpleType name="pcilib_rwmask_keywords_t"> |
|
222 |
<xsd:restriction base="xsd:string"> |
|
223 |
<xsd:enumeration value="all"/> |
|
224 |
</xsd:restriction>
|
|
225 |
</xsd:simpleType>
|
|
226 |
<xsd:simpleType name="pcilib_rwmask_t"> |
|
227 |
<xsd:union memberTypes="pcilib_rwmask_keywords_t pcilib_register_value_t"/> |
|
228 |
</xsd:simpleType>
|
|
229 |
</xsd:schema>
|