summaryrefslogtreecommitdiffstats
path: root/pcilib/register.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcilib/register.h')
-rw-r--r--pcilib/register.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcilib/register.h b/pcilib/register.h
index 61eef84..e7cbae9 100644
--- a/pcilib/register.h
+++ b/pcilib/register.h
@@ -44,8 +44,9 @@ typedef struct {
typedef struct {
- pcilib_register_bank_t bank;
- /* use it or not?*/ /*xmlNodeSetPtr registers_nodes;*/
+ 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;
@@ -53,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
}