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 /pcilib/property.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 'pcilib/property.h')
-rw-r--r-- | pcilib/property.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pcilib/property.h b/pcilib/property.h new file mode 100644 index 0000000..bec11c8 --- /dev/null +++ b/pcilib/property.h @@ -0,0 +1,30 @@ +#ifndef _PCILIB_PROPERTY_H +#define _PCILIB_PROPERTY_H + +#ifdef __cplusplus +extern "C" { +#endif +/** + * This is internal function used to add property view for all model registers. It is automatically + * called from pcilib_add_registers and should not be called by the users. On error no new views are + * initalized. + * @param[in,out] ctx - pcilib context + * @param[in] n - number of views to initialize. + * @param[in] banks - array containing a bank id for each of the considered registers + * @param[in] desc - register descriptions + * @return - error or 0 on success + */ +int pcilib_add_register_properties(pcilib_t *ctx, size_t n, const pcilib_register_bank_t *banks, const pcilib_register_description_t *desc); + +#ifdef __cplusplus +} +#endif + +#endif /* _PCILIB_PROPERTY_H */ + + + + + +// free'd by user. Do we need it? + |