diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-16 06:18:05 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-16 06:18:05 +0200 |
commit | 7ac0539951ff0eba200e64b850b5181a82915c86 (patch) | |
tree | 6d41563807fcadcbf03eb756d8d7d191d3d4446c /driver/pciDriver.h | |
parent | b3e8d49f41b18d17b40bd8f6926d7db54981e89e (diff) | |
download | ipecamera-7ac0539951ff0eba200e64b850b5181a82915c86.tar.gz ipecamera-7ac0539951ff0eba200e64b850b5181a82915c86.tar.bz2 ipecamera-7ac0539951ff0eba200e64b850b5181a82915c86.tar.xz ipecamera-7ac0539951ff0eba200e64b850b5181a82915c86.zip |
Implement DMA access synchronization in the driver
Diffstat (limited to 'driver/pciDriver.h')
-rw-r--r-- | driver/pciDriver.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/driver/pciDriver.h b/driver/pciDriver.h index 3ff3357..9aa580f 100644 --- a/driver/pciDriver.h +++ b/driver/pciDriver.h @@ -99,6 +99,18 @@ /* Maximum number of interrupt sources */ #define PCIDRIVER_INT_MAXSOURCES 16 + +#define KMEM_FLAG_REUSE 1 /**< Try to reuse existing buffer with the same use & item */ +#define KMEM_FLAG_EXCLUSIVE 2 /**< Allow only a single application accessing a specified use & item */ +#define KMEM_FLAG_PERSISTENT 4 /**< Sets persistent mode */ +#define KMEM_FLAG_HW 8 /**< The buffer may be accessed by hardware, the hardware access will not occur any more if passed to _free function */ + +#define KMEM_FLAG_REUSED 1 /**< Indicates if buffer with specified use & item was already allocated and reused */ +#define KMEM_FLAG_REUSED_PERSISTENT 4 /**< Indicates that reused buffer was persistent before the call */ +#define KMEM_FLAG_REUSED_HW 8 /**< Indicates that reused buffer had a HW reference before the call */ + + + /* Types */ typedef struct { unsigned long type; @@ -107,7 +119,7 @@ typedef struct { unsigned long align; unsigned long use; unsigned long item; - int reuse; + int flags; int handle_id; } kmem_handle_t; |