diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-10-23 03:17:19 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-10-23 03:17:19 +0200 |
commit | 122da21966aa8beb2f1cfb739ae6e76bcdba2d4c (patch) | |
tree | 75b2912daa0eb0e2da110a867fa487b38bb82f00 /kmem.h | |
parent | 8af9de82916ff76129d01ede66fc4406818c525c (diff) | |
download | pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.tar.gz pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.tar.bz2 pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.tar.xz pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.zip |
Sync only required buffers
Diffstat (limited to 'kmem.h')
-rw-r--r-- | kmem.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -62,7 +62,8 @@ struct pcilib_kmem_list_s { pcilib_kmem_handle_t *pcilib_alloc_kernel_memory(pcilib_t *ctx, pcilib_kmem_type_t type, size_t nmemb, size_t size, size_t alignment, pcilib_kmem_use_t use, pcilib_kmem_flags_t flags); void pcilib_free_kernel_memory(pcilib_t *ctx, pcilib_kmem_handle_t *k, pcilib_kmem_flags_t flags); -int pcilib_sync_kernel_memory(pcilib_t *ctx, pcilib_kmem_handle_t *k, pcilib_kmem_sync_direction_t dir); +//int pcilib_sync_kernel_memory(pcilib_t *ctx, pcilib_kmem_handle_t *k, pcilib_kmem_sync_direction_t dir); +int pcilib_kmem_sync_block(pcilib_t *ctx, pcilib_kmem_handle_t *k, pcilib_kmem_sync_direction_t dir, size_t block); void *pcilib_kmem_get_ua(pcilib_t *ctx, pcilib_kmem_handle_t *k); uintptr_t pcilib_kmem_get_pa(pcilib_t *ctx, pcilib_kmem_handle_t *k); void *pcilib_kmem_get_block_ua(pcilib_t *ctx, pcilib_kmem_handle_t *k, size_t block); |