diff options
Diffstat (limited to 'pcilib/register.h')
-rw-r--r-- | pcilib/register.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pcilib/register.h b/pcilib/register.h index 13d4c9b..74eeb12 100644 --- a/pcilib/register.h +++ b/pcilib/register.h @@ -3,7 +3,6 @@ #include <pcilib.h> #include <pcilib/bank.h> -#include <pcilib/views.h> #define PCILIB_REGISTER_NO_BITS 0 #define PCILIB_REGISTER_ALL_BITS ((pcilib_register_value_t)-1) @@ -25,6 +24,11 @@ typedef enum { } pcilib_register_type_t; typedef struct { + const char *name; + const char *view; +} pcilib_view_reference_t; + +typedef struct { pcilib_register_addr_t addr; /**< Register address in the bank */ pcilib_register_size_t offset; /**< Register offset in the byte (in bits) */ pcilib_register_size_t bits; /**< Register size in bits */ @@ -38,18 +42,12 @@ typedef struct { are on in the value are cleared/inverted). For information only, no preprocessing on bits is performed. */ pcilib_register_type_t type; /**< Defines type of register is it standard register, subregister for bit fields or view, fifo */ pcilib_register_bank_addr_t bank; /**< Specified the address of the bank this register belongs to */ - + const char *name; /**< The access name of the register */ const char *description; /**< Brief description of the register */ -} pcilib_register_description_t; - -typedef struct { - 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_view_t *views; /** list of views linked to this register*/ -} pcilib_register_context_t; + pcilib_view_reference_t *views; /**< List of supported views for this register */ +} pcilib_register_description_t; #ifdef __cplusplus |