/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to xml/devices.xsd

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-08 01:15:51 UTC
  • Revision ID: csa@suren.me-20160308011551-z7qvf08s6daer4l2
Support XML configuration of device models

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
3
  <xsd:include schemaLocation="types.xsd"/>
 
4
 
 
5
  <xsd:simpleType name="hex16_t">
 
6
    <xsd:restriction base="xsd:string">
 
7
      <xsd:pattern value="([a-fA-F0-9]){1,4}"/>
 
8
    </xsd:restriction>
 
9
  </xsd:simpleType>
 
10
 
 
11
  <xsd:complexType name="device_t">
 
12
    <xsd:attribute name="vendor" type="hex16_t" />
 
13
    <xsd:attribute name="device" type="hex16_t" />
 
14
    <xsd:attribute name="model" type="xsd:string" />
 
15
  </xsd:complexType>
 
16
 
 
17
  <xsd:element name="devices">
 
18
    <xsd:complexType>
 
19
      <xsd:sequence>
 
20
        <xsd:element name="device" type="device_t" minOccurs="0" maxOccurs="unbounded" />
 
21
      </xsd:sequence>
 
22
    </xsd:complexType>
 
23
  </xsd:element>
 
24
</xsd:schema>