diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2023-05-25 22:41:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2023-05-25 22:41:04 +0200 |
commit | 6f4af841f6fdd099b97d071ae64c8be60f809456 (patch) | |
tree | d4f9a18b38e1ce3cfc0a5336215d5ce3afe830d2 /xml | |
download | pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.tar.gz pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.tar.bz2 pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.tar.xz pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.zip |
A sample event engine for pcitool (not requiring any PCIe hardware). Initial (barely tested and intended only as an example) release
Diffstat (limited to 'xml')
-rw-r--r-- | xml/CMakeLists.txt | 8 | ||||
-rw-r--r-- | xml/pcidev.xml | 4 | ||||
-rw-r--r-- | xml/pcidev/registers.xml | 11 |
3 files changed, 23 insertions, 0 deletions
diff --git a/xml/CMakeLists.txt b/xml/CMakeLists.txt new file mode 100644 index 0000000..4e15949 --- /dev/null +++ b/xml/CMakeLists.txt @@ -0,0 +1,8 @@ + +install(FILES pcidev.xml + DESTINATION ${PCILIB_DATA_DIR} +) + +install(DIRECTORY pcidev + DESTINATION ${PCILIB_MODEL_DIR} +) diff --git a/xml/pcidev.xml b/xml/pcidev.xml new file mode 100644 index 0000000..2a819e8 --- /dev/null +++ b/xml/pcidev.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<devices xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <device vendor="0000" device="0000" model="pcidev"/> +</devices> diff --git a/xml/pcidev/registers.xml b/xml/pcidev/registers.xml new file mode 100644 index 0000000..3735921 --- /dev/null +++ b/xml/pcidev/registers.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <bank size="0x0200" protocol="pcidev" read_address="0x0" write_address="0x0" word_size="32" endianess="little" format="0x%lx" name="pcidev" description="Sample Registers"> + <register address="0x00" offset="0" size="32" default="0" rwmask="0" mode="RW" name="testreg"> + <field offset="0" size="8" mode="R" name="firmware_version"/> + <field offset="8" size="1" mode="R" name="firmware_bitmode"/> + <field offset="12" size="2" mode="R" name="adc_resolution"/> + <field offset="16" size="2" mode="R" name="output_mode"/> + </register> + </bank> +</model> |