diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-10-19 06:59:53 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-10-19 06:59:53 +0200 |
commit | 8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf (patch) | |
tree | ef9eb3a20cc6da36ff6c875dc6221ec0b6af780c /pcilib/register.h | |
parent | fa54d4c2ca8ffcece7a9c6e9c784e2150cbed78b (diff) | |
download | pcitool-8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf.tar.gz pcitool-8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf.tar.bz2 pcitool-8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf.tar.xz pcitool-8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf.zip |
Provide register listings in public API
Diffstat (limited to 'pcilib/register.h')
-rw-r--r-- | pcilib/register.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pcilib/register.h b/pcilib/register.h index e2e8508..f3df309 100644 --- a/pcilib/register.h +++ b/pcilib/register.h @@ -9,15 +9,6 @@ #define PCILIB_REGISTER_NO_BITS 0 #define PCILIB_REGISTER_ALL_BITS ((pcilib_register_value_t)-1) -typedef enum { - PCILIB_REGISTER_R = 1, /**< reading from register is allowed */ - PCILIB_REGISTER_W = 2, /**< normal writting to register is allowed */ - PCILIB_REGISTER_RW = 3, - PCILIB_REGISTER_W1C = 4, /**< writting 1 resets the bit, writting 0 keeps the value */ - PCILIB_REGISTER_RW1C = 5, - PCILIB_REGISTER_W1I = 8, /**< writting 1 inversts the bit, writting 0 keeps the value */ - PCILIB_REGISTER_RW1I = 9, -} pcilib_register_mode_t; typedef enum { PCILIB_REGISTER_STANDARD = 0, @@ -55,7 +46,7 @@ typedef struct { const char *name; /**< Register name */ pcilib_register_t reg; /**< Register index */ pcilib_register_bank_t bank; /**< Reference to bank containing the register */ - pcilib_register_value_t min, max; /**< Minimum & maximum allowed values */ + pcilib_register_value_range_t range; /**< Minimum & maximum allowed values */ pcilib_xml_node_t *xml; /**< Additional XML properties */ pcilib_view_reference_t *views; /**< For non-static list of views, this vairables holds a copy of a NULL-terminated list from model (if present, memory should be de-allocated) */ UT_hash_handle hh; |