rockbox/utils/regtools/desc/regs-1.0.dtd
Amaury Pouly 4356666101 regtools: completely rework qeditor, improve soc desc library and tools
The graphical editor can now display and editor description files.
The library has been improved to provide more useful function.
The XML format has been slightly changed: only one soc is allowed per file
(this is was already de facto the case since <soc> was the root tag).
Also introduce a DTD to validate the files.

Change-Id: If70ba35b6dc0242bdb87411cf4baee9597798aac
2014-05-01 19:34:18 +02:00

28 lines
1 KiB
DTD

<!-- Format specification of the 1.0 register description files. Files are
considered to be version 1.0 if no version field is specified -->
<!ELEMENT soc (dev)*>
<!ATTLIST soc name CDATA #REQUIRED>
<!ATTLIST soc desc CDATA #IMPLIED>
<!ELEMENT dev (addr|reg)*>
<!ATTLIST dev name CDATA #REQUIRED>
<!ATTLIST dev long_name CDATA #IMPLIED>
<!ATTLIST dev desc CDATA #IMPLIED>
<!ATTLIST dev version CDATA #IMPLIED>
<!ELEMENT addr EMPTY>
<!ATTLIST addr name CDATA #REQUIRED>
<!ATTLIST addr addr CDATA #REQUIRED>
<!ELEMENT reg (addr|field|formula)*>
<!ATTLIST reg name CDATA #REQUIRED>
<!ATTLIST reg addr CDATA #IMPLIED>
<!ATTLIST reg desc CDATA #IMPLIED>
<!ATTLIST reg sct (yes|no) "no">
<!ELEMENT formula EMPTY>
<!ATTLIST formula string CDATA #IMPLIED>
<!ELEMENT field (value)*>
<!ATTLIST field name CDATA #REQUIRED>
<!ATTLIST field desc CDATA #IMPLIED>
<!ATTLIST field bitrange CDATA #REQUIRED>
<!ELEMENT value EMPTY>
<!ATTLIST value name CDATA #REQUIRED>
<!ATTLIST value value CDATA #REQUIRED>
<!ATTLIST value desc CDATA #IMPLIED>