diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-09-24 04:28:45 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-09-24 04:28:45 +0200 |
commit | 08a01723af9cd52c078d5ca6c38c34d375b39fa0 (patch) | |
tree | 6eadea9c67f4bb56a9e4ee09f4982efaf61deece /views/transform.h | |
parent | 924adedb2928f5657c6668f606dbb3294b3c45da (diff) | |
parent | ae7f83a7948d8c3760f8019899a45e6ec90c2c6a (diff) | |
download | pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.gz pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.bz2 pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.xz pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.zip |
Finalyze XML support and provide initial support for views (only descriptions so far)
Diffstat (limited to 'views/transform.h')
-rw-r--r-- | views/transform.h | 17 |
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 */ |