diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-08 02:15:51 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-08 02:15:51 +0100 |
commit | eec7e74d2eccf811f0d25bb40fa514dc47655d67 (patch) | |
tree | 1b2c199cb356da7fd299d5b53a632cf9a535ca3e /xml/devices.xsd | |
parent | 92b9df25f5bbb2f70ee2626907e410affc02bdeb (diff) | |
download | pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.tar.gz pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.tar.bz2 pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.tar.xz pcitool-eec7e74d2eccf811f0d25bb40fa514dc47655d67.zip |
Support XML configuration of device models
Diffstat (limited to 'xml/devices.xsd')
-rw-r--r-- | xml/devices.xsd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xml/devices.xsd b/xml/devices.xsd new file mode 100644 index 0000000..27e9b39 --- /dev/null +++ b/xml/devices.xsd @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <xsd:include schemaLocation="types.xsd"/> + + <xsd:simpleType name="hex16_t"> + <xsd:restriction base="xsd:string"> + <xsd:pattern value="([a-fA-F0-9]){1,4}"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType name="device_t"> + <xsd:attribute name="vendor" type="hex16_t" /> + <xsd:attribute name="device" type="hex16_t" /> + <xsd:attribute name="model" type="xsd:string" /> + </xsd:complexType> + + <xsd:element name="devices"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="device" type="device_t" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + </xsd:complexType> + </xsd:element> +</xsd:schema> |