/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tools.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-03-08 21:46:14 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: csa@dside.dyndns.org-20110308214614-g5v841m61jilcrm2
Initial support of IPECamera protocol

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _PCITOOL_TOOLS_H
2
2
#define _PCITOOL_TOOLS_H
3
3
 
4
 
void * memcpy8(void * dst, void const * src, size_t len);
5
 
void * memcpy32(void * dst, void const * src, size_t len);
6
 
void * memcpy64(void * dst, void const * src, size_t len);
7
 
int get_page_mask();
 
4
#include <stdio.h>
 
5
#include <stdint.h>
 
6
 
 
7
#include "pci.h"
 
8
 
 
9
uint16_t pcilib_swap16(uint16_t x);
 
10
uint32_t pcilib_swap32(uint32_t x);
 
11
uint64_t pcilib_swap64(uint64_t x);
 
12
void pcilib_swap(void *dst, void *src, size_t size, size_t n);
 
13
 
 
14
void * pcilib_memcpy8(void * dst, void const * src, size_t len);
 
15
void * pcilib_memcpy32(void * dst, void const * src, size_t len);
 
16
void * pcilib_memcpy64(void * dst, void const * src, size_t len);
 
17
void * pcilib_datacpy32(void * dst, void const * src, uint8_t size, size_t n, pcilib_endianess_t big_endian);
 
18
 
 
19
int pcilib_get_page_mask();
8
20
 
9
21
#endif /* _PCITOOL_TOOS_H */