summaryrefslogtreecommitdiffstats
path: root/model.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2023-05-25 22:41:04 +0200
committerSuren A. Chilingaryan <csa@suren.me>2023-05-25 22:41:04 +0200
commit6f4af841f6fdd099b97d071ae64c8be60f809456 (patch)
treed4f9a18b38e1ce3cfc0a5336215d5ce3afe830d2 /model.h
downloadpcidev-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 'model.h')
-rw-r--r--model.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/model.h b/model.h
new file mode 100644
index 0000000..131d748
--- /dev/null
+++ b/model.h
@@ -0,0 +1,13 @@
+#ifndef _PCIDEV_MODEL_H
+#define _PCIDEV_MODEL_H
+
+#include <stdio.h>
+#include <pcilib/model.h>
+
+//#define PCIDEV_DEBUG
+
+#define PCIDEV_DMA_ADDRESS 0 /**< Address of DMA engine to use for communication */
+
+const pcilib_model_description_t *pcilib_get_event_model(pcilib_t *pcilib, unsigned short vendor_id, unsigned short device_id, const char *model);
+
+#endif /* _PCIDEV_MODEL_H */