/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool
241 by Suren A. Chilingaryan
Further adjustments to get ready for independent event plugins
1
#define _PCILIB_EXPORT_C
236 by Suren A. Chilingaryan
Big redign of model structures
2
3
#include <stdio.h>
4
241 by Suren A. Chilingaryan
Further adjustments to get ready for independent event plugins
5
#include "export.h"
236 by Suren A. Chilingaryan
Big redign of model structures
6
309 by Suren A. Chilingaryan
Base functions for views
7
8
const char *pcilib_data_types[] = { "default", "string", "double", "long" };
9
10
236 by Suren A. Chilingaryan
Big redign of model structures
11
#include "protocols/default.h"
275 by Suren A. Chilingaryan
Integration of software registers
12
#include "protocols/software.h"
321 by Suren A. Chilingaryan
Support computed (property-based) registers
13
#include "protocols/property.h"
236 by Suren A. Chilingaryan
Big redign of model structures
14
324 by Suren A. Chilingaryan
Documentation update
15
const pcilib_register_protocol_description_t pcilib_standard_register_protocols[] = {
236 by Suren A. Chilingaryan
Big redign of model structures
16
    { PCILIB_REGISTER_PROTOCOL_DEFAULT, &pcilib_default_protocol_api, NULL, NULL, "default", "" },
321 by Suren A. Chilingaryan
Support computed (property-based) registers
17
    { PCILIB_REGISTER_PROTOCOL_SOFTWARE, &pcilib_software_protocol_api, NULL, NULL, "software_registers", "" },
18
    { PCILIB_REGISTER_PROTOCOL_PROPERTY, &pcilib_property_protocol_api, NULL, NULL, "property_registers", "" },
236 by Suren A. Chilingaryan
Big redign of model structures
19
    { 0 }
20
};
21
324 by Suren A. Chilingaryan
Documentation update
22
const pcilib_register_bank_description_t pcilib_standard_register_banks[] = {
326 by Suren A. Chilingaryan
Fix the size of the configuration bank
23
    { PCILIB_REGISTER_BANK_CONF, PCILIB_REGISTER_PROTOCOL_SOFTWARE, PCILIB_BAR_NOBAR, 0, 0, 32, 0x1000, PCILIB_HOST_ENDIAN, PCILIB_HOST_ENDIAN, "%lu", "conf", "pcilib configuration"},
324 by Suren A. Chilingaryan
Documentation update
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
321 by Suren A. Chilingaryan
Support computed (property-based) registers
34
const pcilib_register_bank_description_t pcilib_property_register_bank = 
324 by Suren A. Chilingaryan
Documentation update
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"};
321 by Suren A. Chilingaryan
Support computed (property-based) registers
36
37
236 by Suren A. Chilingaryan
Big redign of model structures
38
#include "dma/nwl.h"
39
#include "dma/ipe.h"
40
242 by Suren A. Chilingaryan
Initial support for event engines
41
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
42
const pcilib_dma_description_t pcilib_ipedma = 
43
    { &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" };
44
45
const pcilib_dma_description_t pcilib_nwldma =
46
    { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" };
47
48
const pcilib_dma_description_t pcilib_dma[] = { 
236 by Suren A. Chilingaryan
Big redign of model structures
49
    { &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" },
50
    { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" },
51
    { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, "ipecamera", NULL, "nwldma-ipe", "North West Logic DMA Engine" },
52
    { 0 }
53
};
240 by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines
54
55