From 8ba85a9aff0009d03090a1ba3e9d7e146f02b7bf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 19 Oct 2015 06:59:53 +0200 Subject: Provide register listings in public API --- pcilib/register.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'pcilib/register.h') 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; -- cgit v1.2.3