/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/export.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-22 13:57:59 UTC
  • Revision ID: csa@suren.me-20151022135759-nqs5wowy38tvbw09
Documentation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include "protocols/software.h"
13
13
#include "protocols/property.h"
14
14
 
15
 
const pcilib_register_protocol_description_t pcilib_protocols[] = {
 
15
const pcilib_register_protocol_description_t pcilib_standard_register_protocols[] = {
16
16
    { PCILIB_REGISTER_PROTOCOL_DEFAULT, &pcilib_default_protocol_api, NULL, NULL, "default", "" },
17
17
    { PCILIB_REGISTER_PROTOCOL_SOFTWARE, &pcilib_software_protocol_api, NULL, NULL, "software_registers", "" },
18
18
    { PCILIB_REGISTER_PROTOCOL_PROPERTY, &pcilib_property_protocol_api, NULL, NULL, "property_registers", "" },
19
19
    { 0 }
20
20
};
21
21
 
 
22
const pcilib_register_bank_description_t pcilib_standard_register_banks[] = {
 
23
    { PCILIB_REGISTER_BANK_CONF, PCILIB_REGISTER_PROTOCOL_SOFTWARE, PCILIB_BAR_NOBAR, 0, 0, 32, 0, PCILIB_HOST_ENDIAN, PCILIB_HOST_ENDIAN, "%lu", "conf", "pcilib configuration"},
 
24
    { 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL }
 
25
};
 
26
 
 
27
const pcilib_register_description_t pcilib_standard_registers[] = {
 
28
    {0x0000,    0,      32,     PCILIB_VERSION,         0x00000000,     PCILIB_REGISTER_R   , PCILIB_REGISTER_STANDARD, PCILIB_REGISTER_BANK_CONF, "version",           "Version"},
 
29
    {0x0004,    0,      32,     0,                      0x00000000,     PCILIB_REGISTER_RW  , PCILIB_REGISTER_STANDARD, PCILIB_REGISTER_BANK_CONF, "max_threads",       "Limits number of threads used by event engines (0 - unlimited)"},
 
30
    {0,         0,      0,      0,                      0x00000000,     0,                                           0,                         0, NULL,                NULL}
 
31
};
 
32
 
 
33
 
22
34
const pcilib_register_bank_description_t pcilib_property_register_bank = 
23
 
    { PCILIB_REGISTER_BANK_PROPERTY, PCILIB_REGISTER_PROTOCOL_PROPERTY, PCILIB_BAR_NOBAR, 0, 0, 32, 0, PCILIB_HOST_ENDIAN, PCILIB_HOST_ENDIAN, "%lu", "property", "Computed registers interfacing properties"};
24
 
 
 
35
    { PCILIB_REGISTER_BANK_PROPERTY, PCILIB_REGISTER_PROTOCOL_PROPERTY, PCILIB_BAR_NOBAR, 0, 0, 8 * sizeof(pcilib_register_value_t), 0, PCILIB_HOST_ENDIAN, PCILIB_HOST_ENDIAN, "%lu", "property", "Computed registers interfacing properties"};
25
36
 
26
37
 
27
38
#include "dma/nwl.h"