/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-09-24 02:28:45 UTC
  • mfrom: (305.1.19 views)
  • Revision ID: csa@suren.me-20150924022845-p7hc8lh8v0q48g0r
Finalyze XML support and provide initial support for views (only descriptions so far)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
} pcilib_register_type_t;
25
25
 
26
26
typedef struct {
 
27
    const char *name;
 
28
    const char *view;
 
29
} pcilib_view_reference_t;
 
30
 
 
31
typedef struct {
27
32
    pcilib_register_addr_t addr;                /**< Register address in the bank */
28
33
    pcilib_register_size_t offset;              /**< Register offset in the byte (in bits) */
29
34
    pcilib_register_size_t bits;                /**< Register size in bits */
37
42
                                                are on in the value are cleared/inverted). For information only, no preprocessing on bits is performed. */
38
43
    pcilib_register_type_t type;                /**< Defines type of register is it standard register, subregister for bit fields or view, fifo */
39
44
    pcilib_register_bank_addr_t bank;           /**< Specified the address of the bank this register belongs to */
40
 
    
 
45
 
41
46
    const char *name;                           /**< The access name of the register */
42
47
    const char *description;                    /**< Brief description of the register */
 
48
 
 
49
    pcilib_view_reference_t *views;             /**< List of supported views for this register */
43
50
} pcilib_register_description_t;
44
51
 
45
52
 
46
 
typedef struct {
47
 
    pcilib_register_bank_t bank;                /**< Reference to bank containing the register */
48
 
    pcilib_register_value_t min, max;           /**< Minimum & maximum allowed values */
49
 
    pcilib_xml_node_t *xml;                     /**< Additional XML properties */
50
 
} pcilib_register_context_t;
51
 
 
52
 
 
53
53
#ifdef __cplusplus
54
54
extern "C" {
55
55
#endif