/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/register.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-19 04:59:53 UTC
  • Revision ID: csa@suren.me-20151019045953-h4ur2flqzf3ky412
Provide register listings in public API

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#define PCILIB_REGISTER_NO_BITS                 0
10
10
#define PCILIB_REGISTER_ALL_BITS                ((pcilib_register_value_t)-1)
11
11
 
12
 
typedef enum {
13
 
    PCILIB_REGISTER_R = 1,                      /**< reading from register is allowed */
14
 
    PCILIB_REGISTER_W = 2,                      /**< normal writting to register is allowed */
15
 
    PCILIB_REGISTER_RW = 3,
16
 
    PCILIB_REGISTER_W1C = 4,                    /**< writting 1 resets the bit, writting 0 keeps the value */
17
 
    PCILIB_REGISTER_RW1C = 5,
18
 
    PCILIB_REGISTER_W1I = 8,                    /**< writting 1 inversts the bit, writting 0 keeps the value */
19
 
    PCILIB_REGISTER_RW1I = 9,
20
 
} pcilib_register_mode_t;
21
12
 
22
13
typedef enum {
23
14
    PCILIB_REGISTER_STANDARD = 0,
55
46
    const char *name;                                                                   /**< Register name */
56
47
    pcilib_register_t reg;                                                              /**< Register index */
57
48
    pcilib_register_bank_t bank;                                                        /**< Reference to bank containing the register */
58
 
    pcilib_register_value_t min, max;                                                   /**< Minimum & maximum allowed values */
 
49
    pcilib_register_value_range_t range;                                                /**< Minimum & maximum allowed values */
59
50
    pcilib_xml_node_t *xml;                                                             /**< Additional XML properties */
60
51
    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) */
61
52
    UT_hash_handle hh;