diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-10-18 03:47:47 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-10-18 03:47:47 +0200 |
commit | c8628b2a715a7cfaaccbd7e403cd1c6c76b918cd (patch) | |
tree | 53971a137e5d0e32ad7219f1d2fd01559c0a6ff3 /views/register.h | |
parent | 2e9457b666a303fab83aa17e33624f39de9a1dd7 (diff) | |
download | pcitool-c8628b2a715a7cfaaccbd7e403cd1c6c76b918cd.tar.gz pcitool-c8628b2a715a7cfaaccbd7e403cd1c6c76b918cd.tar.bz2 pcitool-c8628b2a715a7cfaaccbd7e403cd1c6c76b918cd.tar.xz pcitool-c8628b2a715a7cfaaccbd7e403cd1c6c76b918cd.zip |
Support properties of arbitrary type
Diffstat (limited to 'views/register.h')
-rw-r--r-- | views/register.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/register.h b/views/register.h new file mode 100644 index 0000000..e527846 --- /dev/null +++ b/views/register.h @@ -0,0 +1,19 @@ +#ifndef _PCILIB_VIEW_REGISTER_H +#define _PCILIB_VIEW_REGISTER_H + +#include <pcilib.h> +#include <pcilib/view.h> + +typedef struct { + pcilib_view_description_t base; + const char *view; + const char *reg; + const char *bank; +} pcilib_register_view_description_t; + + +#ifndef _PCILIB_VIEW_REGISTER_C +extern const pcilib_view_api_description_t pcilib_register_view_api; +#endif /* _PCILIB_VIEW_REGISTER_C */ + +#endif /* _PCILIB_VIEW_REGISTER_H */ |