diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-09-24 04:28:45 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-09-24 04:28:45 +0200 |
commit | 08a01723af9cd52c078d5ca6c38c34d375b39fa0 (patch) | |
tree | 6eadea9c67f4bb56a9e4ee09f4982efaf61deece /pcilib/register.h | |
parent | 924adedb2928f5657c6668f606dbb3294b3c45da (diff) | |
parent | ae7f83a7948d8c3760f8019899a45e6ec90c2c6a (diff) | |
download | pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.gz pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.bz2 pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.tar.xz pcitool-08a01723af9cd52c078d5ca6c38c34d375b39fa0.zip |
Finalyze XML support and provide initial support for views (only descriptions so far)
Diffstat (limited to 'pcilib/register.h')
-rw-r--r-- | pcilib/register.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pcilib/register.h b/pcilib/register.h index e7cbae9..74eeb12 100644 --- a/pcilib/register.h +++ b/pcilib/register.h @@ -24,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 */ @@ -37,17 +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_register_context_t; + pcilib_view_reference_t *views; /**< List of supported views for this register */ +} pcilib_register_description_t; #ifdef __cplusplus |