bzr branch
http://suren.me/webbzr/alps/pcitool
236
by Suren A. Chilingaryan
Big redign of model structures |
1 |
#define _PCILIB_CONFIG_C
|
2 |
||
3 |
#include <stdio.h> |
|
4 |
||
5 |
#include "model.h" |
|
6 |
#include "error.h" |
|
7 |
#include "config.h" |
|
8 |
||
9 |
#include "protocols/default.h" |
|
10 |
||
11 |
||
12 |
void (*pcilib_error)(const char *msg, ...) = pcilib_print_error; |
|
13 |
void (*pcilib_warning)(const char *msg, ...) = pcilib_print_error; |
|
14 |
||
15 |
||
16 |
const pcilib_register_protocol_description_t pcilib_protocols[] = { |
|
17 |
{ PCILIB_REGISTER_PROTOCOL_DEFAULT, &pcilib_default_protocol_api, NULL, NULL, "default", "" }, |
|
18 |
{ 0 } |
|
19 |
};
|
|
20 |
||
21 |
//static const pcilib_register_protocol_description_t *pcilib_protocol_default = NULL;//{0};//&pcilib_protocols[0];
|
|
22 |
||
23 |
#include "dma/nwl.h" |
|
24 |
#include "dma/ipe.h" |
|
25 |
||
26 |
||
27 |
/*
|
|
28 |
pcilib_register_protocol_alias_t pcilib_protocols[] = {
|
|
29 |
{ "default", { &pcilib_default_protocol_api, PCILIB_REGISTER_PROTOCOL_MODIFICATION_DEFAULT, NULL } },
|
|
30 |
{ NULL, {0} }
|
|
31 |
};
|
|
32 |
*/
|
|
33 |
||
34 |
||
35 |
const pcilib_dma_description_t pcilib_dma[] = { |
|
36 |
{ &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" }, |
|
37 |
{ &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" }, |
|
38 |
{ &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, "ipecamera", NULL, "nwldma-ipe", "North West Logic DMA Engine" }, |
|
39 |
{ 0 } |
|
40 |
};
|