diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-09-10 05:08:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-09-10 05:08:04 +0200 |
commit | fcc0da28faca832a5d10572ae62ffa0e25436b19 (patch) | |
tree | 2869158673db4028dfb89ef85461719ef2bcffd9 /pcilib/register.h | |
parent | 4535ac71e075946f374aef0bb1e2997869f148fe (diff) | |
parent | d996fab54c59ca0b34d4ff7c4ab5ab8247559db0 (diff) | |
download | pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.tar.gz pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.tar.bz2 pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.tar.xz pcitool-fcc0da28faca832a5d10572ae62ffa0e25436b19.zip |
Initial integration of XML support
Diffstat (limited to 'pcilib/register.h')
-rw-r--r-- | pcilib/register.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pcilib/register.h b/pcilib/register.h index 535e9d0..e7cbae9 100644 --- a/pcilib/register.h +++ b/pcilib/register.h @@ -44,7 +44,9 @@ typedef struct { typedef struct { - pcilib_register_bank_t bank; + pcilib_register_bank_t bank; /**< Reference to bank containing the register */ + pcilib_register_value_t min, max; /**< Minimum & maximum allowed values */ + pcilib_xml_node_t *xml; /**< Additional XML properties */ } pcilib_register_context_t; @@ -52,7 +54,7 @@ typedef struct { extern "C" { #endif -int pcilib_add_registers(pcilib_t *ctx, size_t n, const pcilib_register_description_t *registers); +int pcilib_add_registers(pcilib_t *ctx, pcilib_model_modification_flags_t flags, size_t n, const pcilib_register_description_t *registers, pcilib_register_t *ids); #ifdef __cplusplus } |