From f4ad2df2209acac66f3df47d847f1f714283feab Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 14 Jul 2011 06:01:27 +0200 Subject: First iteration of work to preserve DMA state between executions --- driver/common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'driver/common.h') diff --git a/driver/common.h b/driver/common.h index 3bc27d8..e45ae25 100644 --- a/driver/common.h +++ b/driver/common.h @@ -16,6 +16,7 @@ typedef struct { unsigned long size; unsigned long type; unsigned long use; + unsigned long item; struct class_device_attribute sysfs_attr; /* initialized when adding the entry */ } pcidriver_kmem_entry_t; @@ -56,11 +57,13 @@ typedef struct { struct list_head kmem_list; /* List of 'kmem_list_entry's associated with this device */ atomic_t kmem_count; /* id for next kmem entry */ + pcidriver_kmem_entry_t *kmem_cur; /* Currently selected kmem buffer, for mmap */ + spinlock_t umemlist_lock; /* Spinlock to lock umem list operations */ struct list_head umem_list; /* List of 'umem_list_entry's associated with this device */ atomic_t umem_count; /* id for next umem entry */ - int msi_mode; + int msi_mode; /* Flag specifying if interrupt have been initialized in MSI mode */ } pcidriver_privdata_t; -- cgit v1.2.3