From 55255f2ce3a2234850249efcabd9ba32d0a89a9c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 19 Oct 2015 15:58:46 +0200 Subject: Support computed (property-based) registers --- pcilib/view.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pcilib/view.h') diff --git a/pcilib/view.h b/pcilib/view.h index ec775b7..33d4d96 100644 --- a/pcilib/view.h +++ b/pcilib/view.h @@ -12,7 +12,8 @@ typedef struct pcilib_view_context_s pcilib_view_context_t; typedef struct pcilib_view_description_s pcilib_view_description_t; typedef enum { - PCILIB_VIEW_FLAG_PROPERTY = 1 /**< Indicates that view does not depend on a value and is independent property */ + PCILIB_VIEW_FLAG_PROPERTY = 1, /**< Indicates that view does not depend on a value and is independent property */ + PCILIB_VIEW_FLAG_REGISTER = 2 /**< Indicates that view does not depend on a value and should be mapped to the register space */ } pcilib_view_flags_t; typedef struct { @@ -32,6 +33,7 @@ struct pcilib_view_description_s { pcilib_access_mode_t mode; /**< Specifies if the view is read/write-only */ const char *unit; /**< Returned unit (if any) */ const char *name; /**< Name of the view */ + const char *regname; /**< Specifies the register name if the view should be mapped to register space */ const char *description; /**< Short description */ }; -- cgit v1.2.3