13
* The collection of slow memcpy functions to move the data between BAR and system memory.
15
* The hardware may restrict access width or expose different behavior depending on the
16
* access width. These functions access memory using the specified word width only.
17
* 8-, 16-, 32-, and 64-bit wide access is supported.
19
* @param[out] dst - the destination memory region
20
* @param[in] src - the source memory region
21
* @param[in] access - the size of word (a single memory access) in bytes
22
* @param[in] n - the number of words to copy (\p n * \p access bytes are copied).
23
* @return - `dst` or NULL on error
25
void *pcilib_memcpy(void * dst, void const * src, uint8_t access, size_t n);
28
* The collection of slow memcpy functions to move the data between BAR and system memory.
30
* The hardware may restrict access width or expose different behavior depending on the
31
* access width. This function only perform 8-bit memory accesses.
33
* @param[out] dst - the destination memory region
34
* @param[in] src - the source memory region
35
* @param[in] len - the number of bytes to copy
36
* @return - `dst` or NULL on error
12
38
void *pcilib_memcpy8(void * dst, void const * src, size_t len);
41
* The collection of slow memcpy functions to move the data between BAR and system memory.
43
* The hardware may restrict access width or expose different behavior depending on the
44
* access width. This function only perform 32-bit memory accesses.
46
* @param[out] dst - the destination memory region
47
* @param[in] src - the source memory region
48
* @param[in] len - the number of bytes to copy
49
* @return - `dst` or NULL on error
13
51
void *pcilib_memcpy32(void * dst, void const * src, size_t len);
55
* The collection of slow memcpy functions to move the data between BAR and system memory.
57
* The hardware may restrict access width or expose different behavior depending on the
58
* access width. This function only perform 64-bit memory accesses.
60
* @param[out] dst - the destination memory region
61
* @param[in] src - the source memory region
62
* @param[in] len - the number of bytes to copy
63
* @return - `dst` or NULL on error
14
65
void *pcilib_memcpy64(void * dst, void const * src, size_t len);
15
void *pcilib_memcpy(void * dst, void const * src, uint8_t access, size_t n);