bzr branch
http://suren.me/webbzr/alps/pcitool
6
by Suren A. Chilingaryan
Initial support for registers, infrastructure only |
1 |
#ifndef _PCITOOL_TOOLS_H
|
2 |
#define _PCITOOL_TOOLS_H
|
|
1
by Suren A. Chilingaryan
Initial import |
3 |
|
7.1.1
by Suren A. Chilingaryan
Initial support of IPECamera protocol |
4 |
#include <stdio.h> |
5 |
#include <stdint.h> |
|
6 |
||
47
by Suren A. Chilingaryan
Support FIFO reading/writting, code restructurization, few fixes |
7 |
#define BIT_MASK(bits) ((1ll << (bits)) - 1)
|
8 |
||
45
by root
North West Logick DMA implementation |
9 |
#define min2(a, b) (((a)<(b))?(a):(b))
|
10 |
||
73
by Suren A. Chilingaryan
Implement DMA access synchronization in the driver |
11 |
typedef enum { |
12 |
PCILIB_TRISTATE_NO = 0, |
|
13 |
PCILIB_TRISTATE_PARTIAL = 1, |
|
14 |
PCILIB_TRISTATE_YES = 2 |
|
15 |
} pcilib_tristate_t; |
|
16 |
||
74
by Suren A. Chilingaryan
Implement DMA access synchronization for NWL implementation |
17 |
#include "pci.h" |
73
by Suren A. Chilingaryan
Implement DMA access synchronization in the driver |
18 |
|
7.1.5
by Suren A. Chilingaryan
Support for FPGA registers |
19 |
int pcilib_isnumber(const char *str); |
20 |
int pcilib_isxnumber(const char *str); |
|
62
by Suren A. Chilingaryan
Suppport DMA modes in console application (not functional yet) |
21 |
int pcilib_isnumber_n(const char *str, size_t len); |
22 |
int pcilib_isxnumber_n(const char *str, size_t len); |
|
7.1.5
by Suren A. Chilingaryan
Support for FPGA registers |
23 |
|
7.1.1
by Suren A. Chilingaryan
Initial support of IPECamera protocol |
24 |
uint16_t pcilib_swap16(uint16_t x); |
25 |
uint32_t pcilib_swap32(uint32_t x); |
|
26 |
uint64_t pcilib_swap64(uint64_t x); |
|
27 |
void pcilib_swap(void *dst, void *src, size_t size, size_t n); |
|
28 |
||
29 |
void * pcilib_memcpy8(void * dst, void const * src, size_t len); |
|
30 |
void * pcilib_memcpy32(void * dst, void const * src, size_t len); |
|
31 |
void * pcilib_memcpy64(void * dst, void const * src, size_t len); |
|
22
by Suren A. Chilingaryan
clean up |
32 |
void * pcilib_datacpy32(void * dst, void const * src, uint8_t size, size_t n, pcilib_endianess_t endianess); |
7.1.1
by Suren A. Chilingaryan
Initial support of IPECamera protocol |
33 |
|
34 |
int pcilib_get_page_mask(); |
|
6
by Suren A. Chilingaryan
Initial support for registers, infrastructure only |
35 |
|
117
by Suren A. Chilingaryan
new event architecture, first trial |
36 |
|
37 |
int calc_deadline(struct timeval *tv, pcilib_timeout_t timeout); |
|
38 |
int check_deadline(struct timeval *tve, pcilib_timeout_t timeout); |
|
39 |
pcilib_timeout_t calc_time_to_deadline(struct timeval *tve); |
|
40 |
||
6
by Suren A. Chilingaryan
Initial support for registers, infrastructure only |
41 |
#endif /* _PCITOOL_TOOS_H */ |