diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-03-08 22:46:14 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-03-08 22:46:14 +0100 |
commit | 7f97ea07417de4c2ea260e2860e589011c732e04 (patch) | |
tree | 5e5dd32f4615a40990f8daf10a96f82f39ca3b83 /tools.h | |
parent | 8a33c993a5771b041b67c365378ac40f76365da7 (diff) | |
download | pcitool-7f97ea07417de4c2ea260e2860e589011c732e04.tar.gz pcitool-7f97ea07417de4c2ea260e2860e589011c732e04.tar.bz2 pcitool-7f97ea07417de4c2ea260e2860e589011c732e04.tar.xz pcitool-7f97ea07417de4c2ea260e2860e589011c732e04.zip |
Initial support of IPECamera protocol
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -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 <stdio.h> +#include <stdint.h> + +#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 */ |