diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-08 16:35:09 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-08 16:35:09 +0200 |
commit | a1889bc2f45b3d944652be6436569980f189922d (patch) | |
tree | e4fe4ad383fd190f1269aff4e51cf538642881ef /driver/common.h | |
parent | 8f241478d649bfafb73f7fe0e4ae5e3d80b73bab (diff) | |
download | pcitool-a1889bc2f45b3d944652be6436569980f189922d.tar.gz pcitool-a1889bc2f45b3d944652be6436569980f189922d.tar.bz2 pcitool-a1889bc2f45b3d944652be6436569980f189922d.tar.xz pcitool-a1889bc2f45b3d944652be6436569980f189922d.zip |
Predict next accessed DMA block in the driver (to speed-up buffer syncing)
Diffstat (limited to 'driver/common.h')
-rw-r--r-- | driver/common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/common.h b/driver/common.h index 75005e9..6bc1329 100644 --- a/driver/common.h +++ b/driver/common.h @@ -1,7 +1,7 @@ #ifndef _PCIDRIVER_COMMON_H #define _PCIDRIVER_COMMON_H -#include "../kmem.h" +#include "../pcilib/kmem.h" /*************************************************************************/ /* Private data types and structures */ @@ -64,6 +64,7 @@ typedef struct { spinlock_t kmemlist_lock; /* Spinlock to lock kmem list operations */ struct list_head kmem_list; /* List of 'kmem_list_entry's associated with this device */ + pcidriver_kmem_entry_t *kmem_last_sync; /* Last accessed kmem entry */ atomic_t kmem_count; /* id for next kmem entry */ int kmem_cur_id; /* Currently selected kmem buffer, for mmap */ |