From 7f97ea07417de4c2ea260e2860e589011c732e04 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 8 Mar 2011 22:46:14 +0100 Subject: Initial support of IPECamera protocol --- tools.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index 718d8df..059675a 100644 --- a/tools.h +++ b/tools.h @@ -1,9 +1,21 @@ #ifndef _PCITOOL_TOOLS_H #define _PCITOOL_TOOLS_H -void * memcpy8(void * dst, void const * src, size_t len); -void * memcpy32(void * dst, void const * src, size_t len); -void * memcpy64(void * dst, void const * src, size_t len); -int get_page_mask(); +#include +#include + +#include "pci.h" + +uint16_t pcilib_swap16(uint16_t x); +uint32_t pcilib_swap32(uint32_t x); +uint64_t pcilib_swap64(uint64_t x); +void pcilib_swap(void *dst, void *src, size_t size, size_t n); + +void * pcilib_memcpy8(void * dst, void const * src, size_t len); +void * pcilib_memcpy32(void * dst, void const * src, size_t len); +void * pcilib_memcpy64(void * dst, void const * src, size_t len); +void * pcilib_datacpy32(void * dst, void const * src, uint8_t size, size_t n, pcilib_endianess_t big_endian); + +int pcilib_get_page_mask(); #endif /* _PCITOOL_TOOS_H */ -- cgit v1.2.3 From a008b10d8488ef905a43de00ee5c8efd03b03ed6 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 9 Mar 2011 16:55:27 +0100 Subject: Support for FPGA registers --- tools.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools.h') diff --git a/tools.h b/tools.h index 059675a..747fc37 100644 --- a/tools.h +++ b/tools.h @@ -6,6 +6,9 @@ #include "pci.h" +int pcilib_isnumber(const char *str); +int pcilib_isxnumber(const char *str); + uint16_t pcilib_swap16(uint16_t x); uint32_t pcilib_swap32(uint32_t x); uint64_t pcilib_swap64(uint64_t x); -- cgit v1.2.3