123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:complexType name="pcilib_bank_t">
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="register" type="pcilib_register_t" minOccurs="0" maxOccurs="unbounded" />
- </xsd:choice>
- <xsd:attribute name="protocol" type="xsd:string" default="default" />
- <xsd:attribute name="bar" type="pcilib_bar_t" />
- <xsd:attribute name="address" type="uintptr_t" />
- <xsd:attribute name="read_address" type="uintptr_t" />
- <xsd:attribute name="write_address" type="uintptr_t" />
- <xsd:attribute name="size" type="size_t" default="4096" />
- <xsd:attribute name="word_size" type="uint8_t" default="32" />
- <xsd:attribute name="endianess" type="pcilib_endianess_t" default="host" />
- <xsd:attribute name="format" type="xsd:string" default="0x%lx" />
- <xsd:attribute name="name" type="xsd:ID" use="required" />
- <xsd:attribute name="description" type="xsd:string" />
- </xsd:complexType>
- <xsd:complexType name="pcilib_register_t">
- <xsd:sequence>
- <xsd:element name="view" type="pcilib_view_reference_t" minOccurs="0" maxOccurs="unbounded" />
- <xsd:element name="field" type="pcilib_register_field_t" minOccurs="0" maxOccurs="unbounded" />
- </xsd:sequence>
- <xsd:attribute name="address" type="uint64_t" use="required" />
- <xsd:attribute name="offset" type="uint8_t" default="0" />
- <xsd:attribute name="size" type="uint8_t" default="32" />
- <xsd:attribute name="default" type="pcilib_register_value_t" default="0" />
- <xsd:attribute name="min" type="pcilib_register_value_t" />
- <xsd:attribute name="max" type="pcilib_register_value_t"/>
- <xsd:attribute name="rwmask" type="pcilib_rwmask_t" default="all" />
- <xsd:attribute name="mode" type="pcilib_register_mode_t" default="R" />
- <xsd:attribute name="name" type="xsd:ID" use="required"/>
- <xsd:attribute name="description" type="xsd:string" />
- </xsd:complexType>
- <xsd:complexType name="pcilib_register_field_t">
- <xsd:sequence>
- <xsd:element name="view" type="pcilib_view_reference_t" minOccurs="0" maxOccurs="unbounded" />
- </xsd:sequence>
- <xsd:attribute name="offset" type="uint8_t"/>
- <xsd:attribute name="size" type="uint8_t"/>
- <xsd:attribute name="default" type="pcilib_register_value_t" default="0" />
- <xsd:attribute name="min" type="pcilib_register_value_t" />
- <xsd:attribute name="max" type="pcilib_register_value_t"/>
- <xsd:attribute name="mode" type="pcilib_register_mode_t"/>
- <xsd:attribute name="name" type="xsd:ID" use="required" />
- <xsd:attribute name="description" type="xsd:string" />
- </xsd:complexType>
- <xsd:complexType name="pcilib_view_reference_t">
- <xsd:attribute name="view" type="xsd:string" use="required" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- <xsd:complexType name="pcilib_view_t">
- <xsd:attribute name="name" type="xsd:ID" />
- <xsd:attribute name="unit" type="xsd:string" />
- <xsd:attribute name="type" type="pcilib_data_type_t" />
- <xsd:attribute name="mode" type="pcilib_access_mode_t" />
- <xsd:attribute name="write_verification" type="bool_t" default="1"/>
- <xsd:attribute name="visible" type="bool_t" default="0" />
- <xsd:attribute name="description" type="xsd:string" />
- </xsd:complexType>
- <xsd:complexType name="pcilib_transform_view_t">
- <xsd:complexContent>
- <xsd:extension base="pcilib_view_t">
- <xsd:attribute name="path" type="xsd:string" />
- <xsd:attribute name="register" type="xsd:string" />
- <xsd:attribute name="read_from_register" type="xsd:string" />
- <xsd:attribute name="write_to_register" type="xsd:string" />
- <xsd:attribute name="script" type="xsd:string" />
- <!-- xsd 1.1 <xsd:assert test="(@path and not(@name)) or (not(@path) and @name)"/> -->
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
- <xsd:complexType name="pcilib_enum_view_t">
- <xsd:complexContent>
- <xsd:extension base="pcilib_view_t">
- <xsd:choice minOccurs="1" maxOccurs="unbounded">
- <xsd:element name="name" type="pcilib_value_name_t" minOccurs="1" maxOccurs="unbounded" />
- </xsd:choice>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
- <xsd:complexType name="pcilib_value_name_t">
- <xsd:attribute name="value" type="pcilib_register_value_t" use="required" />
- <xsd:attribute name="min" type="pcilib_register_value_t" />
- <xsd:attribute name="max" type="pcilib_register_value_t" />
- <xsd:attribute name="name" type="xsd:string" use="required" />
- <xsd:attribute name="description" type="xsd:string" />
- </xsd:complexType>
- <xsd:complexType name="pcilib_unit_t">
- <xsd:sequence>
- <xsd:element name="transform" type="pcilib_unit_transform_t" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:ID" use="required"/>
- <xsd:attribute name="title" type="xsd:string"/>
- </xsd:complexType>
- <xsd:complexType name="pcilib_unit_transform_t">
- <xsd:attribute name="transform" type="xsd:string" use="required" />
- <xsd:attribute name="unit" type="xsd:string" use="required"/>
- </xsd:complexType>
- <xsd:simpleType name="bool_t">
- <xsd:restriction base="xsd:integer">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="1"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="dec8_t">
- <xsd:restriction base="xsd:integer">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="255"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="hex8_t">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="0x([a-fA-F0-9]){1,2}"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="uint8_t">
- <xsd:union memberTypes="dec8_t hex8_t"/>
- </xsd:simpleType>
- <xsd:simpleType name="dec32_t">
- <xsd:restriction base="xsd:integer">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="4294967295"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="hex32_t">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="0x([a-fA-F0-9]){1,8}"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="uint32_t">
- <xsd:union memberTypes="dec32_t hex32_t"/>
- </xsd:simpleType>
- <xsd:simpleType name="dec64_t">
- <xsd:restriction base="xsd:integer">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="18446744073709551615"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="hex64_t">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="0x([a-fA-F0-9]){1,16}"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="uint64_t">
- <xsd:union memberTypes="dec64_t hex64_t"/>
- </xsd:simpleType>
- <xsd:simpleType name="size_t">
- <xsd:restriction base="uint64_t"/>
- </xsd:simpleType>
- <xsd:simpleType name="uintptr_t">
- <xsd:restriction base="hex64_t"/>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_register_value_t">
- <xsd:restriction base="uint32_t"/>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_bar_t">
- <xsd:restriction base="xsd:integer">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="5"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_bank_address_t">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="0"/>
- <xsd:enumeration value="1"/>
- <xsd:enumeration value="2"/>
- <xsd:enumeration value="3"/>
- <xsd:enumeration value="dma0"/>
- <xsd:enumeration value="dma1"/>
- <xsd:enumeration value="dma2"/>
- <xsd:enumeration value="dma3"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_access_mode_t">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="-"/>
- <xsd:enumeration value="R"/>
- <xsd:enumeration value="W"/>
- <xsd:enumeration value="RW"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_register_mode_t">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="-"/>
- <xsd:enumeration value="R"/>
- <xsd:enumeration value="W"/>
- <xsd:enumeration value="RW"/>
- <xsd:enumeration value="W1C"/>
- <xsd:enumeration value="RW1C"/>
- <xsd:enumeration value="W1I"/>
- <xsd:enumeration value="RW1I"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_data_type_t">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="string"/>
- <xsd:enumeration value="float"/>
- <xsd:enumeration value="int"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_endianess_t">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="little"/>
- <xsd:enumeration value="big"/>
- <xsd:enumeration value="host"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_rwmask_keywords_t">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="all"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="pcilib_rwmask_t">
- <xsd:union memberTypes="pcilib_rwmask_keywords_t pcilib_register_value_t"/>
- </xsd:simpleType>
- </xsd:schema>
|