summaryrefslogtreecommitdiffstats
path: root/views/transform.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/transform.h')
-rw-r--r--views/transform.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/transform.h b/views/transform.h
new file mode 100644
index 0000000..f474552
--- /dev/null
+++ b/views/transform.h
@@ -0,0 +1,17 @@
+#ifndef _PCILIB_VIEW_TRANSFORM_H
+#define _PCILIB_VIEW_TRANSFORM_H
+
+#include <pcilib.h>
+#include <pcilib/view.h>
+
+typedef struct {
+ pcilib_view_description_t base;
+ const char *read_from_reg; /**< Formula explaining how to convert the register value to the view value */
+ const char *write_to_reg; /**< Formula explaining how to convert from the view value to the register value */
+} pcilib_transform_view_description_t;
+
+#ifndef _PCILIB_VIEW_TRANSFORM_C
+const pcilib_view_api_description_t pcilib_transform_view_api;
+#endif /* _PCILIB_VIEW_TRANSFORM_C */
+
+#endif /* _PCILIB_VIEW_TRANSFORM_H */